Re: FW: Nexus deployment of a ZIP file...
> I have a lot to learn about maven :-) (what difference does it > make when plugin is inside pluginManagement vs. outside). >From Maven documentation: pluginManagement: is an element that is seen along side plugins. Plugin Management contains plugin elements in much the same way, except that rather than configuring plugin information for this particular project build, it is intended to configure project builds that inherit from this one. However, this only configures plugins that are actually referenced within the plugins element in the children. The children have every right to override pluginManagement definitions. More info here on SO: http://stackoverflow.com/questions/10483180/maven-what-is-pluginmanagement And of course, more info on the Maven website and in various documentation, ebooks, blog posts, etc. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: FW: Nexus deployment of a ZIP file...
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: maven-assembly-plugin 2.4 itamdiscovery-package package single distribution.xml false maven-antrun-plugin 1.7 itamdiscovery-package compile run ant-contrib ant-contrib 1.0b3 ant ant org.apache.ant ant-nodeps 1.8.1 -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] 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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: FW: Nexus deployment of a ZIP file...
Stephen, That solved my problem. I also had to make sure that id for both plug-in matched. Also I tried to change id from 'default-cli' to something else and it didn't work. After below changes this command worked. It created zip file and deployed to Nexus without having to use deploy:deploy-file... mvn antrun:run assembly:single deploy Here's the POM that worked. maven-assembly-plugin 2.4 default-cli package single distribution.xml false maven-antrun-plugin 1.7 default-ci compile run ant-contrib ant-contrib 1.0b3 ant ant org.apache.ant ant-nodeps 1.8.1 Thanks, -Original Message- From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] Sent: Thursday, March 21, 2013 11:04 AM To: Maven Users List Subject: Re: FW: Nexus deployment of a ZIP file... yeah you probably want to bind antrun:run to the lifecycle before the package phase then On 21 March 2013 14:45, Zanzerkia, Robert wrote: > Stephen, > Thank you for answering the question and sending below information. > I changed my POM.xml (See attached). > When I use the command: > mvn antrun:run assembly:single deploy > (I have external ant command to do other things before creating > the zip file). > > I get below error. > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-assembly-plugin:2. > 4:assembly (default-cli) on project uCMDB-PatternDev: Error reading > assemblies: > No assembly descriptors found. -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the > -e swit > ch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] >
Re: FW: Nexus deployment of a ZIP file...
yeah you probably want to bind antrun:run to the lifecycle before the package phase then On 21 March 2013 14:45, Zanzerkia, Robert wrote: > Stephen, > Thank you for answering the question and sending below information. > I changed my POM.xml (See attached). > When I use the command: > mvn antrun:run assembly:single deploy > (I have external ant command to do other things before creating > the zip file). > > I get below error. > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-assembly-plugin:2. > 4:assembly (default-cli) on project uCMDB-PatternDev: Error reading > assemblies: > No assembly descriptors found. -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the > -e swit > ch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, > please rea > d the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionEXception > > However if I do mvn deploy it deploys the jar file... > > Thanks, > Robert > PS: I read the classifiers faq and added following to assembly execution > configuration. > false > > -Original Message- > From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] > Sent: Thursday, March 21, 2013 10:10 AM > To: Maven Users List > Subject: Re: FW: Nexus deployment of a ZIP file... > > Oh and if you want the assembly to be the primary artifact without a > classifier, you need to read > > http://maven.apache.org/plugins/maven-assembly-plugin/faq.html#required-classifiers > > > On 21 March 2013 14:05, Stephen Connolly >wrote: > > > well a simpler way would be to bind an execution of the assembply plugin > > to the lifecycle (probably at the package phase) and then you would just > go > > "mvn deploy" which will invoke all the plugins bound to phases on or > before > > the "deploy" phase. > > > > IIRC assembly:single the the preferred goal when binding to the > lifecycle, > > so you would just add > > > > > > > > some-id > > package > > single > > > > > > to the section for the assembly plugin > > > > > > On 21 March 2013 14:00, Zanzerkia, Robert >wrote: > > > >> Hi, > >> I have one plug-in that creates the zip file. > >> How do I change it to do deploy stage? > >> Normally I do mvn assembly:assembly deploy:deploy-file > >> > >> > >> > >> maven-assembly-plugin > >> 2.4 > >> > >> > >> > >> distribution.xml > >> > >> > >> > >> > >> Here is the distribution.xml > >> >> 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";> > >> packages > >> > >> zip > >> > >> > >> > >> > >> > >> ./dist > >> > >> ** > >> > >> > >> ./target > >> ./repository > >> > >> > >> > >> > >> > >> > >> Thanks, > >> Robert > >> > >> > >> -Original Message- > >> From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of > Baptiste > >> MATHUS > >> Sent: Thursday, March 21, 2013 9:40 AM > >> To: Maven Users List > >> Subject: Re: FW: Nexus deployment of a ZIP file... > >> > >> One simple way to go is to have a module dedicated to that assembly. > >> Then just mvn deploy it (or even simpler inside the whole multimodule > >> build). > >> > >> Cheers > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > >> For additional commands, e-mail: users-h...@maven.apache.org > >> > >> > > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org >
RE: FW: Nexus deployment of a ZIP file...
Stephen, Thank you for answering the question and sending below information. I changed my POM.xml (See attached). When I use the command: mvn antrun:run assembly:single deploy (I have external ant command to do other things before creating the zip file). I get below error. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2. 4:assembly (default-cli) on project uCMDB-PatternDev: Error reading assemblies: No assembly descriptors found. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionEXception However if I do mvn deploy it deploys the jar file... Thanks, Robert PS: I read the classifiers faq and added following to assembly execution configuration. false -Original Message- From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] Sent: Thursday, March 21, 2013 10:10 AM To: Maven Users List Subject: Re: FW: Nexus deployment of a ZIP file... Oh and if you want the assembly to be the primary artifact without a classifier, you need to read http://maven.apache.org/plugins/maven-assembly-plugin/faq.html#required-classifiers On 21 March 2013 14:05, Stephen Connolly wrote: > well a simpler way would be to bind an execution of the assembply plugin > to the lifecycle (probably at the package phase) and then you would just go > "mvn deploy" which will invoke all the plugins bound to phases on or before > the "deploy" phase. > > IIRC assembly:single the the preferred goal when binding to the lifecycle, > so you would just add > > > > some-id > package > single > > > to the section for the assembly plugin > > > On 21 March 2013 14:00, Zanzerkia, Robert wrote: > >> Hi, >> I have one plug-in that creates the zip file. >> How do I change it to do deploy stage? >> Normally I do mvn assembly:assembly deploy:deploy-file >> >> >> >> maven-assembly-plugin >> 2.4 >> >> >> >> distribution.xml >> >> >> >> >> Here is the distribution.xml >> > 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";> >> packages >> >> zip >> >> >> >> >> >> ./dist >> >> ** >> >> >> ./target >> ./repository >> >> >> >> >> >> >> Thanks, >> Robert >> >> >> -Original Message- >> From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste >> MATHUS >> Sent: Thursday, March 21, 2013 9:40 AM >> To: Maven Users List >> Subject: Re: FW: Nexus deployment of a ZIP file... >> >> One simple way to go is to have a module dedicated to that assembly. >> Then just mvn deploy it (or even simpler inside the whole multimodule >> build). >> >> Cheers >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";> 4.0.0 com.fmr.itamdiscovery uCMDB-PatternDev 0.0.1-SNAPSHOT uCMDBPatternDEV Build of uCMDB Packages. (ZIP files of folders). nexuspro-prod-release nexuspro-prod-snapshot
Re: FW: Nexus deployment of a ZIP file...
Oh and if you want the assembly to be the primary artifact without a classifier, you need to read http://maven.apache.org/plugins/maven-assembly-plugin/faq.html#required-classifiers On 21 March 2013 14:05, Stephen Connolly wrote: > well a simpler way would be to bind an execution of the assembply plugin > to the lifecycle (probably at the package phase) and then you would just go > "mvn deploy" which will invoke all the plugins bound to phases on or before > the "deploy" phase. > > IIRC assembly:single the the preferred goal when binding to the lifecycle, > so you would just add > > > > some-id > package > single > > > to the section for the assembly plugin > > > On 21 March 2013 14:00, Zanzerkia, Robert wrote: > >> Hi, >> I have one plug-in that creates the zip file. >> How do I change it to do deploy stage? >> Normally I do mvn assembly:assembly deploy:deploy-file >> >> >> >> maven-assembly-plugin >> 2.4 >> >> >> >> distribution.xml >> >> >> >> >> Here is the distribution.xml >> > 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";> >> packages >> >> zip >> >> >> >> >> >> ./dist >> >> ** >> >> >> ./target >> ./repository >> >> >> >> >> >> >> Thanks, >> Robert >> >> >> -Original Message- >> From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste >> MATHUS >> Sent: Thursday, March 21, 2013 9:40 AM >> To: Maven Users List >> Subject: Re: FW: Nexus deployment of a ZIP file... >> >> One simple way to go is to have a module dedicated to that assembly. >> Then just mvn deploy it (or even simpler inside the whole multimodule >> build). >> >> Cheers >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> >
Re: FW: Nexus deployment of a ZIP file...
well a simpler way would be to bind an execution of the assembply plugin to the lifecycle (probably at the package phase) and then you would just go "mvn deploy" which will invoke all the plugins bound to phases on or before the "deploy" phase. IIRC assembly:single the the preferred goal when binding to the lifecycle, so you would just add some-id package single to the section for the assembly plugin On 21 March 2013 14:00, Zanzerkia, Robert wrote: > Hi, > I have one plug-in that creates the zip file. > How do I change it to do deploy stage? > Normally I do mvn assembly:assembly deploy:deploy-file > > > > maven-assembly-plugin > 2.4 > > > > distribution.xml > > > > > Here is the distribution.xml > 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";> > packages > > zip > > > > > > ./dist > > ** > > > ./target > ./repository > > > > > > > Thanks, > Robert > > > -Original Message- > From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste > MATHUS > Sent: Thursday, March 21, 2013 9:40 AM > To: Maven Users List > Subject: Re: FW: Nexus deployment of a ZIP file... > > One simple way to go is to have a module dedicated to that assembly. > Then just mvn deploy it (or even simpler inside the whole multimodule > build). > > Cheers > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
RE: FW: Nexus deployment of a ZIP file...
Hi, I have one plug-in that creates the zip file. How do I change it to do deploy stage? Normally I do mvn assembly:assembly deploy:deploy-file maven-assembly-plugin 2.4 distribution.xml Here is the distribution.xml 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";> packages zip ./dist ** ./target ./repository Thanks, Robert -Original Message- From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste MATHUS Sent: Thursday, March 21, 2013 9:40 AM To: Maven Users List Subject: Re: FW: Nexus deployment of a ZIP file... One simple way to go is to have a module dedicated to that assembly. Then just mvn deploy it (or even simpler inside the whole multimodule build). Cheers - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: FW: Nexus deployment of a ZIP file...
Created JIRA improvement request. http://jira.codehaus.org/browse/MDEPLOY-159 Robert Zanzerkia Fidelity Investments FTG-OPS Two Contra Way Merrimack, NH 03054 Work: 603-791-3477 Blackberry: 603-320-9682 -Original Message- From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste MATHUS Sent: Thursday, March 21, 2013 9:01 AM To: Maven Users List Subject: Re: FW: Nexus deployment of a ZIP file... Hi, I would say this is http://jira.codehaus.org/browse/MDEPLOY But if you have a classical maven build, using deploy-file is actually not the way to go. Just do mvn deploy from the command line, and your artifacts should deploy naturally. Cheers 2013/3/21 Zanzerkia, Robert > Hi, > Can you send me link on how to submit enhancement request? > Using GUI is not an option as this is part of our nightly maven build > that deploys to Nexus repository. > > Thanks, > > Robert Zanzerkia > Fidelity Investments > FTG-OPS > Two Contra Way > Merrimack, NH 03054 > > Work: 603-791-3477 > Blackberry: 603-320-9682 > > > -Original Message- > From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste > MATHUS > Sent: Thursday, March 21, 2013 8:18 AM > To: Maven Users List > Subject: Re: Nexus deployment of a ZIP file... > > 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 > > > 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: users@maven.apache.org > > 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). > > > > > > maven-assembly-plugin > > 2.4 > > > > > > > > distribution.xml > > > > > > > > > > Distribution.xml > > > 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";> > > packages > > > > zip > > > > > > > > repository > > > > > > > > > > ./dist > >
Re: FW: Nexus deployment of a ZIP file...
One simple way to go is to have a module dedicated to that assembly. Then just mvn deploy it (or even simpler inside the whole multimodule build). Cheers
RE: FW: Nexus deployment of a ZIP file...
You're right I would have preferred to use just deploy but I ran into problem. I am using maven-assembly-plugin which creates my zip file. I could not figure out how to deploy that zip file to Nexus right from assembly. Thanks, Robert Zanzerkia Fidelity Investments FTG-OPS Two Contra Way Merrimack, NH 03054 Work: 603-791-3477 Blackberry: 603-320-9682 -Original Message- From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste MATHUS Sent: Thursday, March 21, 2013 9:01 AM To: Maven Users List Subject: Re: FW: Nexus deployment of a ZIP file... Hi, I would say this is http://jira.codehaus.org/browse/MDEPLOY But if you have a classical maven build, using deploy-file is actually not the way to go. Just do mvn deploy from the command line, and your artifacts should deploy naturally. Cheers 2013/3/21 Zanzerkia, Robert > Hi, > Can you send me link on how to submit enhancement request? > Using GUI is not an option as this is part of our nightly maven build > that deploys to Nexus repository. > > Thanks, > > Robert Zanzerkia > Fidelity Investments > FTG-OPS > Two Contra Way > Merrimack, NH 03054 > > Work: 603-791-3477 > Blackberry: 603-320-9682 > > > -Original Message- > From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste > MATHUS > Sent: Thursday, March 21, 2013 8:18 AM > To: Maven Users List > Subject: Re: Nexus deployment of a ZIP file... > > 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 > > > 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: users@maven.apache.org > > 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). > > > > > > maven-assembly-plugin > > 2.4 > > > > > > > > distribution.xml > > > > > > > > > > Distribution.xml > > > 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";> > > packages > > > > zip > > > > > > > > reposi
Re: FW: Nexus deployment of a ZIP file...
Hi, I would say this is http://jira.codehaus.org/browse/MDEPLOY But if you have a classical maven build, using deploy-file is actually not the way to go. Just do mvn deploy from the command line, and your artifacts should deploy naturally. Cheers 2013/3/21 Zanzerkia, Robert > Hi, > Can you send me link on how to submit enhancement request? > Using GUI is not an option as this is part of our nightly maven build > that deploys to Nexus repository. > > Thanks, > > Robert Zanzerkia > Fidelity Investments > FTG-OPS > Two Contra Way > Merrimack, NH 03054 > > Work: 603-791-3477 > Blackberry: 603-320-9682 > > > -Original Message- > From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste > MATHUS > Sent: Thursday, March 21, 2013 8:18 AM > To: Maven Users List > Subject: Re: Nexus deployment of a ZIP file... > > 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 > > > 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: users@maven.apache.org > > 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). > > > > > > maven-assembly-plugin > > 2.4 > > > > > > > > distribution.xml > > > > > > > > > > Distribution.xml > > > 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";> > > packages > > > > zip > > > > > > > > repository > > > > > > > > > > ./dist > > > > ** > > > > > > ./target > > ./repository > > > > > > > > > > > > > > My repository connections are defined as follows in the pom.xml: > > (commented out URL). > > > > > > > > nexuspro-prod-release > > https://nexuspro... > > > > > > nexuspro-prod-snapshot > > https://nexuspro... > > > > > > > > Robert Zanzerkia > > > > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > > -- > Baptiste MATHUS - http://batmat.net > Sauvez un arbre, > Mangez un castor ! > -- Baptiste MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !