I want to build an EAR file which looks as follow:
http://www.nabble.com/file/p21545349/maven-ear.jpg 

My "pom.xml" looks as follow but I can't get the structure as shown above.
Has someone idea?

*****************

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.wei.chen.jboss.seam.ear</groupId>
        <artifactId>jboss-seam-ear</artifactId>
        <version>1.0.0-1-SNAPSHOT</version>
        <name>${project.version} ${artifactId}</name>
        <description>A web interface for ...</description>
        <parent>
                <groupId>com.wei.chen.jboss.seam</groupId>
                <artifactId>jboss-seam-multi</artifactId>
                <version>1.0.0-1-SNAPSHOT</version>
        </parent>
        <packaging>ear</packaging>
        <build>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-ear-plugin</artifactId>
                                <version>2.2</version>
                                <configuration>
                                        
<defaultJavaBundleDir>lib/</defaultJavaBundleDir>
                                        <finalName>${artifactId}</finalName>
                                        <modules>
                                                <javaModule>
                                                        
<groupId>org.jboss.seam</groupId>
                                                        
<artifactId>jboss-seam</artifactId>
                                                        
<version>${seam-version}</version>
                                                        <bundleDir>/</bundleDir>
                                                </javaModule>
                                                <javaModule>
                                                        
<groupId>com.wei.chen.jboss.seam.jar</groupId>
                                                        
<artifactId>jboss-seam-jar</artifactId>
                                                        <bundleDir>/</bundleDir>
                                                </javaModule>
                                        </modules>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
                                <configuration>
                                        <source>1.5</source>
                                        <target>1.5</target>
                                </configuration>
                        </plugin>
                </plugins>
        </build>
        <dependencies>
                <dependency>
                        <groupId>com.wei.chen.jboss.seam.jar</groupId>
                        <artifactId>jboss-seam-jar</artifactId>
                        <version>${project.version}</version>
                        <type>jar</type>
                        <exclusions>
                                <exclusion>
                                        
<groupId>org.richfaces.framework</groupId>
                                        <artifactId>richfaces-impl</artifactId>
                                </exclusion>
                                <exclusion>
                                        <groupId>org.richfaces.ui</groupId>
                                        <artifactId>richfaces-ui</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>
                <dependency>
                        <groupId>com.wei.chen.jboss.seam.war</groupId>
                        <artifactId>jboss-seam-war</artifactId>
                        <version>${project.version}</version>
                        <type>war</type>
                </dependency>
        </dependencies>
</project>
-- 
View this message in context: 
http://www.nabble.com/How-to-construct-the-%22pom.xml%22-ti-build-an-EAR-file--tp21545349p21545349.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to