Hi there,

Your missing phases and goals.  Below should get you closer.   More information 
can be found here:

http://maven.apache.org/plugins/maven-assembly-plugin/usage.html

-Jim

<plugin>
    <artifactId>maven-assembly-plugin</artifactId>
    <version>2.4</version>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>single</goal>
            </goals>
            <configuration>
                <descriptors>
                    <descriptor>distribution.xml</descriptor>
                </descriptors>
            </configuration>
        </execution>
    </executions>
</plugin>


-----Original Message-----
From: Zanzerkia, Robert [mailto:[email protected]]
Sent: Tuesday, March 19, 2013 11:11 AM
To: [email protected]
Subject: Nexus deployment of a ZIP file...

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



NOTICE: All information in and attached to this email may be proprietary, 
confidential, privileged and otherwise protected from improper or erroneous 
disclosure. If you are not the sender's intended recipient, you are not 
authorized to intercept, read, print, retain, copy, forward, or disseminate 
this message.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to