mehtakash93 / probablistic-query-parser

Intern Project contributed to solr
4 stars 1 forks source link

compilation Issues #1

Closed angelo337 closed 7 years ago

angelo337 commented 7 years ago

hi there I am trying to compile this product and all compilation succeed, with some minor warnings like this:

[WARNING] Some problems were encountered while building the effective model for org.apache.solr.search:probabilistic-query-parser:jar:1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 8, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING]

however when try to produce the JAR file wit: mvn package I am getting this error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile (default-testCompile) on project probabilistic-query-parser: Compilation failure [ERROR] /home/creangel/Downloads/solr/probablistic-query-parser/src/test/java/testQueries.java:[23,7] error: class TestQueries is public, should be declared in a file named TestQueries.java [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

could you please help me? thanks in advance angelo

angelo337 commented 7 years ago

Solved:

go to: probablistic-query-parser/src/test/java/ and rename this file: testQueries.java to TestQueries.java