]> 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>
Fri, 5 Dec 2008 04:25:20 +0000 (04:25 +0000)
committerBrett Porter <brett@apache.org>
Fri, 5 Dec 2008 04:25:20 +0000 (04:25 +0000)
merged from: r721951, 721953

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@723581 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/pom.xml
archiva-modules/archiva-web/archiva-webapp/src/appserver-base/conf/archiva.xml [new file with mode: 0644]

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>
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/appserver-base/conf/archiva.xml b/archiva-modules/archiva-web/archiva-webapp/src/appserver-base/conf/archiva.xml
new file mode 100644 (file)
index 0000000..9afb833
--- /dev/null
@@ -0,0 +1 @@
+<configuration />