add repo properties only when releasing
To avoid problems in standard builds due to load repository
http://download.eclipse.org/webtools/releng/repository
Change-Id: I21ffa323b5d6f1426a3dd4c5d7fa998bf13b251e
diff --git a/releng/org.eclipse.emf.parsley.repository/pom.xml b/releng/org.eclipse.emf.parsley.repository/pom.xml
index b53f595..5eba9f1 100644
--- a/releng/org.eclipse.emf.parsley.repository/pom.xml
+++ b/releng/org.eclipse.emf.parsley.repository/pom.xml
@@ -32,41 +32,6 @@
</configuration>
</plugin>
<plugin>
- <groupId>org.eclipse.tycho.extras</groupId>
- <artifactId>tycho-eclipserun-plugin</artifactId>
- <version>${tycho-version}</version>
- <executions>
- <execution>
- <id>add-repo-properties</id>
- <goals>
- <goal>eclipse-run</goal>
- </goals>
- <phase>package</phase>
- <configuration>
- <appArgLine>-application org.eclipse.wtp.releng.tools.addRepoProperties</appArgLine>
- <argLine><![CDATA[-DartifactRepoDirectory=${project.build.directory}/repository -Dp2MirrorsURL=${p2.mirrorsURL} -Dp2StatsURI=${p2.statsURL} -DstatsTrackedArtifacts=${p2.statsTrackedArtifacts} -DstatsArtifactsSuffix=-${project.version}]]></argLine>
- <work>${project.build.directory}/eclipserun-work-first</work>
- <dependencies>
- <dependency>
- <artifactId>org.eclipse.wtp.releng.tools.feature</artifactId>
- <type>eclipse-feature</type>
- </dependency>
- </dependencies>
- <repositories>
- <repository>
- <url>http://download.eclipse.org/webtools/releng/repository</url>
- <layout>p2</layout>
- </repository>
- <repository>
- <url>http://download.eclipse.org/releases/mars</url>
- <layout>p2</layout>
- </repository>
- </repositories>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
<!-- copy the p2 repository into the project root folder
to allow for easier archiving in CI server -->
<artifactId>maven-antrun-plugin</artifactId>
@@ -137,6 +102,41 @@
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
<version>${tycho-version}</version>
+ <executions>
+ <execution>
+ <id>add-repo-properties</id>
+ <goals>
+ <goal>eclipse-run</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <appArgLine>-application org.eclipse.wtp.releng.tools.addRepoProperties</appArgLine>
+ <argLine><![CDATA[-DartifactRepoDirectory=${project.build.directory}/repository -Dp2MirrorsURL=${p2.mirrorsURL} -Dp2StatsURI=${p2.statsURL} -DstatsTrackedArtifacts=${p2.statsTrackedArtifacts} -DstatsArtifactsSuffix=-${project.version}]]></argLine>
+ <work>${project.build.directory}/eclipserun-work-first</work>
+ <dependencies>
+ <dependency>
+ <artifactId>org.eclipse.wtp.releng.tools.feature</artifactId>
+ <type>eclipse-feature</type>
+ </dependency>
+ </dependencies>
+ <repositories>
+ <repository>
+ <url>http://download.eclipse.org/webtools/releng/repository</url>
+ <layout>p2</layout>
+ </repository>
+ <repository>
+ <url>http://download.eclipse.org/releases/mars</url>
+ <layout>p2</layout>
+ </repository>
+ </repositories>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho.extras</groupId>
+ <artifactId>tycho-eclipserun-plugin</artifactId>
+ <version>${tycho-version}</version>
<configuration>
<appArgLine>-application org.eclipse.ant.core.antRunner -buildfile ${project.basedir}/../org.eclipse.emf.parsley.parent/ant/packaging-p2composite.ant p2.composite.add -Dsoftware.download.area=${parsley.download.area} -Dupdates.dir=${parsley.updates.dir} -Dsite.label="Emf Parsley Site" -Dproject.build.directory=${project.build.directory} -DunqualifiedVersion=${unqualifiedVersion} -DbuildQualifier=${buildQualifier}</appArgLine>
<repositories>