Hi Wayne,
Thank you for that hint.
I have a lot to learn about maven :-) (what difference does it make
when plugin is inside pluginManagement vs. outside).
I was able to change id also.
Now my command is very simple (I like it).
mvn deploy
Thanks,
Robert
New POM:
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>itamdiscovery-package</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>distribution.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>itamdiscovery-package</id>
<phase>compile</phase>
<configuration>
<target>
<ant
antfile="${project.build.directory}/../maven-build.xml">
<target
name="zip-all-packages" />
</ant>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>1.0b3</version>
<exclusions>
<exclusion>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-nodeps</artifactId>
<version>1.8.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
-----Original Message-----
From: Wayne Fay [mailto:[email protected]]
Sent: Thursday, March 21, 2013 3:31 PM
To: Maven Users List
Subject: Re: FW: Nexus deployment of a ZIP file...
> mvn antrun:run assembly:single deploy
>
> Here's the POM that worked.
If you are happy with things, then there is nothing more to do!
But if you want to further reduce your typing at the command line then
you could:
1. change id of default-cli in assembly plugin to something else
2. change id of default-cli in antrun plugin to something else
3. move those plugin declarations out of pluginManagement and into
build/plugins directly
4. just run "mvn deploy" from command line and poof, it should all
work as it already does without mentioning the assembly plugin or
antrun plugin on the command line at all
Wayne
---------------------------------------------------------------------
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]
