Changed skip deploy handling to also publish the parent pom

Change-Id: I58330f96b9890fd28ffcd179cd26d17d651a2190
Signed-off-by: Dirk Fauth <dirk.fauth@googlemail.com>
diff --git a/org.eclipse.nebula.widgets.nattable.core/pom.xml b/org.eclipse.nebula.widgets.nattable.core/pom.xml
index e1977f7..9fdfeb3 100644
--- a/org.eclipse.nebula.widgets.nattable.core/pom.xml
+++ b/org.eclipse.nebula.widgets.nattable.core/pom.xml
@@ -53,16 +53,4 @@
 		    <version>1.7.30</version>
 		</dependency>
     </dependencies>
-    
-    <build>
-        <plugins>
-          <!-- publish this artifact to Maven repositories -->
-            <plugin>
-                <artifactId>maven-deploy-plugin</artifactId>
-                <configuration>
-                    <skip>false</skip>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
 </project>
\ No newline at end of file
diff --git a/org.eclipse.nebula.widgets.nattable.examples.e4.product/pom.xml b/org.eclipse.nebula.widgets.nattable.examples.e4.product/pom.xml
index 6aaf58d..aa7841d 100644
--- a/org.eclipse.nebula.widgets.nattable.examples.e4.product/pom.xml
+++ b/org.eclipse.nebula.widgets.nattable.examples.e4.product/pom.xml
@@ -60,6 +60,14 @@
             </execution>
          </executions>
       </plugin>
+			 
+      <!-- do not publish this artifact to Maven repositories -->
+      <plugin>
+        <artifactId>maven-deploy-plugin</artifactId>
+        <configuration>
+          <skip>true</skip>
+        </configuration>
+      </plugin>
    </plugins>
   </build>
 
diff --git a/org.eclipse.nebula.widgets.nattable.examples/pom.xml b/org.eclipse.nebula.widgets.nattable.examples/pom.xml
index bfc7d0d..9e954dc 100644
--- a/org.eclipse.nebula.widgets.nattable.examples/pom.xml
+++ b/org.eclipse.nebula.widgets.nattable.examples/pom.xml
@@ -76,6 +76,14 @@
           </execution>
         </executions>
       </plugin>
+			 
+      <!-- do not publish this artifact to Maven repositories -->
+      <plugin>
+        <artifactId>maven-deploy-plugin</artifactId>
+        <configuration>
+          <skip>true</skip>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 
diff --git a/org.eclipse.nebula.widgets.nattable.extension.e4/pom.xml b/org.eclipse.nebula.widgets.nattable.extension.e4/pom.xml
index 6bdb782..442d3c4 100644
--- a/org.eclipse.nebula.widgets.nattable.extension.e4/pom.xml
+++ b/org.eclipse.nebula.widgets.nattable.extension.e4/pom.xml
@@ -64,16 +64,4 @@
 		    <version>2.0.1</version>
 		</dependency>
     </dependencies>
-    
-    <build>
-        <plugins>
-          <!-- publish this artifact to Maven repositories -->
-            <plugin>
-                <artifactId>maven-deploy-plugin</artifactId>
-                <configuration>
-                    <skip>false</skip>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
 </project>
\ No newline at end of file
diff --git a/org.eclipse.nebula.widgets.nattable.extension.glazedlists/pom.xml b/org.eclipse.nebula.widgets.nattable.extension.glazedlists/pom.xml
index 0b2ecb4..adb9864 100644
--- a/org.eclipse.nebula.widgets.nattable.extension.glazedlists/pom.xml
+++ b/org.eclipse.nebula.widgets.nattable.extension.glazedlists/pom.xml
@@ -43,16 +43,4 @@
 		    <version>2.0.1</version>
 		</dependency>
     </dependencies>
-
-    <build>
-        <plugins>
-          <!-- publish this artifact to Maven repositories -->
-            <plugin>
-                <artifactId>maven-deploy-plugin</artifactId>
-                <configuration>
-                    <skip>false</skip>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
 </project>
