Yup, this is a surprising repetition, agreed, but that's "normal". Please file an enhancement request about that, I guess this might be something fixable.
But as deploy-file is supposed to be used quite exceptionnally, I guess not a lot of people complained. Btw, if you use Nexus and that deploy very occasionnally, you might want to use its UI to do that graphically instead. Cheers 2013/3/21 Zanzerkia, Robert <[email protected]> > I found the goal deploy:deploy-file that works to deploy specific file to > Nexus. > mvn deploy:deploy-file -Durl=$REPO_URL -DrepositoryId=$REPO_ID > -DgroupId=org.myorg -DartifactId=myproj -Dversion=1.2.3 -Dpackaging=zip > -Dfile=myproj.zip > > What I don't understand is why do I have to supply url, repositoryID, > groupID, artifactID, version on command line if it's already in pom.xml ? > > Thanks, > > Robert Zanzerkia > Fidelity Investments > FTG-OPS > Two Contra Way > Merrimack, NH 03054 > > Work: 603-791-3477 > Blackberry: 603-320-9682 > > > -----Original Message----- > From: Zanzerkia, Robert > Sent: Tuesday, March 19, 2013 12:11 PM > 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 > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
