Shade plugin: dependency-reduced-pom.xml fails to validate

2010-07-06 Thread Jan T. Kim
Dear All, I've consolidated dependencies in a multi-module project by putting them all into a dependencyManagement element of the top-level pom.xml so that dependencies the modules can be simplified. However ``mvn package'' now ends with an error in a module (called import) that's building a

Customized Maven congfiguration

2010-07-06 Thread Paulwintech
Hi All, I am a new user to maven. And i have the following queries. In my concern we use CVS as repository ant for build. Whenever a new build is created we have a procedure like first updating CVS and then creating build using ant and then taking the new build and copying it in a new

Unpacking war file as part of project lifecycle

2010-07-06 Thread TOM AULT, BLOOMBERG/ 731 LEXIN
I have an “interesting” situation at work where I need to unpack the warfile built by a POM to a known directory whose name does not vary with the project’s maven coordinates prior to starting an embedded tomcat server via “mvn tomcat:run-war.” Note that I don’t need to unpack the project

Re: Customized Maven congfiguration

2010-07-06 Thread Wayne Fay
In my concern we use CVS as repository ant for build. Whenever a new build is created we have a procedure like first updating CVS and then creating build using ant and then taking the new build and copying it in a new folder So you want to use Ant to do the building, and Maven for the rest??

Re: Customized Maven congfiguration

2010-07-06 Thread Shan Syed
build your projects using maven, then orchestrate your build with something like hudson http://hudson-ci.org/ you can set various triggers on how to kick off a build (time/cron based, or monitor CVS for changes) you can also invoke deploy plugins and what not through maven On Tue, Jul 6, 2010 at

Re: Customized Maven congfiguration

2010-07-06 Thread Ron Wheeler
And install a local repo like Nexus to manage your maven artifacts and simplify dependency management. On 06/07/2010 11:54 AM, Shan Syed wrote: build your projects using maven, then orchestrate your build with something like hudson http://hudson-ci.org/ you can set various triggers on how to

is there a way to query maven for all the X type of modules it just built?

2010-07-06 Thread Shan Syed
If I have a multi-module project made up of JARs and WARs and ZIPs and... etc is there a way to commit an action on, for example, all the WARs that were just built, without having to specify particular projects? - To unsubscribe,

Re: is there a way to query maven for all the X type of modules it just built?

2010-07-06 Thread Ron Wheeler
On 06/07/2010 2:24 PM, Shan Syed wrote: If I have a multi-module project made up of JARs and WARs and ZIPs and... etc is there a way to commit an action on, for example, all the WARs that were just built, without having to specify particular projects?

Re: is there a way to query maven for all the X type of modules it just built?

2010-07-06 Thread Shan Syed
ah cool, looks like something that could be written as a mojo? who knows my problem is that I am using Hudson to build a few multimodule projects, which will have an increasing number of WARs as the company grows Hudson gives me convoluted URLs to specific builds, which I manually maintain in an

when does the plugin goal get executed during the lifecycle

2010-07-06 Thread asookazian
Does the plugin goal below get executed before or after the completion of the install phase when I exec 'mvn clean install' command? Is there a way to configure the before or after order? profile idant-explode/id build plugins

change version?

2010-07-06 Thread Frank Maritato
I have a multimodule maven project and I want to change the version number. Unfortunately, it looks like I have to manually edit each pom.xml (or write some sort of perl script) to accomplish this. Is there a better, cooler, faster way to do this? Maybe with a plugin of some sort? -- Frank

Re: when does the plugin goal get executed during the lifecycle

2010-07-06 Thread asookazian
[INFO] [clean:clean] [INFO] [ear:generate-application-xml] [INFO] [resources:resources] [INFO] [antrun:run {execution: fix.eclipse:eclipse-eclipseEAR.applicationXML}] [INFO] [ear:ear] [INFO] [source:jar {execution: default}] [INFO] [ear:ear {execution: default}] [INFO] [install:install] [INFO]

Re: change version?

2010-07-06 Thread Shan Syed
http://maven.apache.org/plugins/maven-release-plugin/examples/update-versions.html On Tue, Jul 6, 2010 at 5:06 PM, Frank Maritato fmarit...@attinteractive.com wrote: I have a multimodule maven project and I want to change the version number. Unfortunately, it looks like I have to manually edit

Re: when does the plugin goal get executed during the lifecycle

2010-07-06 Thread Anders Hammar
No, it is executed during the install phase. However, it might be executed after the install:install goal which is also bound to that phase. /Anders On Tue, Jul 6, 2010 at 23:09, asookazian asookaz...@gmail.com wrote: [INFO] [clean:clean] [INFO] [ear:generate-application-xml] [INFO]

Re: change version?

