"PS: Should I submit the docerr via the plugin forum?"
Yes, a MOJO jira please.

-----Original Message-----
From: Rollo, Dan [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 13, 2006 11:27 AM
To: Brian E. Fox; Maven Users List
Subject: RE: [m2]: dependency-maven-plugin "artifactItems" error

Bingo! I was mistakenly doing both:

mvn install dependency:unpack

and not realizing this would "double execute" since my pom also binds to
a lifecycle...learning as I go.

Doing just:

mvn install 

works nicely.

Thanks Brian.

PS: Should I submit the docerr via the plugin forum?

-----Original Message-----
From: Brian E. Fox [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 12, 2006 9:39 PM
To: Maven Users List
Subject: RE: [m2]: dependency-maven-plugin "artifactItems" error

I guess I'm not clear what's happening here. Are you running this like
mvn dependency:unpack or just binding to the lifecycle and doing mvn
install? The copy and unpack goals won't work from the command line
because of the artifactItem array. If you want to launch from the
command line, use the xxx-dependencies or resolve goal. 

-----Original Message-----
From: Rollo, Dan [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 12, 2006 5:50 PM
To: [email protected]
Subject: [m2]: dependency-maven-plugin "artifactItems" error

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]



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