Skip to content

Instantly share code, notes, and snippets.

@rgra
Created January 14, 2021 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgra/da167457652d5d6413ae42c76580e630 to your computer and use it in GitHub Desktop.
Save rgra/da167457652d5d6413ae42c76580e630 to your computer and use it in GitHub Desktop.
3rd party dependencies target validate
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target name="3rdparty">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="${project.artifactId}.feature.group" version="${project.version}"/>
<repository location="file:/${repo-dir}/target/repository"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="javax.annotation" version="1.2.0.v201602091430"/>
<unit id="javax.annotation.source" version="1.2.0.v201602091430"/>
<repository location="http://download.eclipse.org/tools/orbit/downloads/drops/R20201130205003/repository"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.justj.openjdk.hotspot.jre.full.feature.group" version="0.0.0"/>
<repository location="http://download.eclipse.org/releases/latest"/>
</location>
</locations>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
<nl>de</nl>
</environment>
</target>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<description>3rd Party Plugins</description>
<groupId>de.mekos.rcp.p2</groupId>
<artifactId>de.mekos.rcp.p2.thirdparty</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<properties>
<tycho.version>2.1.0</tycho.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.0.1</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>setproperty</id>
<phase>validate</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>
project.properties['repo-dir']=project.basedir.absolutePath.replace('\\','/');
</source>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.reficio</groupId>
<artifactId>p2-maven-plugin</artifactId>
<version>1.5.0</version>
<executions>
<execution>
<id>3rdparty</id>
<phase>package</phase>
<goals>
<goal>site</goal>
</goals>
<configuration>
<featureDefinitions>
<feature>
<id>${project.artifactId}</id>
<version>${project.version}</version>
<label>3rd Party Plugins</label>
<providerName>${project.groupId}</providerName>
<description>${project.description}</description>
<copyright>MEKO-S GmbH 2020</copyright>
<generateSourceFeature>false</generateSourceFeature>
<artifacts>
<artifact>
<id>com.hazelcast:hazelcast:jar:3.6.3</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>com.hazelcast:hazelcast-client:jar:3.6.3</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>com.microsoft.sqlserver:mssql-jdbc:jar:8.4.1.jre8</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>com.mysema.querydsl:querydsl-sql:jar:3.6.9</id>
<excludes>
<exclude>:slf4j-api::</exclude>
</excludes>
<transitive>true</transitive>
<source>true</source>
</artifact>
<artifact>
<id>com.offbytwo.jenkins:jenkins-client:jar:0.3.8</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>com.sendinblue:sib-api-v3-sdk:jar:4.0.0</id>
<transitive>true</transitive>
</artifact>
<artifact>
<id>com.sun.mail:jakarta.mail:jar:2.0.0</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>com.thoughtworks.xstream:xstream:jar:1.4.2</id>
<transitive>true</transitive>
</artifact>
<artifact>
<id>net.sf.ehcache:ehcache-core:jar:2.4.2</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>net.sf.ehcache:ehcache-terracotta:jar:2.1.1</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>net.sourceforge.htmlunit:htmlunit:jar:2.23</id>
<transitive>true</transitive>
<excludes>
<exclude>org.apache.commons*</exclude>
<exclude>commons*</exclude>
<exclude>org.apache.httpcomponents*</exclude>
<exclude>org.eclipse.jetty*</exclude>
</excludes>
</artifact>
<artifact>
<id>org.apache.httpcomponents:httpasyncclient:jar:4.1.4</id>
<transitive>true</transitive>
<excludes>
<exclude>org.apache.commons*</exclude>
<exclude>commons*</exclude>
</excludes>
</artifact>
<artifact>
<id>org.apache.httpcomponents:httpmime:jar:4.5.6</id>
<transitive>true</transitive>
<excludes>
<exclude>org.apache.commons*</exclude>
<exclude>commons*</exclude>
</excludes>
</artifact>
<artifact>
<id>org.apache.httpcomponents:fluent-hc:jar:4.5.6</id>
<transitive>true</transitive>
<excludes>
<exclude>org.apache.commons*</exclude>
<exclude>commons*</exclude>
</excludes>
</artifact>
<artifact>
<id>org.antlr:ST4:jar:4.0.8</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>commons-logging:commons-logging:jar:1.2</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.apache.logging.log4j:log4j-api:jar:2.11.0</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.apache.logging.log4j:log4j-core:jar:2.11.0</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.apache.pdfbox:pdfbox:jar:1.8.12</id>
<transitive>true</transitive>
<excludes>
<exclude>org.apache.commons*</exclude>
<exclude>commons*</exclude>
</excludes>
</artifact>
<artifact>
<id>org.apache.pdfbox:preflight:jar:1.8.12</id>
<transitive>true</transitive>
<excludes>
<exclude>org.apache.commons*</exclude>
<exclude>commons*</exclude>
<exclude>log4j*</exclude>
<exclude>javax*</exclude>
</excludes>
</artifact>
<artifact>
<id>org.apache.poi:poi:jar:4.1.2</id>
<transitive>true</transitive>
<excludes>
<exclude>org.apache.commons*</exclude>
<exclude>commons*</exclude>
</excludes>
</artifact>
<artifact>
<id>org.apache.poi:poi-ooxml-schemas:jar:4.1.2</id>
<transitive>true</transitive>
<excludes>
<exclude>org.apache.commons*</exclude>
<exclude>commons*</exclude>
</excludes>
</artifact>
<artifact>
<id>org.apache.poi:poi-scratchpad:jar:4.1.2</id>
<transitive>true</transitive>
<excludes>
<exclude>org.apache.commons*</exclude>
<exclude>commons*</exclude>
</excludes>
</artifact>
<artifact>
<id>org.apache.poi:ooxml-schemas:jar:1.4</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.bouncycastle:bcprov-jdk15on:jar:1.65</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>com.h2database:h2:jar:1.3.174</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.hamcrest:hamcrest:jar:2.2</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.hamcrest:hamcrest-library:jar:2.2</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.hsqldb:hsqldb:jar:2.5.1</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.jsoup:jsoup:jar:1.13.1</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.mockito:mockito-all:jar:1.9.5</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.seleniumhq.selenium:selenium-java:jar:2.53.1</id>
<transitive>true</transitive>
<excludes>
<exclude>commons*</exclude>
<exclude>org.apache*</exclude>
<exclude>org.eclipse.jetty*</exclude>
<exclude>net.sourceforge*</exclude>
<exclude>:*driver*::</exclude>
</excludes>
</artifact>
<artifact>
<id>org.postgresql:postgresql:jar:9.4-1206-jdbc4</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.powermock:powermock-api-easymock:jar:2.0.9</id>
<transitive>true</transitive>
</artifact>
<artifact>
<id>org.quartz-scheduler:quartz:jar:2.3.0</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>com.zaxxer:HikariCP-java7:jar:2.4.13</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>com.mchange:c3p0:jar:0.9.5.3</id>
<transitive>true</transitive>
</artifact>
<artifact>
<id>org.slf4j:slf4j-api:jar:1.7.21</id>
<transitive>false</transitive>
</artifact>
<artifact>
<id>org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.23.0</id>
<transitive>false</transitive>
</artifact>
</artifacts>
</feature>
</featureDefinitions>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>target-platform-validation-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<id>3rdparty</id>
<phase>package</phase>
<goals>
<goal>validate-target-platform</goal>
</goals>
<configuration>
<executionEnvironment>JavaSE-1.11</executionEnvironment>
<targetFiles>${project.build.directory}\3rdparty.target</targetFiles>
<checkDependencies>true</checkDependencies>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>copy-target</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
<encoding>UTF-8</encoding>
<resources>
<resource>
<directory>${project.basedir}</directory>
<includes>
<include>*.target</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-resources</id>
<phase>deploy</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>J:\targets\p2_3rdparty\repository</outputDirectory>
<resources>
<resource>
<directory>${basedir}\target\repository</directory>
<includes>
<include>*/**</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment