Fixed pom.xml by declaring dependencies in the right way.

Dependency on jetty-server must be kept with scope provided (the classes that depend on jetty-server can only be run on Jetty).
This commit is contained in:
Simone Bordet 2011-09-05 11:18:47 +02:00
parent 9ed8a75b9b
commit a8ce6e8878
1 changed files with 99 additions and 78 deletions

View File

@ -1,79 +1,100 @@
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <?xml version="1.0" encoding="UTF-8"?>
<parent> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<artifactId>jetty-project</artifactId> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<groupId>org.eclipse.jetty</groupId> <parent>
<version>7.5.1-SNAPSHOT</version> <artifactId>jetty-project</artifactId>
</parent> <groupId>org.eclipse.jetty</groupId>
<modelVersion>4.0.0</modelVersion> <version>7.5.1-SNAPSHOT</version>
<groupId>org.eclipse.jetty</groupId> </parent>
<artifactId>jetty-websocket</artifactId>
<name>Jetty :: Websocket</name> <modelVersion>4.0.0</modelVersion>
<properties> <artifactId>jetty-websocket</artifactId>
<bundle-symbolic-name>${project.groupId}.websocket</bundle-symbolic-name> <name>Jetty :: Websocket</name>
</properties>
<dependencies> <properties>
<dependency> <bundle-symbolic-name>${project.groupId}.websocket</bundle-symbolic-name>
<groupId>org.eclipse.jetty</groupId> </properties>
<artifactId>jetty-server</artifactId>
<version>${project.version}</version> <dependencies>
<scope>provided</scope> <dependency>
</dependency> <groupId>javax.servlet</groupId>
<dependency> <artifactId>servlet-api</artifactId>
<groupId>javax.servlet</groupId> <scope>provided</scope>
<artifactId>servlet-api</artifactId> </dependency>
<type>jar</type> <dependency>
<scope>provided</scope> <groupId>org.eclipse.jetty</groupId>
</dependency> <artifactId>jetty-server</artifactId>
<dependency> <version>${project.version}</version>
<groupId>org.eclipse.jetty.toolchain</groupId> <scope>provided</scope>
<artifactId>jetty-test-helper</artifactId> </dependency>
<scope>test</scope> <dependency>
</dependency> <groupId>org.eclipse.jetty</groupId>
</dependencies> <artifactId>jetty-util</artifactId>
<build> <version>${project.version}</version>
<plugins> </dependency>
<plugin> <dependency>
<groupId>org.apache.felix</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>maven-bundle-plugin</artifactId> <artifactId>jetty-io</artifactId>
<extensions>true</extensions> <version>${project.version}</version>
<executions> </dependency>
<execution> <dependency>
<goals> <groupId>org.eclipse.jetty</groupId>
<goal>manifest</goal> <artifactId>jetty-http</artifactId>
</goals> <version>${project.version}</version>
</execution> </dependency>
</executions>
</plugin> <dependency>
<plugin> <groupId>junit</groupId>
<groupId>org.apache.maven.plugins</groupId> <artifactId>junit</artifactId>
<artifactId>maven-jar-plugin</artifactId> <scope>test</scope>
<executions> </dependency>
<execution> </dependencies>
<id>artifact-jar</id>
<goals> <build>
<goal>jar</goal> <plugins>
</goals> <plugin>
</execution> <groupId>org.apache.felix</groupId>
<execution> <artifactId>maven-bundle-plugin</artifactId>
<id>test-jar</id> <extensions>true</extensions>
<goals> <executions>
<goal>test-jar</goal> <execution>
</goals> <goals>
</execution> <goal>manifest</goal>
</executions> </goals>
<configuration> </execution>
<archive> </executions>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> </plugin>
</archive> <plugin>
</configuration> <groupId>org.apache.maven.plugins</groupId>
</plugin> <artifactId>maven-jar-plugin</artifactId>
<plugin> <executions>
<groupId>org.codehaus.mojo</groupId> <execution>
<artifactId>findbugs-maven-plugin</artifactId> <id>artifact-jar</id>
<configuration> <goals>
<onlyAnalyze>org.eclipse.jetty.websocket.*</onlyAnalyze> <goal>jar</goal>
</configuration> </goals>
</plugin> </execution>
</plugins> <execution>
</build> <id>test-jar</id>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<configuration>
<onlyAnalyze>org.eclipse.jetty.websocket.*</onlyAnalyze>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>