ExcludeScope is only available in the 2.0 version, which is snapshot
currently and moved to apache.
(http://maven.apache.org/plugins/maven-dependency-plugin/). A release is
pending very soon. To use the new one:
<group>org.apache.maven.plugins</group>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.0-alpha-1-SNAPSHOT</version>

You'll also need to add the snapshot repo to your settings.

<repository>
     <id>maven-snaps</id>
     <url>http://people.apache.org/repo/m2-snapshot-repository</url>
     <snapshots>
      <enabled>true</enabled>
     </snapshots>
     <releases>
      <enabled>false</enabled>
     </releases>
    </repository>  

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Steinar Bang
Sent: Monday, November 20, 2006 2:36 PM
To: [email protected]
Subject: Re: Pulling jars into local repository

>>>>> "Brian E. Fox" <[EMAIL PROTECTED]>:

> The copy mojo doesn't care about the scope because it will copy the 
> artifacts listed in the artifactItems element. The scope is used by 
> copy-dependencies to decide which ones from the project need to be 
> copied since it starts from the entire dependency element. If you 
> don't specify a scope, it will include all.

It's copy-dependencies that copies the bundles I'm trying to stop it
from copying (the conflicting OSGi framework).

Is there a place I can put scope on copy-dependencies?  Is that the
excludeScope setting?

I tried putting this in, but it didn't help, either:
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>dependency-maven-plugin</artifactId>
        <executions>
         <execution>
          <id>copy-dependencies</id>
          <phase>install</phase>
          <goals>
           <goal>copy-dependencies</goal>
          </goals>
          <configuration>
           <excludeScope>install</excludeScope>
 
<outputDirectory>${user.home}/pde_target_platform/plugins</outputDirecto
ry>
          </configuration>
          ...


---------------------------------------------------------------------
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]

Reply via email to