Updated the core project POM to exclude ProviderMetadata plugins from the

tests-jar to avoid corrupting the classpath as these classes are only
necessary for testing the core provider loading mechanisms.

* core/pom.xml: Added a maven-jar-plugin configuration that will exclude the
   test providers and the ServiceLoader service file that allows locating them.
This commit is contained in:
Jeremy Whitlock 2011-05-12 00:32:25 -06:00
parent 3870f0d2bd
commit 1b532cb22a
1 changed files with 26 additions and 0 deletions

View File

@ -119,6 +119,32 @@
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
<configuration>
<!--
These files are excluded to avoid corrupting the classpath with ProviderMetadata implementation
classes that should only be availble when running the core tests.
-->
<excludes>
<exclude>META-INF/services/</exclude>
<exclude>org/jclouds/providers/*Test*.class</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
<profiles> <profiles>
<profile> <profile>
<id>distribution</id> <id>distribution</id>