Hi, Unfortunately removing the exclusion clause didn't help ;/ is there anything wrong with my pom file? I can't find a problem there but maybe I'm missing something.
Best regards, Severin -----Ursprüngliche Nachricht----- Von: Wayne Fay [mailto:[EMAIL PROTECTED] Gesendet: Montag, 14. Mai 2007 17:32 An: Maven Developers List Betreff: Re: dependency version ignored Remove the junit <exclusion> under axis2-kernel and try again. Wayne On 5/14/07, Ecker Severin <[EMAIL PROTECTED]> wrote: > Hi, > > I've tried both, version 2.0.5 and 2.0.6, equal results. > > Best regards, > severin > > -----Ursprüngliche Nachricht----- > Von: Ralph Goers [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 14. Mai 2007 16:00 > An: Maven Developers List > Betreff: Re: dependency version ignored > > What version of maven are you using? > > Ecker Severin wrote: > > Hi, > > > > There seems to be no one who can help me in the users list so I hope > > that someone around here does haven an idea: > > My problem is as follows: > > > > I'm not sure whether I'm not using dependencies correctly or this is a > > bug, but the situation is as follows: > > > > I have a junit 4.1 dependency in my project (and also xmlbeans). > > Now xmlbeans happens to have a dependency on junit 3.8. > > > > The problem is that my project uses junit 4 annotations BUT maven simply > > ignores my dependency and is totally content with junit3.8 on the > > classpath. Needless to say that the compilation fails. > > > > //this fails > > mvn clean test > > > > > > //all of these work, the first line always fails because of the > > "missing" junit4 of course > > > > mvn clean compile > > mvn compile test > > > > mvn clean compile > > mvn compiler:testCompile > > > > mvn clean compile > > mvn test > > > > > > > > > > A simple example looks like this: > > I've stripped some dependencies and all the repositories to keep the pom > > as simple and short as possible: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <project xmlns="http://maven.apache.org/POM/4.0.0" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > > http://maven.apache.org/maven-v4_0_0.xsd"> > > <modelVersion>4.0.0</modelVersion> > > <groupId>mygroup</groupId> > > <artifactId>myart</artifactId> > > <packaging>jar</packaging> > > <version>1.0</version> > > > > <build> > > <plugins> > > <plugin> > > <groupId>org.codehaus.mojo</groupId> > > <artifactId>xmlbeans-maven-plugin</artifactId> > > <executions> > > <execution> > > <goals> > > <goal>xmlbeans</goal> > > </goals> > > <phase>generate-sources</phase> > > </execution> > > </executions> > > </plugin> > > <plugin> > > <groupId>org.apache.axis2</groupId> > > <artifactId>axis2-wsdl2code-maven-plugin</artifactId> > > <version>PATCHED</version> > > <executions> > > <execution> > > <goals> > > <goal>wsdl2code</goal> > > </goals> > > </execution> > > </executions> > > </plugin> > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-compiler-plugin</artifactId> > > <version>2.0</version> > > <configuration> > > <source>1.5</source> > > <target>1.5</target> > > </configuration> > > </plugin> > > </plugins> > > </build> > > > > <dependencyManagement> > > <dependencies> > > <dependency> > > <groupId>junit</groupId> > > <artifactId>junit</artifactId> > > <version>4.1</version> > > </dependency> > > </dependencies> > > </dependencyManagement> > > > > <dependencies> > > > > <dependency> > > <groupId>org.apache.axis2</groupId> > > <artifactId>axis2-kernel</artifactId> > > <version>SNAPSHOT</version> > > <scope>compile</scope> > > <exclusions> > > <exclusion> > > <groupId>junit</groupId> > > <artifactId>junit</artifactId> > > </exclusion> > > </exclusion> > > </dependency> > > > > <dependency> > > <groupId>junit</groupId> > > <artifactId>junit</artifactId> > > <version>4.1</version> > > </dependency> > > </dependencies> > > </project> > > > > > > Thanks in advance and best regards, > > Severin > > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]