You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Serge Emmanuel Pagop <se...@googlemail.com> on 2007/07/11 17:32:35 UTC

+ maven-ear-plugin situation +

Hello Vincent,

I am trying to deploy a ready available j2ee modules.
here my ear module structure

EAR_Module
       +---------- pom.xml
       +---------- META-INF
                          +---------- application.xml
                          +----------  extensionDir
                                              +--------preferences.xml

and hier my pom.xml
<project>
 ...

<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-ear-plugin</artifactId>
                <configuration>
                    <earSourceExcludes>.modulemaps,.j2ee,pom.xml
,.project,.runtime</earSourceExcludes>
                    <resourcesDir>${basedir}</resourcesDir>
                    <generateApplicationXml>
                        false
                    </generateApplicationXml>
                    <applicationXml>
                        ${basedir}/META-INF/application.xml
                    </applicationXml>
                    <modules>
                        <ejbModule>
                            <groupId>com.nokia.oss.epal</groupId>
                            <artifactId>EJBModule</artifactId>
                            <bundleFileName>
                                EJBModule.jar
                            </bundleFileName>
                        </ejbModule>
                        <jarModule>
                            <groupId>com.nokia.oss.epal</groupId>
                            <artifactId>EJBBase</artifactId>
                            <bundleFileName>EJBBase.jar </bundleFileName>
                        </jarModule>
                    </modules>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>


I used the maven-ear-plugin to  create  the  ear package and my question is
how can configurate my maven-ear-plugin to copy the extensionDir directory
in META-INF directory
without to copy all files like .modulemaps,.j2ee, pom.xml,.project,.runtime
and the target directory in EAR package.

I would appreciate, if you can help me to solve this situation.

Best reagards