\ No newline at end of file
diff --git a/org.eclipse.nebula.widgets.nattable.extension.nebula/pom.xml b/org.eclipse.nebula.widgets.nattable.extension.nebula/pom.xml
index 01b6cf2..2cdbb71 100644
--- a/org.eclipse.nebula.widgets.nattable.extension.nebula/pom.xml
+++ b/org.eclipse.nebula.widgets.nattable.extension.nebula/pom.xml
@@ -42,16 +42,4 @@
 		    <version>2.0.1</version>
 		</dependency>
     </dependencies>
-
-    <build>
-        <plugins>
-          <!-- publish this artifact to Maven repositories -->
-            <plugin>
-                <artifactId>maven-deploy-plugin</artifactId>
-                <configuration>
-                    <skip>false</skip>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
 </project>
\ No newline at end of file
diff --git a/org.eclipse.nebula.widgets.nattable.extension.poi/pom.xml b/org.eclipse.nebula.widgets.nattable.extension.poi/pom.xml
index e884f3e..70b0e1a 100644
--- a/org.eclipse.nebula.widgets.nattable.extension.poi/pom.xml
+++ b/org.eclipse.nebula.widgets.nattable.extension.poi/pom.xml
@@ -38,16 +38,4 @@
 		    <version>2.0.1</version>
 		</dependency>
     </dependencies>
-
-    <build>
-        <plugins>
-          <!-- publish this artifact to Maven repositories -->
-            <plugin>
-                <artifactId>maven-deploy-plugin</artifactId>
-                <configuration>
-                    <skip>false</skip>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
 </project>
\ No newline at end of file
diff --git a/org.eclipse.nebula.widgets.nattable.updatesite/pom.xml b/org.eclipse.nebula.widgets.nattable.updatesite/pom.xml
index 0b13bee..e5c4885 100644
--- a/org.eclipse.nebula.widgets.nattable.updatesite/pom.xml
+++ b/org.eclipse.nebula.widgets.nattable.updatesite/pom.xml
@@ -61,6 +61,14 @@
 					</execution>
 				</executions>
 			</plugin>
+			 
+            <!-- do not publish this artifact to Maven repositories -->
+            <plugin>
+                <artifactId>maven-deploy-plugin</artifactId>
+                <configuration>
+                    <skip>true</skip>
+                </configuration>
+            </plugin>
 		</plugins>
 	</build>
 
diff --git a/pom.xml b/pom.xml
index e051d45..9b2ac4e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -225,14 +225,6 @@
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-deploy-plugin</artifactId>
                     <version>2.8.2</version>
-                    <!-- 
-                    We skip the publishing to Maven by default.
-                    This way we ensure that test plugins, features, target definition, repository and possible connector projects in pomless Tycho are not published.
-                    Unfortunately this also means we need to enable it in those plugins that we want to publish, which means we need to add pom.xml files again.
-                    -->
-                    <configuration>
-                        <skip>true</skip>
-                    </configuration>
                 </plugin>
 			</plugins>
 		</pluginManagement>
@@ -305,7 +297,31 @@
 			</distributionManagement>
         </profile>
         
-        <!-- The profile for publishing to Maven Central -->
+        <!-- The profiles for publishing to Maven Central -->
+		<!-- temporary for update, delete -->
+        <profile>
+          <id>skip-deploy-eclipse-plugins</id>
+          <activation>
+            <file>
+              <exists>META-INF/MANIFEST.MF</exists>
+            </file>
+          </activation>
+          <properties>
+            <maven.deploy.skip>true</maven.deploy.skip>
+          </properties>
+        </profile>
+        <profile>
+          <id>skip-deploy</id>
+          <activation>
+            <file>
+              <missing>pom.xml</missing>
+            </file>
+          </activation>
+          <properties>
+            <maven.deploy.skip>true</maven.deploy.skip>
+          </properties>
+        </profile>
+        
         <profile>
             <id>maven-publish</id>