build: added publishing
diff --git a/releng/mvn-jwt-builder/pom.xml b/releng/mvn-jwt-builder/pom.xml
index 8eabfc4..076cb77 100644
--- a/releng/mvn-jwt-builder/pom.xml
+++ b/releng/mvn-jwt-builder/pom.xml
@@ -43,7 +43,7 @@
<properties>
<tycho-version>0.18.0</tycho-version>
<maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format>
- <download-publish-path>/home/data/httpd/download.eclipse.org/jwt/integration-update-site</download-publish-path>
+ <download-publish-path>/home/data/httpd/download.eclipse.org/jwt/</download-publish-path>
</properties>
<!-- eclipse build platform -->
@@ -171,42 +171,6 @@
</build>
</profile>
- <profile>
- <id>publish</id>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <id>deploy</id>
- <phase>install</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <delete includeemptydirs="false">
- <fileset
- dir="${download-publish-path}">
- <include name="**" />
- </fileset>
- </delete>
- <copy includeemptydirs="false"
- todir="${download-publish-path}">
- <fileset dir="target/repository/">
- <include name="**" />
- </fileset>
- </copy>
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
-
<!-- init hudson variables for local build -->
<profile>
<id>Hudson Surrogate Params</id>
diff --git a/releng/org.eclipse.jwt.p2updatesite/pom.xml b/releng/org.eclipse.jwt.p2updatesite/pom.xml
index 864f9a7..2a9a5cc 100644
--- a/releng/org.eclipse.jwt.p2updatesite/pom.xml
+++ b/releng/org.eclipse.jwt.p2updatesite/pom.xml
@@ -15,5 +15,43 @@
<version>${env.VERSION}.${maven.build.timestamp}</version>
<packaging>eclipse-repository</packaging>
+ <!-- publish update site to http server -->
+ <profiles>
+ <profile>
+ <id>publish</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>deploy</id>
+ <phase>install</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <delete includeemptydirs="false">
+ <fileset
+ dir="${download-publish-path}">
+ <include name="**" />
+ </fileset>
+ </delete>
+ <copy includeemptydirs="false"
+ todir="${download-publish-path}${env.UPDATESITE}">
+ <fileset dir="target/repository/">
+ <include name="**" />
+ </fileset>
+ </copy>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>
\ No newline at end of file