Building the same project with 2 different pom.xml

On 7/7/10 8:30 AM, govind ashrit wrote:

Don’t do this. Figure out how to use profiles or split the project.

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

On 07/07/2010 2:07 AM, Stephen Connolly wrote: How do I specify that those files are in Nexus? No one person builds all the war or jar files. Each person needs a way to collect the whole application (about 60 modules) in order to have a complete application.

Ron

Write Maven Books – Packt Publishing

Hi Srirangan

I would be very interested in this – have been considering a maven 3 title and the cookbook style works well. I’m currently converting a huge maven 2 project to version 3 focusing on tests, intrgration tests, meter, static analysis.

Where are you up to with your book and any areas in particular where you need help?

Thanks Ben

Sent from my iPhone

On 7 Jul 2010, at 10:27, Srirangan wrote:

Maven release plugin + CVS

I have a problem while performing a mvn release:prepare task when the project is downloaded from CVS, because the files are read only (so pom.xml can’t be updated with new version).

Error writing POM: C:Documents and Settingsa.dionisiDesktopPLXSourceAuditingWebServicepom.xml (Access is denied)

I tried with useEditMode parameter for the plugin:

org.apache.maven.plugins maven-release-plugin 2.0 clean install true

true

but I receive the warning: [WARNING] Provider cvs does not support edit operation. I tried also with scm:edit…same story.

Is there a way to edit the project before release:prepare? Thank you for help.

Question on maven-nar-plugin

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 artifact (exe of dll)?

I don’t see any references to it.

prepare-package is not a valid lifecycle phase?

This is new in Maven 2.1 apparently… It works in 3.0-BETA1.

Maven 3 explode goal?

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.

when does the plugin goal get executed during the lifecycle

[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] [antrun:run {execution: default}] [INFO] Executing tasks [echo] Invoking explode ant target…

So by default the plugin goal executes *after* the phase (and final goal) it’s bound to…

change version?

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?

Unpacking war file as part of project lifecycle

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 dependencies (which is what the dependency plugin does), but the actual warfile itself that was built during the package phase. I can’t use the directory from which the warfile was built, since the name of that directory varies with the project’s maven coordinates, and I don’t want to change the name of that directory to exclude the maven coordinates for obvious reasons (e.g. old builds might collide when version numbers are updated). Is there a maven plugin that will simply unpack a war file, as if executing “jar xvf somefile.war”? As an alternate solution, is there a plugin that will recursively copy the contents of one directory to another?

Thanks, Tom Ault