Permalink
Browse files

Fix build of complete/standalone artifact.

Dependency on single, large JAR:
 groupId: org.clojure.contrib
 artifactId: clojure-contrib
 version: 1.3.0-SNAPSHOT
 classifier: standalone

Dependency on multiple, small JARs:
 groupId: org.clojure.contrib
 artifactId: complete
 version: 1.3.0-SNAPSHOT
  • Loading branch information...
abrenk committed Oct 1, 2010
1 parent 2e7ef0b commit d6b88cba1065c4ae9c7df2c0966147dd428c1c41
Showing with 38 additions and 18 deletions.
  1. +1 −1 modules/complete/pom.xml
  2. +0 −17 modules/complete/src/main/assemblies/bin.xml
  3. +15 −0 pom.xml
  4. +22 −0 src/main/assembly/standalone.xml
View
@@ -8,7 +8,7 @@
<relativePath>../parent</relativePath>
</parent>
<artifactId>complete</artifactId>
- <packaging>pom</packaging>
+ <packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.clojure.contrib</groupId>
@@ -1,17 +0,0 @@
-<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
- <id>bin</id>
- <formats>
- <format>jar</format>
- </formats>
- <includeBaseDirectory>false</includeBaseDirectory>
- <dependencySets>
- <dependencySet>
- <unpack>true</unpack>
- <excludes>
- <exclude>org.clojure:clojure</exclude>
- </excludes>
- </dependencySet>
- </dependencySets>
-</assembly>
View
15 pom.xml
@@ -90,11 +90,26 @@
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-5</version>
<configuration>
<descriptors>
<descriptor>src/main/assembly/dist.xml</descriptor>
</descriptors>
</configuration>
+ <executions>
+ <execution>
+ <id>standalone</id>
+ <phase>package</phase>
+ <configuration>
+ <descriptors>
+ <descriptor>src/main/assembly/standalone.xml</descriptor>
+ </descriptors>
+ </configuration>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>
@@ -0,0 +1,22 @@
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+ <id>standalone</id>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <moduleSets>
+ <moduleSet>
+ <sources>
+ <includeModuleDirectory>false</includeModuleDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>src/main/clojure</directory>
+ <outputDirectory></outputDirectory>
+ </fileSet>
+ </fileSets>
+ </sources>
+ </moduleSet>
+ </moduleSets>
+</assembly>

0 comments on commit d6b88cb

Please sign in to comment.