You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ArneD <pu...@degenring.de> on 2006/08/29 11:03:12 UTC

maven-dependency-plugin - Why is "scope" parameter read-only?

I am trying to use maven-dependency-plugin (latest snapshot version) using
the following configuration:

      <plugin> 
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId> 
        <version>2.0-SNAPSHOT</version>
        <executions>
          <execution>
             <id>copy_jars_to_webinf_lib</id>
             <phase>initialize</phase>
             <goals>
                <goal>copy-dependencies</goal>
             </goals>
             <configuration>
               
<outputDirectory>${basedir}/WebContent/WEB-INF/lib</outputDirectory>
                <scope>compile</scope>
             </configuration>
          </execution>
        </executions>
      </plugin>

However, I get the error message:

[INFO] Error configuring: org.apache.maven.plugins:maven-dependency-plugin.
Reason: ERROR: Cannot override read-only parameter: scope in goal:
dependency:copy-dependencies

Why is "scope" read-only? (See AbstractDependencyFilterMojo.scope).

Thanks,
Arne
-- 
View this message in context: http://www.nabble.com/maven-dependency-plugin---Why-is-%22scope%22-parameter-read-only--tf2182289.html#a6035345
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org