[ http://jira.codehaus.org/browse/MNG-4324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=189492#action_189492 ]
jieryn commented on MNG-4324: ----------------------------- I solved this problem in a very specific way for my use case (maven-reactor-plugin) with the following Perl tidbit: {code} #!/usr/bin/env perl # jie...@gmail.com use strict; use warnings; use XML::XPath; my $xp = XML::XPath->new( filename => 'pom.xml' ); my $packaging = $xp->findvalue('/project/packaging') || 'jar'; die 'Packaging is POM, nothing to do.' if $packaging eq 'pom'; my $groupId = $xp->findvalue('/project/groupId'); my $artifactId = $xp->findvalue('/project/artifactId'); chdir '..' or die 'Could not CHDIR to parent.'; system "mvn reactor:make -Dmake.artifacts=$groupId:$artifactId" {code} Maybe it will help someone out there. > Add the ability to launch a reactor build with -amd or -am options from a > submodule > ----------------------------------------------------------------------------------- > > Key: MNG-4324 > URL: http://jira.codehaus.org/browse/MNG-4324 > Project: Maven 2 > Issue Type: New Feature > Components: Command Line, Reactor and workspace > Affects Versions: 2.2.1 > Reporter: Arnaud Heritier > > This is an idea comming from this thread : > http://www.nabble.com/Hibernate-feedback-about-Maven-usage.-td25137434.html > And more particularly from this blog post : > http://relation.to/12116.lace > The idea is to not have to set the -pl option, and use the current module for > it. Maven will have to search the reactor through parents to construct and > launch the build. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira