The test goal will try to use "junit:junit" not "am_fremd_lib:junit", so that might be the problem. If you run Maven with -X it should so the classpath it uses to compile with.
In addition, check the <include /> tag is incorrect, this indicates a package of java.de.mypackage.mail.om.connectors.base.configuration (Note: the dependency technique you are using is not recommended by Maven's best practices, and <jar/> will not be supported in future versions of Maven). - Brett On 5/10/05, Iktorn <[EMAIL PROTECTED]> wrote: > Brett Porter <brett.porter <at> gmail.com> writes: > > > > > add a dependency on junit in your project.xml file. > > > > Cheers, > > Brett > > > > Hi, > I've done that (below is the content of my project.xml file) > The problem occurs when I try to make 'maven test' goal. > The library in intellij is set to the same junit.jar file. > > Artur > > <project> > <extend>${basedir}/../project.xml</extend> > <groupId>connectors</groupId> > <artifactId>connectors</artifactId> > <currentVersion>current-SNAPSHOT</currentVersion> > > <dependencies> > <dependency> > <groupId>domainom</groupId> > <artifactId>domainom</artifactId> > <jar>domainom-current-SNAPSHOT.jar</jar> > </dependency> > > <dependency> > <groupId>am_fremd_lib</groupId> > <artifactId>backbone</artifactId> > <jar>backbone.jar</jar> > </dependency> > > <dependency> > <groupId>am_fremd_lib</groupId> > <artifactId>axis</artifactId> > <jar>axis.jar</jar> > </dependency> > > <dependency> > <groupId>am_fremd_lib</groupId> > <artifactId>jaxrpc</artifactId> > <jar>jaxrpc.jar</jar> > </dependency> > > <dependency> > <groupId>am_fremd_lib</groupId> > <artifactId>junit</artifactId> > <jar>junit.jar</jar> > </dependency> > > </dependencies> > <build> > <sourceDirectory>src/main/java</sourceDirectory> > <unitTestSourceDirectory>src/test/java</unitTestSourceDirectory> > <resources> > <resource> > <directory>src/main/resources</directory> > </resource> > </resources> > > <unitTest> > <includes> > > <include>java/de/mypackage/mail/om/connectors/base/configuration/TestConnectorCo > nfiguration.java</include> > </includes> > </unitTest> > </build> > </project> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]