mirror of https://github.com/apache/jclouds.git
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:
parent
3870f0d2bd
commit
1b532cb22a
26
core/pom.xml
26
core/pom.xml
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue