Skip to content

Commit

Permalink
Package JGraphT for non-Maven distribution.
Browse files Browse the repository at this point in the history
The -dist module creates two archives (a .zip and a .tar.gz) which contain the JGraphT JARs, plus their dependencies.
  • Loading branch information
Owen Jacobson authored and poison committed Mar 7, 2012
1 parent 7944e88 commit 6783011
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
47 changes: 47 additions & 0 deletions jgrapht-dist/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.sf.jgrapht</groupId>
<artifactId>jgrapht</artifactId>
<version>0.8.3-SNAPSHOT</version>
</parent>
<artifactId>jgrapht-dist</artifactId>
<name>JGraphT - Distributable Archives</name>
<packaging>pom</packaging>

<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>jgrapht-core</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>jgrapht-ext</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>jgrapht-demo</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<attach>true</attach>
<descriptorSourceDirectory>${basedir}/src/assembly</descriptorSourceDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
16 changes: 16 additions & 0 deletions jgrapht-dist/src/assembly/assembly.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<formats>
<format>zip</format>
<format>tar.gz</format>
</formats>

<dependencySets>
<dependencySet>
<outputDirectory>/lib</outputDirectory>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</assembly>
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@
<artifactId>jgrapht-ext</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>jgrapht-demo</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>xmlunit</groupId>
<artifactId>xmlunit</artifactId>
Expand Down Expand Up @@ -163,6 +168,7 @@
<module>jgrapht-core</module>
<module>jgrapht-ext</module>
<module>jgrapht-demo</module>
<module>jgrapht-dist</module>
</modules>

<profiles>
Expand Down

0 comments on commit 6783011

Please sign in to comment.