2010-07-06 Thread Frank Maritato
% mvn release:update-versions [snip] [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: release:update-versions in

Re: change version?

2010-07-06 Thread Wayne Fay
[INFO] Required goal not found: release:update-versions in org.apache.maven.plugins:maven-release-plugin:2.0-beta-8 Try mvn -U release... You have an older version of release plugin it seems. Wayne - To unsubscribe, e-mail:

Re: Unpacking war file as part of project lifecycle

2010-07-06 Thread Stephen Connolly
dependency:unpack-dependencies is most likely the one you want (I'm assuming the war is produced as part of your build reactor... if not then dependency:unpack is your man) -Stephen On 6 July 2010 16:06, TOM AULT, BLOOMBERG/ 731 LEXIN ta...@bloomberg.netwrote: I have an “interesting” situation

Re: change version?

2010-07-06 Thread Stephen Connolly
or use mvn versions:set -DnewVersion=___ On 6 July 2010 23:08, Wayne Fay wayne...@gmail.com wrote: [INFO] Required goal not found: release:update-versions in org.apache.maven.plugins:maven-release-plugin:2.0-beta-8 Try mvn -U release... You have an older version of release plugin it

Maven 3 explode goal?

2010-07-06 Thread asookazian
Currently, I'm running an ant target (unzip) to explode and then copy the EAR+WAR to JBoss. the jboss-maven-plugin is insufficient b/c the unpack does not explode the WAR in the EAR. Is this explode goal/plugin included as a feature in Maven 3? thx. -- View this message in context:

Re: Maven 3 explode goal?

2010-07-06 Thread asookazian
btw, the need for this functionality is to support incremental hot deployment (like copying facelets in JSF/Seam apps). -- View this message in context: http://maven.40175.n5.nabble.com/Maven-3-explode-goal-tp946368p946370.html Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Maven 3 explode goal?

2010-07-06 Thread Wayne Fay
Currently, I'm running an ant target (unzip) to explode and then copy the EAR+WAR to JBoss.  the jboss-maven-plugin is insufficient b/c the unpack does not explode the WAR in the EAR. You should probably look into adding this feature to the jboss-m-p directly, rather than hoping it might be

Re: Maven 3 explode goal?

2010-07-06 Thread asookazian
what about weblogic, websphere, glassfish, etc.? i don't agree... -- View this message in context: http://maven.40175.n5.nabble.com/Maven-3-explode-goal-tp946368p946373.html Sent from the Maven - Users mailing list archive at Nabble.com.

Re: change version?

2010-07-06 Thread Frank Maritato
Yay versions:set worked for me. Thanks! Stephen Connolly wrote: or use mvn versions:set -DnewVersion=___ On 6 July 2010 23:08, Wayne Fay wayne...@gmail.com wrote: [INFO] Required goal not found: release:update-versions in org.apache.maven.plugins:maven-release-plugin:2.0-beta-8 Try mvn

prepare-package is not a valid lifecycle phase?

2010-07-06 Thread asookazian
Using Maven 2.0.8. I run 'mvn clean prepare-package' and see: [ERROR] BUILD FAILURE [INFO] [INFO] Invalid task 'prepare-package': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or

Re: prepare-package is not a valid lifecycle phase?

2010-07-06 Thread asookazian
This is new in Maven 2.1 apparently... It works in 3.0-BETA1. -- View this message in context: http://maven.40175.n5.nabble.com/prepare-package-is-not-a-valid-lifecycle-phase-tp946376p946377.html Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Maven 3 explode goal?

2010-07-06 Thread asookazian
http://maven.apache.org/plugins/maven-war-plugin/plugin-info.html note the war:exploded goal! http://maven.apache.org/plugins/maven-ear-plugin/plugin-info.html there is no ear:exploded goal! so how can i actually use 'war:exploded' goal when i run a 'mvn clean install'?? thx. -- View this

Re: Maven 3 explode goal?

2010-07-06 Thread Wayne Fay
what about weblogic, websphere, glassfish, etc.?  i don't agree... Then implement the functionality in a place like Plexus-IO or another common/shared component and depend on it in the various jee server-specific plugins that you require it in. Wayne

Re: Maven 3 explode goal?

2010-07-06 Thread asookazian
Well I just ran 'mvn clean war:exploded' and that seems like a possibility as then that directory just needs to be copied into the exploded EAR directory in the target directory after (or during?) a 'mvn clean install'. Has anybody else used the war:exploded goal like this for a completely

Re: Maven 3 explode goal?

2010-07-06 Thread asookazian
actually looks like this will work (but not perfect): 1) run 'mvn clean install' for parent POM 2) run 'mvn war:exploded' for EAR module 3) rename WAR directory (as required) 4) delete package WAR in EAR directory 5) copy exploded WAR directory (from #3) to EAR directory 6) copy to app server

Re: Maven 3 explode goal?

2010-07-06 Thread Wayne Fay
Is it possible to replace the war:war goal invocation during the package lifecycle phase with war:exploded instead? You can create your own custom lifecycle (its not *that* tough) and do whatever you want with your builds... Wayne

Question on maven-nar-plugin

2010-07-06 Thread Eyal Goren
Hi, I have a strange question on that plugin. I created a basic C++ program that just create Hello world for my testing, and tried to compile with the plugin. I recieved a succesfull message, and can see in my local repository the new nar file. My question is- how can I see the native