Skip to content

Commit

Permalink
update distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
sbryzak committed Feb 26, 2011
1 parent cd59c90 commit 0b9c958
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 54 deletions.
9 changes: 1 addition & 8 deletions dist/pom.xml
Expand Up @@ -21,14 +21,7 @@
<dependencies>
<dependency>
<groupId>org.jboss.seam.rest</groupId>
<artifactId>seam-rest-api</artifactId>
<optional>true</optional>
</dependency>

<dependency>
<groupId>org.jboss.seam.rest</groupId>
<artifactId>seam-rest-impl</artifactId>
<optional>true</optional>
<artifactId>seam-rest</artifactId>
</dependency>

<dependency>
Expand Down
32 changes: 28 additions & 4 deletions dist/src/main/assembly/assembly.xml
Expand Up @@ -12,8 +12,9 @@
<!-- Add distribution files -->
<fileSets>
<fileSet>
<directory>${basedir}/..</directory>
<directory>src/main/assembly</directory>
<outputDirectory>.</outputDirectory>
<filtered>true</filtered>
<includes>
<include>readme.txt</include>
<include>license.txt</include>
Expand All @@ -28,11 +29,15 @@
<outputDirectory>artifacts</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
<includes>
<include>org.jboss.seam.rest:seam-rest-api</include>
<include>org.jboss.seam.rest:seam-rest-impl</include>
<include>org.jboss.seam.rest:seam-rest</include>
</includes>
<excludes>
<exclude>org.jboss.seam.rest:*:*:javadoc</exclude>
<exclude>org.jboss.seam.rest:*:*:sources</exclude>
</excludes>
<outputFileNameMapping>${artifact.artifactId}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
</dependencySet>

<!-- Add necessary dependencies -->
<dependencySet>
<outputDirectory>lib</outputDirectory>
Expand All @@ -43,15 +48,17 @@
</excludes>
<outputFileNameMapping>${artifact.artifactId}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
</dependencySet>

<!-- Pull in javadoc for api -->
<dependencySet>
<outputDirectory>doc/apidocs</outputDirectory>
<outputDirectory>doc/api</outputDirectory>
<unpack>true</unpack>
<useProjectArtifact>false</useProjectArtifact>
<includes>
<include>org.jboss.seam.rest:seam-rest-api:jar:javadoc</include>
</includes>
</dependencySet>

<!-- Pull in the example projects -->
<dependencySet>
<outputDirectory>examples</outputDirectory>
Expand All @@ -77,6 +84,7 @@
<include>org.jboss.seam.rest:seam-jaxrs-exceptions-example</include>
</includes>
</dependencySet>

<!-- Pull in docbook artifacts -->
<dependencySet>
<outputDirectory>doc/reference</outputDirectory>
Expand All @@ -91,5 +99,21 @@
</excludes>
</unpackOptions>
</dependencySet>

<!-- Add the source -->
<dependencySet>
<outputDirectory>source</outputDirectory>
<unpack>true</unpack>
<useProjectArtifact>false</useProjectArtifact>
<includes>
<include>org.jboss.seam.rest:seam-rest-api:*:sources</include>
<include>org.jboss.seam.rest:seam-rest-impl:*:sources</include>
</includes>
<unpackOptions>
<excludes>
<exclude>META-INF/</exclude>
</excludes>
</unpackOptions>
</dependencySet>
</dependencySets>
</assembly>
16 changes: 12 additions & 4 deletions dist/src/main/assembly/readme.txt
Expand Up @@ -8,17 +8,25 @@ Seam REST ${project.version}
Contents of distribution
========================

doc/
artifacts/

Seam Catch libraries

doc/

API Docs and reference guide.

examples/
examples/

Seam REST Examples

lib/
lib/

Seam REST Jar files
Seam REST dependencies

source/

Source code for this module

Licensing
=========
Expand Down
35 changes: 2 additions & 33 deletions examples/jaxrs-exceptions/pom.xml
Expand Up @@ -52,24 +52,9 @@

<dependency>
<groupId>org.jboss.seam.catch</groupId>
<artifactId>seam-catch-api</artifactId>
<artifactId>seam-catch</artifactId>
</dependency>

<dependency>
<groupId>org.jboss.seam.catch</groupId>
<artifactId>seam-catch-impl</artifactId>
<!-- Because we use the combined jar -->
<exclusions>
<exclusion>
<groupId>org.jboss.seam.solder</groupId>
<artifactId>seam-solder-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss.seam.solder</groupId>
<artifactId>seam-solder-impl</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>

<build>
Expand All @@ -93,24 +78,8 @@
<!-- Exclude catch from GF for now -->
<dependency>
<groupId>org.jboss.seam.catch</groupId>
<artifactId>seam-catch-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.seam.catch</groupId>
<artifactId>seam-catch-impl</artifactId>
<artifactId>seam-catch</artifactId>
<scope>provided</scope>
<!-- Because we use the combined jar -->
<exclusions>
<exclusion>
<groupId>org.jboss.seam.solder</groupId>
<artifactId>seam-solder-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.jboss.seam.solder</groupId>
<artifactId>seam-solder-impl</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>

Expand Down
6 changes: 1 addition & 5 deletions examples/tasks/pom.xml
Expand Up @@ -141,11 +141,7 @@
<dependencies>
<dependency>
<groupId>org.jboss.seam.catch</groupId>
<artifactId>seam-catch-api</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.seam.catch</groupId>
<artifactId>seam-catch-impl</artifactId>
<artifactId>seam-catch</artifactId>
</dependency>
</dependencies>
</profile>
Expand Down

0 comments on commit 0b9c958

Please sign in to comment.