Shade the vitro-api to replace some classes; use vitro-dependencies to push the list of dependencies through to the final assembly

This commit is contained in:
Graham Triggs 2015-11-21 16:49:16 +00:00
parent d5300f6809
commit 15840758ae

View file

@ -19,10 +19,46 @@
<name>VIVO API</name> <name>VIVO API</name>
<build>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.2</version>
<configuration>
<artifactSet>
<includes>
<include>org.vivoweb:vitro-api</include>
</includes>
</artifactSet>
<createDependencyReducedPom>false</createDependencyReducedPom>
<!-- promoteTransitiveDependencies>true</promoteTransitiveDependencies>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>shaded</shadedClassifierName>
<useBaseVersion>true</useBaseVersion -->
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.vivoweb</groupId> <groupId>org.vivoweb</groupId>
<artifactId>vitro-api</artifactId> <artifactId>vitro-api</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.vivoweb</groupId>
<artifactId>vitro-dependencies</artifactId>
<version>1.9.0-SNAPSHOT</version>
<type>pom</type>
</dependency> </dependency>
<dependency> <dependency>