You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Jacek Laskowski <ja...@laskowski.net.pl> on 2007/10/20 23:33:02 UTC

Re: Maven groupId and artifactId replacement

On 9/6/07, Marcin Waldowski <mw...@sulechow.net> wrote:

> In 'JMS and MDB sample application'
> (http://cwiki.apache.org/GMOxDOC20/jms-and-mdb-sample-application.data/jms-mdb-sample.zip)
> I found that some elements in geronimo-application.xml such as
> ${pom.groupId}and ${pom.artifactId} are magicaly converted to correct
> values during 'maven package'.
...
> I tried to find what part of a build proces make this replacement (which
> plugin), but without any success. Can anyone give me a hint where to
> find it?

Czesc Marcin,

I think you might've found the answer, but in case you're not - the
answer is in samples/pom.xml where filtered resources are defined.

        <resources>
            <resource>
                <directory>${pom.basedir}/src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>

I'm working on the example right now (that's how I stumbled upon this
question of yours) and found a way to minimize the number of required
files in the ear (I couldn't understand why the rar is in the ear, but
couldn't come up with the solution to get rid of it until now).

p.s. Co robisz z Geronimo? Jak wrazenia?

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Re: Maven groupId and artifactId replacement

Posted by Marcin Waldowski <mw...@sulechow.net>.
Jacek Laskowski wrote:
> 
> Czesc Marcin,
> 
> I think you might've found the answer, but in case you're not - the
> answer is in samples/pom.xml where filtered resources are defined.
> 
>         <resources>
>             <resource>
>                 <directory>${pom.basedir}/src/main/resources</directory>
>                 <filtering>true</filtering>
>             </resource>
>         </resources>
> 

Yes, I found it, but I forgot to write about it here. Thanks for your 
feedback. Filtering is one of the basic maven feature. I forgot about 
it, and tried to find some plugin which is responsible for this ;)

> I'm working on the example right now (that's how I stumbled upon this
> question of yours) and found a way to minimize the number of required
> files in the ear (I couldn't understand why the rar is in the ear, but
> couldn't come up with the solution to get rid of it until now).

Yes, they are there because of Transitive Dependencies. I got rid of 
them by adding them to pom with scope 'provided' ;) Did you do the same?

> 
> p.s. Co robisz z Geronimo? Jak wrazenia?

Na to pytanie odpowiem Ci w odrębnym mailu :)

Regards, Marcin