add inputs from scout sdk build config

Change-Id: Id512c647e813d508294c10c44aa0ae7831cb6977
diff --git a/maven_plugin_config-master/pom.xml b/maven_plugin_config-master/pom.xml
index 20c4b45..e21091c 100644
--- a/maven_plugin_config-master/pom.xml
+++ b/maven_plugin_config-master/pom.xml
@@ -22,13 +22,24 @@
   <artifactId>maven_plugin_config-master</artifactId>
   <packaging>pom</packaging>
 
+  <prerequisites>
+    <!-- Note that "prerequisites" not inherited, but used by versions-maven-plugin -->
+    <maven>${maven.min.version}</maven>
+  </prerequisites>
+
   <properties>
+    <jdk.min.version>1.7</jdk.min.version>
     <jdk.source.version>1.7</jdk.source.version>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
     <maven.build.timestamp.format>yyyyMMdd-HHmmss</maven.build.timestamp.format>
+    <maven.min.version>3.2.1</maven.min.version>
+    <maven.api.version>3.2.1</maven.api.version>
 
+    <skipUnitTests>false</skipUnitTests>
+    <skipWebTests>false</skipWebTests>
     <deployAtEnd>true</deployAtEnd>
+    <skipSanityChecks>false</skipSanityChecks>
   </properties>
 
   <build>
@@ -67,6 +78,7 @@
           <artifactId>maven-surefire-plugin</artifactId>
           <configuration>
             <testFailureIgnore>true</testFailureIgnore>
+            <skipTests>${skipUnitTests}</skipTests>
           </configuration>
         </plugin>
 
