]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1832] RepositoryScannerTest#testDefaultRepositoryScanner fails on Linux with...
authorOlivier Lamy <olamy@apache.org>
Wed, 23 Apr 2014 00:09:16 +0000 (10:09 +1000)
committerOlivier Lamy <olamy@apache.org>
Wed, 23 Apr 2014 00:09:16 +0000 (10:09 +1000)
pom.xml
src/main/assembly/src.xml

diff --git a/pom.xml b/pom.xml
index 79a950bffcc764a88650ce887e2f77518f46cd51..6b2c42b316c7da7ed64e445f46b2e97ea9299a81 100644 (file)
--- a/pom.xml
+++ b/pom.xml
               <artifactId>maven-assembly-plugin</artifactId>
               <inherited>false</inherited>
               <configuration>
+                <appendAssemblyId>false</appendAssemblyId>
                 <finalName>apache-archiva-${project.version}-src</finalName>
+                <descriptors>
+                  <descriptor>${basedir}/src/main/assembly/src.xml</descriptor>
+                </descriptors>
               </configuration>
+              <executions>
+                <execution>
+                  <inherited>false</inherited>
+                  <id>source-release-assembly</id>
+                  <phase>package</phase>
+                  <goals>
+                    <goal>single</goal>
+                  </goals>
+                  <configuration>
+                    <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
+                    <tarLongFileFormat>gnu</tarLongFileFormat>
+                  </configuration>
+                </execution>
+              </executions>
             </plugin>
           </plugins>
         </pluginManagement>
index ff66e9a6feaf2920819ca1e423666aef14f4edd8..8459755e03bddbf23f83d7bf918dba03b0c7d5c0 100644 (file)
     <format>zip</format>
   </formats>
   <fileSets>
+    <!-- main project directory structure -->
     <fileSet>
-      <useDefaultExcludes>false</useDefaultExcludes>
       <directory>.</directory>
       <outputDirectory>/</outputDirectory>
-      <includes>
-        <include>**/CVS/**</include>
-      </includes>
+      <useDefaultExcludes>true</useDefaultExcludes>
+      <excludes>
+        <!-- build output -->
+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/).*${project.build.directory}.*]</exclude>
+
+        <!-- NOTE: Most of the following excludes should not be required
+             if the standard release process is followed. This is because the
+             release plugin checks out project sources into a location like
+             target/checkout, then runs the build from there. The result is
+             a source-release archive that comes from a pretty clean directory
+             structure.
+
+             HOWEVER, if the release plugin is configured to run extra goals
+             or generate a project website, it's definitely possible that some
+             of these files will be present. So, it's safer to exclude them.
+        -->
+
+        <!-- IDEs -->
+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?maven-eclipse\.xml]</exclude>
+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.project]</exclude>
+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.classpath]</exclude>
+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.iws]</exclude>
+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.idea(/.*)?]</exclude>
+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?out(/.*)?]</exclude>
+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.ipr]</exclude>
+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.iml]</exclude>
+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.settings(/.*)?]</exclude>
+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.externalToolBuilders(/.*)?]</exclude>
+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.deployables(/.*)?]</exclude>
+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.wtpmodules(/.*)?]</exclude>
+
+        <!-- misc -->
+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?cobertura\.ser]</exclude>
+
+        <!-- release-plugin temp files -->
+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?pom\.xml\.releaseBackup]</exclude>
+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?release\.properties]</exclude>
+      </excludes>
     </fileSet>
     <fileSet>
+      <useDefaultExcludes>false</useDefaultExcludes>
       <directory>.</directory>
       <outputDirectory>/</outputDirectory>
-      <excludes>
-        <exclude>**/target/**</exclude>
-        <exclude>**/archiva-webapp/src/main/webapp/archiva-applet.jar</exclude>
-        <exclude>**/archiva-webapp/src/main/webapp/META-INF/**</exclude>
-        <exclude>**/archiva-webapp/src/main/webapp/images/redback/**</exclude>
-        <exclude>**/archiva-webapp/src/main/webapp/template/redback/**</exclude>
-        <exclude>**/archiva-webapp/src/main/webapp/WEB-INF/classes/**</exclude>
-        <exclude>**/archiva-webapp/src/main/webapp/WEB-INF/lib/**</exclude>
-        <exclude>**/archiva-webapp/src/main/webapp/WEB-INF/database/**</exclude>
-        <exclude>**/archiva-webapp/src/main/webapp/WEB-INF/logs/**</exclude>
-        <exclude>**/archiva-webapp/src/main/webapp/redback/**</exclude>
-        <exclude>**/archiva-webapp/src/main/webapp/css/redback/**</exclude>
-        <exclude>**/archiva-webapp/src/main/webapp/WEB-INF/jsp/redback/**</exclude>
-        <exclude>**/archiva-webapp/src/main/webapp/WEB-INF/template/redback/**</exclude>
-        <exclude>**/archiva-webapp/src/main/webapp/WEB-INF/logs/**</exclude>
-        <exclude>**/archiva-webapp/src/main/webapp/WEB-INF/temp/**</exclude>
-      </excludes>
+      <includes>
+        <include>**/CVS/**</include>
+      </includes>
     </fileSet>
     <fileSet>
       <directory>target/maven-shared-archive-resources/META-INF/</directory>