Maven's dependency model does not support the complex dependencies among Solr 
core, Solrj, the Solr Test Framework, and their tests.  The workaround is to 
only run Solrj tests under the Solr core module.  

However, when 'mvn clean' runs, it wants to remove the test output directory.  
If you don't define it, apparently the default is the module directory itself, 
and Maven will happily delete the entire module's directory (solr/solrj/ in 
this case) as part of the 'clean' phase.

The workaround is to specify the test output directory, but not the test source 
directory.  Sigh.

I've committed the workaround and kicked off another Jenkins build.

Steve

-----Original Message-----
From: Steven A Rowe [mailto:[email protected]] 
Sent: Sunday, July 10, 2011 11:19 AM
To: [email protected]
Subject: RE: [JENKINS-MAVEN] Lucene-Solr-Maven-trunk #181: POMs out of sync

This one is really strange - "mvn clean" in solr/solrj deletes itself???:

[INFO] Building Apache Solr Solrj
[INFO]    task-segment: [clean]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}] [INFO] Deleting 
/usr/home/hudson/hudson-slave/workspace/Lucene-Solr-Maven-trunk/checkout/solr/build/solr-solrj
[INFO] Deleting 
/usr/home/hudson/hudson-slave/workspace/Lucene-Solr-Maven-trunk/checkout/solr/solrj

Obviously something wrong with the Solrj POM....

-----Original Message-----
From: Apache Jenkins Server [mailto:[email protected]]
Sent: Sunday, July 10, 2011 11:02 AM
To: [email protected]
Subject: [JENKINS-MAVEN] Lucene-Solr-Maven-trunk #181: POMs out of sync

Build: https://builds.apache.org/job/Lucene-Solr-Maven-trunk/181/

No tests ran.

Build Log (for compile errors):
[...truncated 17678 lines...]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional 
commands, e-mail: [email protected]

Reply via email to