[M2] can we use 'mvn assembly' instead assembly:assembly
Like we can do 'mvn install' instead install:install If possible, what needs be configured and where? Thanks -H -- View this message in context: http://www.nabble.com/-M2--can-we-use-%27mvn-assembly%27-instead-assembly%3Aassembly-t1737143.html#a4720482 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [M2] can we use 'mvn assembly' instead assembly:assembly
Based on my limited understanding, no. One is requesting a plugin goal, the other is requesting execution of a build phase. In other words 'install' != 'install:install'. 'mvn install' == execute the default build lifecycle up to and including the install phase, which should execute all plugin goals that are attached to the phases up to and including the install phase. 'mvn install:install' == execute the 'install' plugin in the maven namespace and the 'install' goal on that plugin. The first 'install' indicates the plugin, the second 'install' indicates the goal. 'mvn assembly' == error as there is no 'assembly' phase in any life cycle. 'mvn 'assembly:assembly' == execute the 'assembly' plugin in the maven namespace and the 'assembly' goal on that plugin. -Nathan -Original Message- From: hamdard [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 2:14 PM To: users@maven.apache.org Subject: [M2] can we use 'mvn assembly' instead assembly:assembly Like we can do 'mvn install' instead install:install If possible, what needs be configured and where? Thanks -H -- View this message in context: http://www.nabble.com/-M2--can-we-use-%27mvn-assembly%27-instead-assembl y%3Aassembly-t1737143.html#a4720482 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [M2] can we use 'mvn assembly' instead assembly:assembly
You would use 'mvn package' and bind the assembly:assembly mojo to the 'package' build lifecycle phase in your pom. I could swear I've seen an example on the list before but I don't have an convienent example. -Original Message- From: hamdard [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 2:14 PM To: users@maven.apache.org Subject: [M2] can we use 'mvn assembly' instead assembly:assembly Like we can do 'mvn install' instead install:install If possible, what needs be configured and where? Thanks -H -- View this message in context: http://www.nabble.com/-M2--can-we-use-%27mvn-assembly%27-instead-assembl y%3Aassembly-t1737143.html#a4720482 Sent from the Maven - Users forum at Nabble.com. - 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]
RE: [M2] can we use 'mvn assembly' instead assembly:assembly
So if this is the case, if you're sitting at the parent pom level, any module poms break during packaging (because all their paths are relative to their respective poms). Example C:\work\projectname\pom.xml -- parent C:\work\projectname\module1\pom.xml -- module Calling mvn assembly:assembly in C:\work\projectname breaks because C:\work\projectname\target doesn't exist (but C:\work\projectname\module1\target does). How do you resolve this? -Original Message- From: Beyer,Nathan [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 3:35 PM To: Maven Users List Subject: RE: [M2] can we use 'mvn assembly' instead assembly:assembly Based on my limited understanding, no. One is requesting a plugin goal, the other is requesting execution of a build phase. In other words 'install' != 'install:install'. 'mvn install' == execute the default build lifecycle up to and including the install phase, which should execute all plugin goals that are attached to the phases up to and including the install phase. 'mvn install:install' == execute the 'install' plugin in the maven namespace and the 'install' goal on that plugin. The first 'install' indicates the plugin, the second 'install' indicates the goal. 'mvn assembly' == error as there is no 'assembly' phase in any life cycle. 'mvn 'assembly:assembly' == execute the 'assembly' plugin in the maven namespace and the 'assembly' goal on that plugin. -Nathan -Original Message- From: hamdard [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 2:14 PM To: users@maven.apache.org Subject: [M2] can we use 'mvn assembly' instead assembly:assembly Like we can do 'mvn install' instead install:install If possible, what needs be configured and where? Thanks -H -- View this message in context: http://www.nabble.com/-M2--can-we-use-%27mvn-assembly%27-instead-assembl y%3Aassembly-t1737143.html#a4720482 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. --- - 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]
RE: [M2] can we use 'mvn assembly' instead assembly:assembly
All the mvn2 documentation I've seen said you need to explicitly call package THEN assembly, bind it to something later like verify (and use that). http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodu le/module-binary-inclusion-simple.html NOTE: Because of a quirk in Maven 2.0's execution model relating to aggregator mojos and the inheritance hierarchy, we need to explicitly execute the package phase ahead of the assembly invocation, to ensure all modules have been built. -Original Message- From: Mike Perham [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 3:45 PM To: Maven Users List Subject: RE: [M2] can we use 'mvn assembly' instead assembly:assembly You would use 'mvn package' and bind the assembly:assembly mojo to the 'package' build lifecycle phase in your pom. I could swear I've seen an example on the list before but I don't have an convienent example. -Original Message- From: hamdard [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 2:14 PM To: users@maven.apache.org Subject: [M2] can we use 'mvn assembly' instead assembly:assembly Like we can do 'mvn install' instead install:install If possible, what needs be configured and where? Thanks -H -- View this message in context: http://www.nabble.com/-M2--can-we-use-%27mvn-assembly%27-instead-assembl y%3Aassembly-t1737143.html#a4720482 Sent from the Maven - Users forum at Nabble.com. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [M2] can we use 'mvn assembly' instead assembly:assembly
Yeah, that makes sense I guess. I've always done a module as a separate child module that is built last rather than trying to tie the assembly to the parent module itself. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 2:57 PM To: Maven Users List Subject: RE: [M2] can we use 'mvn assembly' instead assembly:assembly All the mvn2 documentation I've seen said you need to explicitly call package THEN assembly, bind it to something later like verify (and use that). http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodu le/module-binary-inclusion-simple.html NOTE: Because of a quirk in Maven 2.0's execution model relating to aggregator mojos and the inheritance hierarchy, we need to explicitly execute the package phase ahead of the assembly invocation, to ensure all modules have been built. -Original Message- From: Mike Perham [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 3:45 PM To: Maven Users List Subject: RE: [M2] can we use 'mvn assembly' instead assembly:assembly You would use 'mvn package' and bind the assembly:assembly mojo to the 'package' build lifecycle phase in your pom. I could swear I've seen an example on the list before but I don't have an convienent example. -Original Message- From: hamdard [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 2:14 PM To: users@maven.apache.org Subject: [M2] can we use 'mvn assembly' instead assembly:assembly Like we can do 'mvn install' instead install:install If possible, what needs be configured and where? Thanks -H -- View this message in context: http://www.nabble.com/-M2--can-we-use-%27mvn-assembly%27-instead-assembl y%3Aassembly-t1737143.html#a4720482 Sent from the Maven - Users forum at Nabble.com. - 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] - 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]