Hi,
I am trying to deploy a zip file built using Maven to the Nexus repository
(internal to our company).
When I use mvn deploy it connects to repository and deploys the snapshot
except with the default jar file NOT with the zip file I am building as
explained below.
"uCMDB-PatternDev-0.0.1-20130319.143249-1.jar" instead of the ZIP I created in
target folder : uCMDB-PatternDev-0.0.1-SNAPSHOT-packages.zip
I experimented with maven-deploy-plugin which didn't work.
Also I rather NOT define file, just want it to copy the output of assembly
plugin...
Thanks,
--------------------------------------------------------------------------------------------------------
My project builds a ZIP file using following plugin. (this part works fine).
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<configuration>
<descriptors>
<descriptor>distribution.xml</descriptor>
</descriptors>
</configuration>
</plugin>
Distribution.xml
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>packages</id>
<formats>
<format>zip</format>
</formats>
<repositories>
<repository>
<outputDirectory>repository</outputDirectory>
</repository>
</repositories>
<fileSets>
<fileSet>
<directory>./dist</directory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>./target</exclude>
<exclude>./repository</exclude>
</excludes>
</fileSet>
</fileSets>
</assembly>
My repository connections are defined as follows in the pom.xml: (commented out
URL).
<distributionManagement>
<repository>
<id>nexuspro-prod-release</id>
<url>https://nexuspro...</url>
</repository>
<snapshotRepository>
<id>nexuspro-prod-snapshot</id>
<url>https://nexuspro...</url>
</snapshotRepository>
</distributionManagement>
Robert Zanzerkia