Adding -tests classifier artifacts to deploy/release to aide in quickstart documentation

This commit is contained in:
Joakim Erdfelt 2013-01-25 12:19:17 -07:00
parent 3975ae74cb
commit 7adc77a5d5
2 changed files with 50 additions and 21 deletions

View File

@ -44,27 +44,39 @@
<artifactId>maven-enforcer-plugin</artifactId> <artifactId>maven-enforcer-plugin</artifactId>
<version>1.1</version> <version>1.1</version>
<executions> <executions>
<execution> <execution>
<id>ban-java-servlet-api</id> <id>ban-java-servlet-api</id>
<goals> <goals>
<goal>enforce</goal> <goal>enforce</goal>
</goals> </goals>
<configuration> <configuration>
<rules> <rules>
<bannedDependencies> <bannedDependencies>
<includes> <includes>
<include>javax.servlet</include> <include>javax.servlet</include>
<include>servletapi</include> <include>servletapi</include>
<include>org.eclipse.jetty.orbit:javax.servlet</include> <include>org.eclipse.jetty.orbit:javax.servlet</include>
<include>org.mortbay.jetty:servlet-api</include> <include>org.mortbay.jetty:servlet-api</include>
<include>jetty:servlet-api</include> <include>jetty:servlet-api</include>
</includes> </includes>
<searchTransitive>true</searchTransitive> <searchTransitive>true</searchTransitive>
<message>The servlet-api dependency is banned in websocket-client as it causes problems in apps that use client only.</message> <message>The servlet-api dependency is banned in websocket-client as it causes problems in apps that use client only.</message>
</bannedDependencies> </bannedDependencies>
</rules> </rules>
</configuration> </configuration>
</execution> </execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>tests-jar</id>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions> </executions>
</plugin> </plugin>
</plugins> </plugins>

View File

@ -14,6 +14,23 @@
<bundle-symbolic-name>${project.groupId}.server</bundle-symbolic-name> <bundle-symbolic-name>${project.groupId}.server</bundle-symbolic-name>
</properties> </properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>tests-jar</id>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.eclipse.jetty.websocket</groupId> <groupId>org.eclipse.jetty.websocket</groupId>