I am trying to create an EAR for my project using Maven2. Its creating EAR
properly but i guess it initialy creates an EAR folder in my ${basedir} and
then EARs it from there. How can i get this folder deleted after the EAR is
created? I am facing the same issue while creating a WAR project as well,
but creating my JAR projects does not have this issue. My EAR pom xml looks
like this. Hope I am clear here.

<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>DB_EA</groupId> 
        <artifactId>DB_EA</artifactId> 
        <packaging>ear</packaging> 
        <version>1.0</version> 
        <dependencies> 
            <dependency> 
              <groupId>A</groupId> 
              <artifactId>A</artifactId> 
              <version>1.0</version> 
              <type>jar</type> 
            </dependency> 
        </dependencies> 
        <build> 
            <directory>${basedir}</directory> 
            <finalName>${project.artifactId}</finalName> 
            <plugins> 
              <plugin> 
                <groupId>org.apache.maven.plugins</groupId> 
                <artifactId>maven-ear-plugin</artifactId> 
                <configuration> 
                <earSourceDirectory>${basedir}/src</earSourceDirectory> 
                  <archive> 
                    <manifest> 
                      <addClasspath>true</addClasspath> 
                    </manifest> 
                  </archive> 
                  <generateApplicationXml>false</generateApplicationXml> 
                </configuration> 
              </plugin> 
            </plugins> 
        </build> 
</project> 

--
View this message in context: 
http://www.nabble.com/Avoid-Build-folder-when-creating-EAR-WAR-t1485825.html#a4024144
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to