You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Benson Margulies <bi...@gmail.com> on 2013/05/19 16:57:12 UTC

Module b needs jar from from Module a but needs to keep it _out_ of the classpath

I'm faced with a situation I've met before.

I have a multi-module project.

'Module A' builds a jar file. That jar file is a plugin for Apache Solr.

'Module B' is an integration test. It needs to copy that Module A jar
file into a Solr installation tree and start Solr. It really, really,
needs to not have that Module A jar file in its classpath.

Is there a right way to do that?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Module b needs jar from from Module a but needs to keep it _out_ of the classpath

Posted by Stephen Connolly <st...@gmail.com>.
Closest I can think is add a dependency of type "pom" to fix the build
order and use dependency:copy to grab the jar

On Sunday, 19 May 2013, Benson Margulies wrote:

> I'm faced with a situation I've met before.
>
> I have a multi-module project.
>
> 'Module A' builds a jar file. That jar file is a plugin for Apache Solr.
>
> 'Module B' is an integration test. It needs to copy that Module A jar
> file into a Solr installation tree and start Solr. It really, really,
> needs to not have that Module A jar file in its classpath.
>
> Is there a right way to do that?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org <javascript:;>
> For additional commands, e-mail: users-help@maven.apache.org<javascript:;>
>
>

-- 
Sent from my phone