You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by RobertK <ch...@gmail.com> on 2006/10/11 12:12:04 UTC
Maven 1, need help jar:test-jar
Hi,
using Maven 1.0.2, I am just wondering is this plugin available for maven 1:
http://maven.apache.org/plugins/maven-jar-plugin/test-jar-mojo.html
Using multiproject and some tests have dependencies on common files so would
be nice not to have to duplicate the resources.
Is a viable alternative to run a custom maven goal (ant task?) to compile a
jar and then add a dependency to it in the project.xml file?
--
View this message in context: http://www.nabble.com/Maven-1%2C-need-help-jar%3Atest-jar-tf2422460.html#a6753737
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven 1, need help jar:test-jar
Posted by Arnaud HERITIER <ah...@gmail.com>.
Hi Rorbert,
I didn't see such a plugin for m1.
The common practice is to create a new project for your common classes
http://maven.apache.org/maven-1.x/using/bestpractices.html#Refactor_Your_Build
"If you need to share test code among different projects, put that test code
in its own artifact (this time included in the main source tree) and depend
on that artifact for your tests in other projects."
Arnaud
On 10/11/06, RobertK <ch...@gmail.com> wrote:
>
>
> Hi,
>
> using Maven 1.0.2, I am just wondering is this plugin available for maven
> 1:
> http://maven.apache.org/plugins/maven-jar-plugin/test-jar-mojo.html
>
> Using multiproject and some tests have dependencies on common files so
> would
> be nice not to have to duplicate the resources.
>
> Is a viable alternative to run a custom maven goal (ant task?) to compile
> a
> jar and then add a dependency to it in the project.xml file?
> --
> View this message in context:
> http://www.nabble.com/Maven-1%2C-need-help-jar%3Atest-jar-tf2422460.html#a6753737
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>