[
https://issues.apache.org/jira/browse/SOLR-2835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128275#comment-13128275
]
Steven Rowe commented on SOLR-2835:
-----------------------------------
Hi Ukyo,
I don't see the problems you report when I build trunk under Maven v2.2.1.
What version of Maven are you using? Are you running {{mvn test}} in the
{{solr/}} directory?
FYI, under maven, the solrj test sources don't get compiled or run as part of
the solrj module. Instead, they are compiled and run with the solr core
module, because Maven's dependency system can't directly handle the unusual
dependencies between solrj, solr core, and the solr test framework. (solr core
has a non-test dependency on solrj; solr test framework has a non-test
dependency on solr core; and both solr core and solrj have a test dependency on
the solr test framework.)
Another FYI: the maven build is run nightly under Jenkins - see
[http://wiki.apache.org/solr/NightlyBuilds].
In the future, this kind of issue is best discussed on the solr-user mailing
list before making a JIRA issue.
> Compilation problem with maven - package org.apache.solr.core does not exist
> ----------------------------------------------------------------------------
>
> Key: SOLR-2835
> URL: https://issues.apache.org/jira/browse/SOLR-2835
> Project: Solr
> Issue Type: Bug
> Components: Build
> Affects Versions: 4.0
> Reporter: Ukyo Virgden
> Labels: maven, solrj
>
> maven compilation fails.
> Steps to reproduce are;
> * svn update
> * ant get-maven-poms
> * mvn -N -Pbootstrap install
> * mvn -DskipTests install
> Build works until solrj test compilation Here's the start of the errors.
> {code}
> [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
> solr-solrj ---
> [INFO] Compiling 157 source files to
> /users/ukyo/lucene-solr/solr/build/solr-solrj/classes/test
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR]
> /users/ukyo/lucene-solr/solr/solrj/src/test/org/apache/solr/client/solrj/embedded/MergeIndexesEmbeddedTest.java:[24,27]
> package org.apache.solr.core does not exist
> [ERROR]
> /users/ukyo/lucene-solr/solr/solrj/src/test/org/apache/solr/client/solrj/MergeIndexesExampleTestBase.java:[28,27]
> package org.apache.solr.core does not exist
> [ERROR]
> /users/ukyo/lucene-solr/solr/solrj/src/test/org/apache/solr/client/solrj/MergeIndexesExampleTestBase.java:[29,27]
> package org.apache.solr.core does not exist
> [ERROR]
> /users/ukyo/lucene-solr/solr/solrj/src/test/org/apache/solr/client/solrj/MergeIndexesExampleTestBase.java:[30,27]
> package org.apache.solr.util does not exist
> [ERROR]
> /users/ukyo/lucene-solr/solr/solrj/src/test/org/apache/solr/client/solrj/SolrExampleTestBase.java:[21,27]
> package org.apache.solr.util does not exist
> [ERROR]
> /users/ukyo/lucene-solr/solr/solrj/src/test/org/apache/solr/client/solrj/SolrExampleTestBase.java:[31,50]
> cannot find symbol
> {code}
> All following errors are the same package not found.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]