Sorry if I'm missing the obvious, but I keep getting the following error
with the dependency plugin:

[INFO]
------------------------------------------------------------------------
----
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
----
[INFO] One or more required plugin parameters are invalid/missing for
'dependency:unpack'

[0] inside the definition for plugin: 'dependency-maven-plugin'specify
the following:

<configuration>
  ...
  <artifactItems>VALUE</artifactItems>
</configuration>.


I have the following in my pom.xml

...
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
...
    </dependencies>


And

    <build>
        <plugins>
...
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>dependency-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>unpack</id>
                        <phase>package</phase>
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>junit</groupId>
                                    <artifactId>junit</artifactId>
                                    <version>3.8.1</version>
                                    <type>jar</type>
 
<outputDirectory>${project.build.directory}/alternateLocation</outputDir
ectory>
                                </artifactItem>
                            </artifactItems>
 
<outputDirectory>${project.build.directory}</outputDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            
        </plugins>
    </build>


What am I missing?

Dan



PS: There is a typo in the docs:

In the "How to use dependency:unpack" section, the docs shows:

<ouputDirectory>${project.build.directory}/alternateLocation</ouputDirec
tory>

Should be: (missing first "t" in output)

<outputDirectory>${project.build.directory}/alternateLocation</outputDir
ectory>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to