Skip to content

Instantly share code, notes, and snippets.

@ajayk
Created September 7, 2017 06:12
Show Gist options
  • Save ajayk/69a064f3870b1b030599cd5838d37797 to your computer and use it in GitHub Desktop.
Save ajayk/69a064f3870b1b030599cd5838d37797 to your computer and use it in GitHub Desktop.
pom.xml
<?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">
<modelVersion>4.0.0</modelVersion>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.kohsuke.stapler/json-lib -->
<dependency>
<groupId>org.kohsuke.stapler</groupId>
<artifactId>json-lib</artifactId>
<version>2.4-jenkins-3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/xom/xom -->
<dependency>
<groupId>xom</groupId>
<artifactId>xom</artifactId>
<version>1.2.5</version>
</dependency>
</dependencies>
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>1.583</version>
<relativePath />
</parent>
<groupId>foo</groupId>
<artifactId>foo_test</artifactId>
<version>1.2.0</version>
<packaging>hpi</packaging>
<name>Foo Task</name>
<description>Try to make XML Serializer</description>
<url>https://wiki.jenkins-ci.org/display/JENKINS/TODO+Plugin</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://opensource.org/licenses/MIT</url>
</license>
</licenses>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.3.2</version>
</plugin>
<plugin>
<groupId>org.jenkins-ci.tools</groupId>
<artifactId>maven-hpi-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<pluginFirstClassLoader>true</pluginFirstClassLoader>
<compatibleSinceVersion>2.9</compatibleSinceVersion>
<archive>
<manifestEntries>
<Mask-Classes>com.google.common</Mask-Classes>
</manifestEntries>
</archive>
<maskClasses>com.google.common.</maskClasses>
</configuration>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<id>shade</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<artifactSet>
<includes>
<include>org.apache.jclouds*:*</include>
<include>com.google.guava:*</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>com.google.common</pattern>
<shadedPattern>shaded.com.google.common</shadedPattern>
</relocation>
</relocations>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
</transformers>
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
<filters>
<!-- Temporarily replace classes, fixed in https://github.com/jclouds/jclouds/pull/1076
TODO: To be reverted when next jclouds version > 2.0.1 will be released. -->
<filter>
<artifact>org.apache.jclouds.provider:google-compute-engine</artifact>
<excludes>
<exclude>org/jclouds/googlecomputeengine/compute/GoogleComputeEngineServiceAdapter*</exclude>
<exclude>org/jclouds/googlecomputeengine/compute/config/GoogleComputeEngineServiceContextModule*</exclude>
<exclude>org/jclouds/googlecomputeengine/compute/functions/InstanceToNodeMetadata*</exclude>
<exclude>org/jclouds/googlecomputeengine/compute/loaders/DiskURIToImage*</exclude>
</excludes>
</filter>
</filters>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<repositories>
<repository>
<id>repo.jenkins-ci.org</id>
<url>http://repo.jenkins-ci.org/public/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>repo.jenkins-ci.org</id>
<url>http://repo.jenkins-ci.org/public/</url>
</pluginRepository>
</pluginRepositories>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment