Hi John, John Kramer wrote:
> 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>? test-jar, test does not exist. However, I typically declare always both: "type" and "classifier" ("tests" here). > 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, Because the maven-eclipse-plugin ignores classifiers, since Eclipise has no concept for it. The plugin can only link Eclipse projects. > 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? No. Did you use classifier "tests" in the past? > Also, I can't find the documentation on this. A pointer to the docs would > be helpful. > > Thanks to all! - Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org