sound like your is a very edge case, not sure if it is worth for my case to always make sure it works with reactor without storing sibling project into local repository.
by me having to run with '-pl :someArtifactId -am', maven no longer friendly to work with Thanks for the details explanation -Dan On Mon, Nov 11, 2013 at 2:11 PM, Robert Scholte <codeh...@sourcegrounds.com>wrote: > This is based on best practice. > 'install' is the worst solution for this, because you can't be sure that > the installed artifact is in the same state as the sources of the matching > module. > Instead you should run mvn (verify) -pl :someArtifactId -am > This will also build the depending modules and is the most efficient way > to build 1 module. > By running 'install', your local repository will look always different > compared to your co-workers which can cause surprising effects. > > The reason I couldn't build the latest release of the > webstart-maven-plugin was probably a side effect of an 'install'. A couple > of integration tests referred to a hard SNAPSHOT, which wasn't available in > my local repo. > Sure, there was a problem with the test, but the release manager didn't > noticed it because he had the SNAPSHOT in his local repo. > > Robert > > Op Mon, 11 Nov 2013 21:06:43 +0100 schreef Dan Tran <dant...@gmail.com>: > > > I find it super convenient: >> >> 1. For multi modules project since I dont have keep enter a goal on >> command >> line. Verify goal is not good enough since I need all artifacts in be >> installed on local repository >> 2. I can jump between modules to build individually >> >> What is your reason for 'verify' goal? >> >> -D >> >> >> On Mon, Nov 11, 2013 at 9:46 AM, Robert Scholte >> <codeh...@sourcegrounds.com>wrote: >> >> Hmm, I'm not a huge fan of the defaultGoal and especially not if it is >>> install. >>> I'd prefer 'verify' instead. >>> >>> Robert >>> >>> Op Mon, 11 Nov 2013 00:34:40 +0100 schreef <dant...@codehaus.org>: >>> >>> Revision: >>> >>>> >>>> 18914 >>>> Author: >>>> >>>> dantran >>>> Date: >>>> >>>> 2013-11-10 17:34:39 -0600 (Sun, 10 Nov 2013) >>>> >>>> Log Message >>>> >>>> Add defaultGoal at top level pom >>>> >>>> Modified Paths >>>> >>>> trunk/mojo/appassembler/pom.xml >>>> >>>> Diff >>>> >>>> Modified: trunk/mojo/appassembler/pom.xml (18913 => 18914) >>>> >>>> >>>> >>>> --- trunk/mojo/appassembler/pom.xml 2013-11-10 07:36:22 UTC >>>> (rev 18913) >>>> +++ trunk/mojo/appassembler/pom.xml 2013-11-10 23:34:39 UTC >>>> (rev 18914) >>>> >>>> @@ -183,6 +183,9 @@ >>>> >>>> >>>> >>>> <build> >>>> >>>> + >>>> + <defaultGoal>install</defaultGoal> >>>> + >>>> >>>> <pluginManagement> >>>> >>>> <plugins> >>>> >>>> <plugin> >>>> >>>> To unsubscribe from this list please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >>>> >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >>> > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >