uyou can have a look at http://maven.apache.org/ref/3.1-SNAPSHOT/maven- core/artifact-handlers.html for a reference of default types and classifiers
Regards, Hervé Le jeudi 25 octobre 2012 20:09:58 John Kramer a écrit : > Hey guys, > > I have a question regarding the maven dependencies section. > > In order to put a dependency on a test jar, is it correct to specify > <type>test-jar</type> or <type>test</type>? > > I specified a dependency on project bar from project foo using > <type>test<test> in a dependency section and the maven eclipse plugin ran > successfully and eclipse set up my projects so that the module recognizes, > but mvn package gives the following error: > > [ERROR] Failed to execute goal on project statistics: Could not resolve > dependencies for project com.mojiva:foo:jar:1.9.0-SNAPSHOT: Could not find > artifact com.mojiva:bar:test:1.9.0-SNAPSHOT in mojiva > > If I change it, to test-jar, the error goes away. > > I know I have used <type>test</type> in the past and not had an issue. Did > it change? > > Also, I can't find the documentation on this. A pointer to the docs would be > helpful. > > Thanks to all! > > John Kramer > email: [email protected]<mailto:[email protected]> > mobile: 314.435.2370 > skype: kramer.mojiva > twitter: @KramerKnowsTech<https://twitter.com/KramerKnowsTech> > 0xCAFEBABE00000032 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
