You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Peter Niederwieser <pn...@gmail.com> on 2009/10/25 22:29:36 UTC

Cannot get dependency exclusion to work

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


Re: Cannot get dependency exclusion to work

Posted by Peter Niederwieser <pn...@gmail.com>.
Thanks a lot, I just didn't spot this.


Stevo Slavic wrote:
> 
> Exclusion's groupId and artifactId values seem to be permuted.
> 
> Regards,
> Stevo.
> 
> On Sun, Oct 25, 2009 at 10:29 PM, Peter Niederwieser
> <pn...@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
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Cannot-get-dependency-exclusion-to-work-tp26051992p26052174.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


Re: Cannot get dependency exclusion to work

Posted by Stevo Slavić <ss...@gmail.com>.
Exclusion's groupId and artifactId values seem to be permuted.

Regards,
Stevo.

On Sun, Oct 25, 2009 at 10:29 PM, Peter Niederwieser <pn...@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
>
>