maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stevo Slavić <ssla...@gmail.com>
Subject Re: Cannot get dependency exclusion to work
Date Sun, 25 Oct 2009 21:44:15 GMT
Exclusion's groupId and artifactId values seem to be permuted.

Regards,
Stevo.

On Sun, Oct 25, 2009 at 10:29 PM, Peter Niederwieser <pniederw@gmail.com>wrote:

>
> I'm trying to build grails-maven-plugin, and have added the following
> exclusion to its POM:
>
>
>
> <dependency>
>  <groupId>org.grails</groupId>
>  <artifactId>grails-scripts</artifactId>
>  <version>1.2-SNAPSHOT</version>
>  <scope>runtime</scope>
>  <exclusions>
>    <exclusion>
>      <artifactId>org.springframework</artifactId>
>      <groupId>spring-instrument-classloading</groupId>
>    </exclusion>
>  </exclusions>
> </dependency>
>
>
>
> Nevertheless, Maven always fails with:
>
>
>
> Missing:
> ----------
> 1) org.springframework:spring-instrument-classloading:jar:3.0.0.RC1
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.springframework
> -DartifactId=spring-instrument-classloading -Dversion=3.0.0.RC1
> -Dpackaging=jar -Dfile=/path/to/file
>
>  Alternatively, if you host your own repository you can deploy the file
> there:
>      mvn deploy:deploy-file -DgroupId=org.springframework
> -DartifactId=spring-instrument-classloading -Dversion=3.0.0.RC1
> -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
>  Path to dependency:
>        1) org.grails:grails-maven-plugin:maven-plugin:1.2-SNAPSHOT
>        2) org.grails:grails-scripts:jar:1.2-SNAPSHOT
>        3) org.grails:grails-core:jar:1.2-SNAPSHOT
>        4) org.springframework:spring-instrument-classloading:jar:3.0.0.RC1
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
>  org.grails:grails-maven-plugin:maven-plugin:1.2-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2),
>  Codehaus Snapshots (http://snapshots.repository.codehaus.org)
>
>
>
> What goes wrong here? Why is the exclusion not working? This is with Maven
> 2.2.0.
>
> Cheers,
> Peter
>
> --
> View this message in context:
> http://www.nabble.com/Cannot-get-dependency-exclusion-to-work-tp26051992p26051992.html
> 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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message