geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Dillon <ja...@planet57.com>
Subject Re: How to use M2 G Packaging Plugin
Date Mon, 24 Jul 2006 22:49:31 GMT
FYI, newer car plugin side is up:

     http://geronimo.apache.org/maven/plugins/car-maven-plugin

Though due to non-xhtml javadocs in PackageMojo the config page for  
that mojo is broken.  I've fixed it but need to wait again for the  
site to sync.

--jason


On Jul 24, 2006, at 1:18 PM, Prasad Kashyap wrote:

> I'd like Anita who implemented the plugin confirm my answers. Please
> see inline -
>
> On 7/24/06, Aaron Mulder <ammulder@alumni.princeton.edu> wrote:
>> I guess I have a few more questions, now that I think about it:
>>
>>  * Must you put the plan at src/plan/plan.xml or is there some way to
>> point it to a different file or use an embedded plan?
>
> There is a planFile config option in the mojos. So I suspect you may
> specify a different location for the plan file. By default, it expects
> the plan to be in target/plan/plan.xml.
>>
>>  * Must you put the plugin descriptor at src/conf/geronimo-plugin.xml
>> if <geronimoPlugin> is set to true?  Is there some way to point it to
>> a different file?
>
> I don't see this config option handled in any of the mojos. I suspect
> that either it got lost or it never got in, in the first place.  So
> the option is ignored.
>>
>>  * What dependencies should be listed in the POM for a CAR?  Let's  
>> say
>> you have one module to build a JAR and another module to make a CAR
>> out of that JAR.  Shouldn't the CAR POM be virtually empty except for
>> the parent module dependencies and some indication of which JAR  
>> you're
>> trying to make the CAR out of?  I assume it could get the rest as
>> transitive dependencies from the JAR POM.
>
> This is true simply as a matter of transitive deps from M2.
>
>
>>
>>  * How does the car plugin know what module you're trying to make a
>> CAR out of?  I looked at the console-jetty POM, for example, and it
>> had loads of dependencies, and there was nothing obvious about the
>> geronimo console EAR dependency to indicate that's the one that  
>> should
>> be turned into a CAR by this particular build.
>
> The console-jetty must have been a case of cut&paste error from it's
> project.xml. I looked at the welcome-jetty pom.xml and that seems
> correct. The welcome app lists all the deps and the welcome-jetty
> config lists just the welcome app.
>
>
>>
>> Thanks,
>>     Aaron
>
> Cheers
> Prasad
>
>>
>> On 7/24/06, Aaron Mulder <ammulder@alumni.princeton.edu> wrote:
>> > Great.  Is it the case that the plugin would have to be installed
>> > manually to work by default?  Is there something I can put in  
>> the POM
>> > that will make it fetch that one plugin from the snapshot repo you
>> > listed so each developer doesn't need to download it by hand?
>> >
>> > Thanks,
>> >     Aaron
>> >
>> > On 7/24/06, Jason Dillon <jason@planet57.com> wrote:
>> > > Well, the packaging plugging has been merged with the assembly
>> > > plugin, so now there is just one car plugin that handles all car
>> > > related fluff.
>> > >
>> > > You need to enable it as an exention, as in:
>> > >
>> > >      http://svn.apache.org/repos/asf/geronimo/sandbox/svkmerge/
>> > > m2migration/configs/pom.xml
>> > >
>> > > The set the packaging type to car and will package the plan  
>> for you.
>> > >
>> > > If you need to specify additional classpath or package  
>> configuration
>> > > you need to define something, as in:
>> > >
>> > >     http://svn.apache.org/repos/asf/geronimo/sandbox/svkmerge/
>> > > m2migration/configs/j2ee-system/pom.xml
>> > >
>> > > There is a 1.2-SNAPSHOT of the car-maven-plugin up here:
>> > >
>> > >     http://people.apache.org/repo/m2-snapshot-repository/
>> > >
>> > > Its a week or so old, but should work.
>> > >
>> > > --jason
>> > >
>> > >
>> > > On Jul 24, 2006, at 12:08 PM, Aaron Mulder wrote:
>> > >
>> > > > What do I need to put in a POM to use a working Geronimo  
>> Packaging
>> > > > Plugin for Maven 2?  Is there such a thing available on the  
>> Maven
>> > > > repos?  Do I need specific configuration directives in the  
>> POM or in
>> > > > my Maven config to pull it down?
>> > > >
>> > > > Thanks,
>> > > >    Aaron
>> > >
>> > >
>> >
>>


Mime
View raw message