dev@glassfish.java.net

Re: Minimal build

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Thu, 30 Jun 2011 17:17:39 +0530

Next time try using maven-reactor-plugin [1] like this:

mvn reactor:make-dependents -Dmake.folders=web/web-core

Sahoo

[1] http://maven.apache.org/plugins/maven-reactor-plugin/

On Thursday 23 June 2011 06:45 PM, Eirik Bjørsnøs wrote:
> Thanks, Jane
>
> I ended up building:
>
> * the changed module
> * packager
> * distributions
>
> I might have saved some time by running only the relevant packager
> module(s), but I have up figuring out the dependencies.
>
> Works for now :-)
>
> Eirik.
>
> 2011/6/22 Jane Young<jane.young_at_oracle.com>:
>> Is there any changes in web/web-core/pom.xml? If yes, then you will need to
>> also build packager module.
>> Looks like you also need to build the module
>> "jdbc/jdbc-ra/jdbc-ra-distribution". The deployed artifact is a pom not a
>> jar. I need to look into this.
>>
>> If you're building from a clean local Maven repository for the first time,
>> it'll take a while. But following builds should not be that long, unless
>> you're compiling with "-U" option.
>> One other note is that since you're taking the SNAPSHOT artifacts from
>> remote Maven repository, the GF bundle could be unstable. Might as well
>> build the entire workspace locally first then you can build web/web-core,
>> packager and then distributions modules after you made changes in
>> web/web-core module.
>>
>> HTH,
>> Jane
>>
>>
>> On 6/21/11 6:34 AM, Eirik Bjørsnøs wrote:
>>> Hi,
>>>
>>> What's the minimal build one needs to do in order to create a fresh
>>> distribution after a change in let's say the web-core module?
>>>
>>> This does not seem to be enough:
>>>
>>> mvn -f web/web-core/pom.xml install
>>> mvn -f distributions/pom.xml install
>>>
>>> Now I'm building from the top, which takes a while to put it mildly :)
>>>
>>> Any tips?
>>>
>>> Eirik.
>>