@@ -88,6 +100,115 @@
           </configuration>
         </plugin>
 
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>animal-sniffer-maven-plugin</artifactId>
+          <configuration>
+            <signature>
+              <groupId>org.codehaus.mojo.signature</groupId>
+              <artifactId>java17</artifactId>
+              <version>1.0</version>
+            </signature>
+            <!-- for java18 signature check. @see https://github.com/ianbrandt/animal-sniffer-signatures -->
+            <!-- <signature> -->
+            <!-- <groupId>org.kaazing.mojo.signature</groupId> -->
+            <!-- <artifactId>java18</artifactId> -->
+            <!-- <version>1.0</version> -->
+            <!-- </signature> -->
+            <skip>${skipSanityChecks}</skip>
+          </configuration>
+        </plugin>
+
+        <plugin>
+          <groupId>com.mycila</groupId>
+          <artifactId>license-maven-plugin</artifactId>
+          <configuration>
+            <header>${project.basedir}/license_files/copyright.txt</header>
+            <headerDefinitions>
+              <headerDefinition>${project.basedir}/license_files/scoutLicenceHeaderJava.xml</headerDefinition>
+            </headerDefinitions>
+            <failIfMissing>true</failIfMissing>
+            <strictCheck>true</strictCheck>
+            <aggregate>true</aggregate>
+            <includes>
+              <include>**/*scout*/src/main/java/**</include>
+              <include>**/*scout*/src/main/js/**</include>
+              <include>**/*scout*/src/main/less/**</include>
+              <include>**/*scout*/src/test/java/**</include>
+              <include>**/*scout*/src/test/js/**</include>
+            </includes>
+            <excludes>
+              <exclude>tests/**</exclude>
+            </excludes>
+            <mapping>
+              <java>SCOUT_JAVADOC_STYLE</java>
+              <js>SLASHSTAR_STYLE</js>
+              <less>JAVADOC_STYLE</less>
+              <css>JAVADOC_STYLE</css>
+            </mapping>
+            <skip>${skipSanityChecks}</skip>
+          </configuration>
+          <dependencies>
+            <dependency>
+              <groupId>com.mycila</groupId>
+              <artifactId>license-maven-plugin-git</artifactId>
+              <!-- make sure you use the same version as license-maven-plugin -->
+              <version>${license-maven-plugin.version}</version>
+            </dependency>
+          </dependencies>
+        </plugin>
+
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-enforcer-plugin</artifactId>
+          <configuration>
+            <rules>
+              <requirePluginVersions>
+                <message>Build reproducibility : always define plugin versions</message>
+                <banLatest>true</banLatest>
+                <banRelease>true</banRelease>
+                <phases>clean,deploy</phases>
+              </requirePluginVersions>
+              <requireReleaseDeps>
+                <message>No SNAPSHOT versions allowed for dependencies</message>
+                <onlyWhenRelease>true</onlyWhenRelease>
+              </requireReleaseDeps>
+              <requireJavaVersion>
+                <message>To build this project JDK ${jdk.min.version} (or upper) is required. Please install it.
+                </message>
+                <version>${jdk.min.version}</version>
+              </requireJavaVersion>
+              <requireMavenVersion>
+                <message>To build this project Maven ${maven.min.version} (or upper) is required. Please install it.
+                </message>
+                <version>${maven.min.version}</version>
+              </requireMavenVersion>
+              <bannedDependencies>
+                <message>commons-beanutils:commons-beanutils should be used instead</message>
+                <excludes>
+                  <exclude>commons-beanutils:commons-beanutils-core</exclude>
+                </excludes>
+                <searchTransitive>true</searchTransitive>
+              </bannedDependencies>
+              <banDuplicatePomDependencyVersions/>
+              <!-- can't be used until html ui in eclipse repo and of the tools-build -->
+<!--               <reactorModuleConvergence/> -->
+              <requireSameVersions>
+                <dependencies>
+                  <dependency>org.eclipse.scout</dependency>
+                  <dependency>org.eclipse.scout.rt</dependency>
+                  <dependency>org.eclipse.scout.sdk</dependency>
+                </dependencies>
+              </requireSameVersions>
+              <requireSameVersions>
+                <dependencies>
+                  <dependency>org.eclipse.jetty</dependency>
+                </dependencies>
+              </requireSameVersions>
+            </rules>
+          </configuration>
+        </plugin>
+
         <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -->
         <plugin>
           <groupId>org.eclipse.m2e</groupId>
@@ -128,6 +249,35 @@
         </plugin>
       </plugins>
     </pluginManagement>
+
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>animal-sniffer-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>enforce-java-api-compatibility</id>
+            <phase>verify</phase>
+            <goals>
+              <goal>check</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>enforce-rules</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
   </build>
 
   <reporting>
@@ -136,6 +286,7 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-project-info-reports-plugin</artifactId>
       </plugin>
+
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>versions-maven-plugin</artifactId>
@@ -154,6 +305,56 @@
 
   <profiles>
     <profile>
+      <!-- disable all tests -->
+      <id>skipTests</id>
+      <activation>
+        <property>
+          <name>skipTests</name>
+        </property>
+      </activation>
+      <properties>
+        <skipUnitTests>true</skipUnitTests>
+        <skipWebTests>true</skipWebTests>
+      </properties>
+    </profile>
+
+    <profile>
+      <id>dev</id>
+      <properties>
+        <skipSanityChecks>true</skipSanityChecks>
+        <enforcer.skip>true</enforcer.skip>
+      </properties>
+    </profile>
+
+    <profile>
+      <id>license_check</id>
+      <activation>
+        <property>
+          <name>license_check</name>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+          <!-- check copyright/license headers -->
+          <plugin>
+            <groupId>com.mycila</groupId>
+            <artifactId>license-maven-plugin</artifactId>
+            <inherited>false</inherited>
+            <executions>
+              <execution>
+                <id>enforce-license-headers</id>
+                <phase>validate</phase>
+                <goals>
+                  <goal>check</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+
+    <profile>
       <id>scout-release</id>
       <activation>
         <property>
diff --git a/maven_plugin_version-master/pom.xml b/maven_plugin_version-master/pom.xml
index 2aacf01..08cbb0e 100644
--- a/maven_plugin_version-master/pom.xml
+++ b/maven_plugin_version-master/pom.xml
@@ -31,6 +31,12 @@
     <!-- Plugin version of 'jaxws-maven-plugin' to generate webservice stub. -->
     <jaxws.plugin.version>2.3.1-b20150201.1248</jaxws.plugin.version>
     <phantomjs.version>1.9.7</phantomjs.version>
+
+    <!-- version of Tycho used by org.eclipse.scout.sdk.core.releng build and profiles eclipse-sign and eclipse-pack -->
+    <tycho.version>0.22.0</tycho.version>
+    <tycho-extras.version>${tycho.version}</tycho-extras.version>
+
+    <license-maven-plugin.version>2.11</license-maven-plugin.version>
   </properties>
 
   <build>
@@ -184,6 +190,90 @@
           <artifactId>tomcat7-maven-plugin</artifactId>
           <version>2.1</version>
         </plugin>
+
+        <plugin>
+          <groupId>org.basepom.maven</groupId>
+          <artifactId>duplicate-finder-maven-plugin</artifactId>
+          <version>1.2.0</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>animal-sniffer-maven-plugin</artifactId>
+          <version>1.14</version>
+        </plugin>
+
+        <plugin>
+          <groupId>com.mycila</groupId>
+          <artifactId>license-maven-plugin</artifactId>
+          <version>${license-maven-plugin.version}</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-enforcer-plugin</artifactId>
+          <version>1.4.1</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.apache.felix</groupId>
+          <artifactId>maven-bundle-plugin</artifactId>
+          <version>3.0.0</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.eclipse.tycho</groupId>
+          <artifactId>tycho-maven-plugin</artifactId>
+          <version>${tycho.version}</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.eclipse.tycho</groupId>
+          <artifactId>target-platform-configuration</artifactId>
+          <version>${tycho.version}</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.eclipse.tycho</groupId>
+          <artifactId>tycho-packaging-plugin</artifactId>
+          <version>${tycho.version}</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.eclipse.tycho</groupId>
+          <artifactId>tycho-p2-director-plugin</artifactId>
+          <version>${tycho.version}</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.eclipse.tycho</groupId>
+          <artifactId>tycho-p2-repository-plugin</artifactId>
+          <version>${tycho.version}</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.eclipse.tycho.extras</groupId>
+          <artifactId>tycho-source-feature-plugin</artifactId>
+          <version>${tycho-extras.version}</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.eclipse.tycho.extras</groupId>
+          <artifactId>tycho-custom-bundle-plugin</artifactId>
+          <version>${tycho-extras.version}</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.eclipse.tycho</groupId>
+          <artifactId>tycho-p2-plugin</artifactId>
+          <version>${tycho.version}</version>
+        </plugin>
+
+        <plugin>
+          <groupId>org.eclipse.tycho</groupId>
+          <artifactId>tycho-p2-publisher-plugin</artifactId>
+          <version>${tycho.version}</version>
+        </plugin>
       </plugins>
     </pluginManagement>
   </build>
diff --git a/maven_sdk_p2_plugin_config-master/pom.xml b/maven_sdk_p2_plugin_config-master/pom.xml
deleted file mode 100644
index 9be85c6..0000000
--- a/maven_sdk_p2_plugin_config-master/pom.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Copyright (c) 2015 BSI Business Systems Integration AG.
-  All rights reserved. This program and the accompanying materials
-  are made available under the terms of the Eclipse Public License v1.0
-  which accompanies this distribution, and is available at
-  http://www.eclipse.org/legal/epl-v10.html
-
-  Contributors:
-  BSI Business Systems Integration AG - initial API and implementation
--->
-<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>
-
-  <parent>
-    <groupId>org.eclipse.scout</groupId>
-    <artifactId>maven_sdk_plugin_config-master</artifactId>
-    <version>1.4-SNAPSHOT</version>
-    <relativePath>../maven_sdk_plugin_config-master</relativePath>
-  </parent>
-
-  <artifactId>maven_sdk_p2_plugin_config-master</artifactId>
-  <packaging>pom</packaging>
-
-  <properties />
-
-  <build>
-    <pluginManagement>
-      <plugins />
-    </pluginManagement>
-  </build>
-
-  <reporting>
-    <plugins />
-  </reporting>
-
-  <profiles>
-    <profile>
-      <!-- Only create the jandex.idx when a scout.xml is found -->
-      <id>jandex-idx</id>
-      <activation>
-        <file>
-          <exists>${basedir}/src/main/resources/META-INF/scout.xml</exists>
-        </file>
-      </activation>
-      <build>
-        <plugins>
-          <!-- Create META-INF/jandex.idx -->
-          <plugin>
-            <groupId>org.jboss.jandex</groupId>
-            <artifactId>jandex-maven-plugin</artifactId>
-            <executions>
-              <execution>
-                <id>make-index</id>
-                <goals>
-                  <goal>jandex</goal>
-                </goals>
-                <!-- phase is 'process-classes by default' -->
-                <configuration>
-                  <!-- Nothing needed here for simple cases -->
-                </configuration>
-              </execution>
-            </executions>
-          </plugin>
-        </plugins>
-      </build>
-    </profile>
-  </profiles>
-</project>
diff --git a/maven_sdk_plugin_config-master/pom.xml b/maven_sdk_plugin_config-master/pom.xml
index d508baf..870ea91 100644
--- a/maven_sdk_plugin_config-master/pom.xml
+++ b/maven_sdk_plugin_config-master/pom.xml
@@ -22,17 +22,351 @@
   <artifactId>maven_sdk_plugin_config-master</artifactId>
   <packaging>pom</packaging>
 
-  <properties />
+  <properties>
+    <build.timestamp>${maven.build.timestamp}</build.timestamp>
+    <maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format>
+  </properties>
 
   <build>
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+      </resource>
+      <resource>
+        <directory>.</directory>
+        <includes>
+          <include>plugin.xml</include>
+          <include>about.html</include>
+          <include>epl-v10.html</include>
+          <include>schema/**</include>
+          <include>icons/**</include>
+        </includes>
+      </resource>
+    </resources>
+
     <pluginManagement>
-      <plugins />
+      <plugins>
+        <plugin>
+          <groupId>org.apache.felix</groupId>
+          <artifactId>maven-bundle-plugin</artifactId>
+          <extensions>true</extensions>
+          <configuration>
+            <manifestLocation>META-INF</manifestLocation>
+            <instructions>
+              <Bundle-SymbolicName>${bundle.symbolicName};singleton:=true</Bundle-SymbolicName>
+              <Bundle-Name>${project.name}</Bundle-Name>
+              <Bundle-Version>${project.version}</Bundle-Version>
+              <Bundle-RequiredExecutionEnvironment>JavaSE-1.7</Bundle-RequiredExecutionEnvironment>
+              <Export-Package>${bundle.namespace}.*;version="${bundle.version}"</Export-Package>
+              <Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy>
+              <!-- Do not calculate the uses: directive. -->
+              <_nouses>true</_nouses>
+              <!-- Include sources -->
+              <_sources>false</_sources>
+              <!-- Replacement for the .SNAPSHOT qualifier used in maven. -->
+              <_snapshot>${build.timestamp}</_snapshot>
+            </instructions>
+            <obrRepository>NONE</obrRepository>
+          </configuration>
+        </plugin>
+
+        <!-- source maven plugin creates the source bundle and adds manifest -->
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-source-plugin</artifactId>
+          <configuration>
+            <excludeResources>true</excludeResources>
+            <excludes>
+              <exclude>**/jars/**</exclude>
+            </excludes>
+            <archive>
+              <manifestEntries>
+                <Bundle-ManifestVersion>2</Bundle-ManifestVersion>
+                <Bundle-Name>${project.name}</Bundle-Name>
+                <Bundle-SymbolicName>${bundle.symbolicName}.source</Bundle-SymbolicName>
+                <Bundle-Vendor>${organization.name}</Bundle-Vendor>
+                <Bundle-Version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.${build.timestamp}</Bundle-Version>
+                <Eclipse-SourceBundle>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.${build.timestamp}";roots:="."</Eclipse-SourceBundle>
+              </manifestEntries>
+            </archive>
+          </configuration>
+          <executions>
+            <execution>
+              <id>attach-sources</id>
+              <goals>
+                <goal>jar-no-fork</goal>
+              </goals>
+              <phase>verify</phase>
+            </execution>
+          </executions>
+        </plugin>
+      </plugins>
     </pluginManagement>
+
+    <plugins>
+      <!-- Build helper maven plugin sets the parsedVersion.osgiVersion property -->
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>set-osgi-version</id>
+            <goals>
+              <goal>parse-version</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+
+      <!-- source maven plugin creates the source bundle and adds manifest -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-source-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>attach-sources</id>
+            <goals>
+              <goal>jar-no-fork</goal>
+            </goals>
+            <phase>verify</phase>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
   </build>
 
   <reporting>
     <plugins />
   </reporting>
 
-  <profiles />
+  <profiles>
+    <profile>
+      <id>include_manifest_in_jar</id>
+      <activation>
+        <file>
+          <exists>${basedir}/META-INF/MANIFEST.MF</exists>
+        </file>
+      </activation>
+
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-jar-plugin</artifactId>
+            <configuration>
+              <archive>
+                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+              </archive>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <profile>
+      <id>p2_build</id>
+      <activation>
+        <file>
+          <exists>${basedir}/.p2_build</exists>
+        </file>
+      </activation>
+
+      <build>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <groupId>org.eclipse.tycho</groupId>
+              <artifactId>target-platform-configuration</artifactId>
+              <configuration>
+                <filters>
+                  <!-- work around Equinox bug 348045 -->
+                  <filter>
+                    <type>p2-installable-unit</type>
+                    <id>org.eclipse.equinox.servletbridge.extensionbundle</id>
+                    <removeAll></removeAll>
+                  </filter>
+                </filters>
+                <resolver>p2</resolver>
+                <pomDependencies>consider</pomDependencies>
+                <environments>
+                  <environment>
+                    <os>linux</os>
+                    <ws>gtk</ws>
+                    <arch>x86_64</arch>
+                  </environment>
+                  <environment>
+                    <os>linux</os>
+                    <ws>gtk</ws>
+                    <arch>ppc64</arch>
+                  </environment>
+                  <environment>
+                    <os>win32</os>
+                    <ws>win32</ws>
+                    <arch>x86_64</arch>
+                  </environment>
+                  <environment>
+                    <os>macosx</os>
+                    <ws>cocoa</ws>
+                    <arch>x86_64</arch>
+                  </environment>
+                </environments>
+              </configuration>
+            </plugin>
+
+            <plugin>
+              <groupId>org.eclipse.tycho</groupId>
+              <artifactId>tycho-packaging-plugin</artifactId>
+              <configuration>
+                <strictBinIncludes>false</strictBinIncludes>
+                <format>yyyyMMdd-HHmm</format>
+                <timestampProvider>default</timestampProvider>
+              </configuration>
+            </plugin>
+
+            <plugin>
+              <groupId>org.eclipse.tycho.extras</groupId>
+              <artifactId>tycho-source-feature-plugin</artifactId>
+              <configuration>
+                <archive>
+                  <addMavenDescriptor>false</addMavenDescriptor>
+                </archive>
+              </configuration>
+            </plugin>
+
+            <plugin>
+              <groupId>org.eclipse.tycho</groupId>
+              <artifactId>tycho-p2-plugin</artifactId>
+              <configuration>
+                <baselineMode>warn</baselineMode>
+                <baselineReplace>none</baselineReplace>
+                <baselineRepositories>
+                  <repository>
+                    <url>${comparator.repo}</url>
+                  </repository>
+                </baselineRepositories>
+              </configuration>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+
+        <plugins>
+          <plugin>
+            <!-- Activates Tycho so Maven knows the new packaging types eclipse-plugin... -->
+            <groupId>org.eclipse.tycho</groupId>
+            <artifactId>tycho-maven-plugin</artifactId>
+            <extensions>true</extensions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+
+    <profile>
+      <id>feature_build</id>
+      <activation>
+        <file>
+          <exists>${basedir}/feature.xml</exists>
+        </file>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.eclipse.tycho.extras</groupId>
+            <artifactId>tycho-source-feature-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>generate-source-feature</id>
+                <goals>
+                  <goal>source-feature</goal>
+                </goals>
+                <configuration>
+                  <excludes>
+                    <!-- <plugin id="org.eclipse.scout.sdk.compatibility.v37v41.fragment" /> -->
+                  </excludes>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+
+          <plugin>
+            <groupId>org.eclipse.tycho</groupId>
+            <artifactId>tycho-p2-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>default-p2-metadata-default</id>
+                <configuration>
+                  <attachP2Metadata>false</attachP2Metadata>
+                </configuration>
+              </execution>
+              <execution>
+                <id>attach-p2-metadata</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>p2-metadata</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+
+          <plugin>
+            <groupId>org.basepom.maven</groupId>
+            <artifactId>duplicate-finder-maven-plugin</artifactId>
+            <configuration>
+              <skip>true</skip>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+
+    <profile>
+      <id>repository_build</id>
+      <activation>
+        <file>
+          <exists>${basedir}/category.xml</exists>
+        </file>
+      </activation>
+
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.eclipse.tycho</groupId>
+            <artifactId>tycho-p2-publisher-plugin</artifactId>
+            <configuration>
+              <publishArtifacts>true</publishArtifacts>
+            </configuration>
+          </plugin>
+
+          <plugin>
+            <groupId>org.basepom.maven</groupId>
+            <artifactId>duplicate-finder-maven-plugin</artifactId>
+            <configuration>
+              <skip>true</skip>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+
+    <profile>
+      <id>eclipse-sign</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.eclipse.cbi.maven.plugins</groupId>
+            <artifactId>eclipse-jarsigner-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>sign</id>
+                <goals>
+                  <goal>sign</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+            <groupId>org.eclipse.tycho</groupId>
+            <artifactId>tycho-p2-plugin</artifactId>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>
diff --git a/pom.xml b/pom.xml
index 3887b03..5e4fc99 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,6 @@
     <module>maven_plugin_config-master</module>
     <module>maven_rt_plugin_config-master</module>
     <module>maven_sdk_plugin_config-master</module>
-    <module>maven_sdk_p2_plugin_config-master</module>
   </modules>
 
   <properties>
@@ -40,6 +39,13 @@
     <forgeReleaseUrl>https://repo.eclipse.org/content/repositories/scout-releases/</forgeReleaseUrl>
     <forgeSnapshotId>repo.eclipse.org</forgeSnapshotId>
     <forgeSnapshotUrl>https://repo.eclipse.org/content/repositories/scout-snapshots/</forgeSnapshotUrl>
+
+    <tycho-repo.url>https://oss.sonatype.org/content/repositories/public/</tycho-repo.url>
+    <!--
+      repo for released versions of CBI. Note, we intentionally use as specific a repo as possible.
+      See bug 471835.
+    -->
+    <eclipse-cbi-repo.url>https://repo.eclipse.org/content/repositories/cbi/</eclipse-cbi-repo.url>
   </properties>
 
   <build>
@@ -192,6 +198,27 @@
       <name>eclipse-snapshot-repo</name>
       <url>https://repo.eclipse.org/content/groups/snapshots/</url>
     </pluginRepository>
+
+    <pluginRepository>
+      <id>tycho</id>
+      <url>${tycho-repo.url}</url>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+    </pluginRepository>
+    <pluginRepository>
+      <id>eclipse-cbi</id>
+      <url>${eclipse-cbi-repo.url}</url>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+    </pluginRepository>
   </pluginRepositories>
 
   <distributionManagement>