]> source.dussan.org Git - archiva.git/commitdiff
run Jetty from outside the target so that you have to use -PcleanJetty to clean up...
authorBrett Porter <brett@apache.org>
Mon, 1 Dec 2008 02:52:56 +0000 (02:52 +0000)
committerBrett Porter <brett@apache.org>
Mon, 1 Dec 2008 02:52:56 +0000 (02:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches@721951 13f79535-47bb-0310-9956-ffa450edef68

MRM-1025/archiva-modules/archiva-web/archiva-webapp/pom.xml

index 2903636052e80d74c7e9aa416906f431803a5c62..f353e46b0908c11619cd5286f2ca31aa41aeddf4 100644 (file)
           <systemProperties>
             <systemProperty>
               <name>plexus.home</name>
-              <value>${project.build.directory}/appserver-base</value>
+              <value>${basedir}/appserver-base</value>
             </systemProperty>
             <systemProperty>
               <name>appserver.base</name>
-              <value>${project.build.directory}/appserver-base</value>
+              <value>${basedir}/appserver-base</value>
             </systemProperty>
             <systemProperty>
               <name>appserver.home</name>
             </systemProperty>
             <systemProperty>
               <name>derby.system.home</name>
-              <value>${project.build.directory}/appserver-base/logs</value>
+              <value>${basedir}/appserver-base/logs</value>
             </systemProperty>
           </systemProperties>
         </configuration>
             </goals>
             <configuration>
               <tasks>
-                <copy todir="${project.build.directory}/appserver-base">
+                <copy todir="${basedir}/appserver-base">
                   <fileset dir="src/appserver-base" />
                 </copy>
               </tasks>
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>cleanJetty</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-clean-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>cleanJetty</id>
+                <phase>clean</phase>
+                <configuration>
+                  <filesets>
+                    <fileset>
+                      <directory>${basedir}/appserver-base</directory>
+                      <includes>
+                        <include>**/**</include>
+                      </includes>
+                    </fileset>
+                  </filesets>
+                </configuration>
+                <goals>
+                  <goal>clean</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 </project>