[jbosstools-commits] JBoss Tools SVN: r43510 - trunk/build/target-platform.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Sep 7 11:30:37 EDT 2012


Author: nickboldt
Date: 2012-09-07 11:30:37 -0400 (Fri, 07 Sep 2012)
New Revision: 43510

Added:
   trunk/build/target-platform/pom-local.xml
Log:
generate alternate pom.xml for use with local.target

Added: trunk/build/target-platform/pom-local.xml
===================================================================
--- trunk/build/target-platform/pom-local.xml	                        (rev 0)
+++ trunk/build/target-platform/pom-local.xml	2012-09-07 15:30:37 UTC (rev 43510)
@@ -0,0 +1,239 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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.jboss.tools</groupId> <artifactId>parent</artifactId> 
+		<version>0.0.1-SNAPSHOT</version> </parent> -->
+	<groupId>org.jboss.tools</groupId>
+	<artifactId>org.jboss.tools.target.platform</artifactId>
+	<version>4.0.0.Alpha2-SNAPSHOT</version>
+	<name>JBoss Tools Target Platform Definition</name>
+	<packaging>pom</packaging>
+
+	<properties>
+		<target.platform.classifier.multiple.name>multiple</target.platform.classifier.multiple.name>
+		<target.platform.classifier.unified.name>unified</target.platform.classifier.unified.name>
+		<target.platform.classifier.local.name>local</target.platform.classifier.local.name>
+		<unified.URL>http://download.jboss.org/jbosstools/updates/target-platform_4.0.juno.SR0a/latest/</unified.URL>
+		<eclipse.type>platform</eclipse.type>
+
+		<!--
+		<eclipse.version>4.2</eclipse.version>
+		<eclipse.URL>http://www.eclipse.org/downloads/download.php?r=1&amp;file=/eclipse/downloads/drops4/R-4.2-201206081400/</eclipse.URL>
+		-->
+		<eclipse.version>M20120829-1000</eclipse.version>
+		<eclipse.URL>http://www.eclipse.org/downloads/download.php?r=1&amp;file=/eclipse/downloads/drops4/M20120829-1000/</eclipse.URL>
+		
+		<!-- Temporary before release of Tycho 0.16 -->
+		<!-- JBIDE-12003 -->
+		<tychoVersion>0.16.0-SNAPSHOT</tychoVersion>
+		<tychoExtrasVersion>0.16.0-SNAPSHOT</tychoExtrasVersion>
+	</properties>
+
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.eclipse.tycho.extras</groupId>
+				<artifactId>target-platform-validation-plugin</artifactId>
+				<version>${tychoExtrasVersion}</version>
+				<executions>
+					<execution>
+						<phase>validate</phase>
+						<goals>
+ 							<goal>validate-target-platform</goal> 
+						</goals>
+						<configuration>
+							<targetFiles>
+								<!-- run this only after building from multiple.target to a local repo to ensure the TP contains EVERYTHING we need -->
+								<param>local.target</param>
+							</targetFiles>
+							<failOnError>true</failOnError>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+			<plugin>
+				<groupId>org.codehaus.mojo</groupId>
+				<artifactId>build-helper-maven-plugin</artifactId>
+				<version>1.3</version>
+				<executions>
+					<execution>
+						<id>attach-artifacts</id>
+						<phase>package</phase>
+						<goals>
+							<goal>attach-artifact</goal>
+						</goals>
+						<configuration>
+							<artifacts>
+								<!-- add more artifacts if want more target platforms -->
+								<artifact>
+									<file>${target.platform.classifier.multiple.name}.target</file>
+									<type>target</type>
+									<classifier>${target.platform.classifier.multiple.name}</classifier>
+								</artifact>
+								<artifact>
+									<file>${target.platform.classifier.unified.name}.target</file>
+									<type>target</type>
+									<classifier>${target.platform.classifier.unified.name}</classifier>
+								</artifact>
+							</artifacts>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
+
+	<profiles>
+		<profile>
+			<id>use.local.target</id>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.codehaus.mojo</groupId>
+						<artifactId>build-helper-maven-plugin</artifactId>
+						<version>1.3</version>
+						<executions>
+							<execution>
+								<id>attach-artifacts</id>
+								<phase>package</phase>
+								<goals>
+									<goal>attach-artifact</goal>
+								</goals>
+								<configuration>
+									<artifacts>
+										<!-- add more artifacts if want more target platforms -->
+										<artifact>
+											<file>${target.platform.classifier.multiple.name}.target</file>
+											<type>target</type>
+											<classifier>${target.platform.classifier.multiple.name}</classifier>
+										</artifact>
+										<artifact>
+											<file>${target.platform.classifier.unified.name}.target</file>
+											<type>target</type>
+											<classifier>${target.platform.classifier.unified.name}</classifier>
+										</artifact>
+										<artifact>
+											<file>${target.platform.classifier.local.name}.target</file>
+											<type>target</type>
+											<classifier>${target.platform.classifier.local.name}</classifier>
+										</artifact>
+									</artifacts>
+								</configuration>
+							</execution>
+						</executions>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
+		<profile>
+			<id>get.local.target</id>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.apache.maven.plugins</groupId>
+						<artifactId>maven-antrun-plugin</artifactId>
+						<version>1.6</version>
+						<executions>
+							<execution>
+								<phase>validate</phase>
+								<configuration>
+									<tasks>
+										<!-- build the local.target file -->
+										<ant antfile="build.xml">
+											<property name="targetFile" value="multiple.target" />
+											<property name="unified.URL" value="${unified.URL}"/>
+											<property name="eclipse.version" value="${eclipse.version}" />
+											<property name="eclipse.type" value="${eclipse.type}" />
+											<property name="eclipse.URL" value="${eclipse.URL}"/>
+											<!-- <property name="repoDir" value="/path/to/where/to/provision/repo"/> -->
+										</ant>
+									</tasks>
+								</configuration>
+								<goals>
+									<goal>run</goal>
+								</goals>
+							</execution>
+						</executions>
+						<dependencies>
+							<dependency>
+								<groupId>commons-net</groupId>
+								<artifactId>commons-net</artifactId>
+								<version>1.4.1</version>
+							</dependency>
+							<dependency>
+								<groupId>org.apache.ant</groupId>
+								<artifactId>ant-commons-net</artifactId>
+								<version>1.7.1</version>
+							</dependency>
+							<dependency>
+								<groupId>org.apache.ant</groupId>
+								<artifactId>ant-trax</artifactId>
+								<version>1.7.1</version>
+							</dependency>
+						</dependencies>
+					</plugin>
+					<plugin>
+						<groupId>org.codehaus.mojo</groupId>
+						<artifactId>build-helper-maven-plugin</artifactId>
+						<version>1.3</version>
+						<executions>
+							<execution>
+								<id>attach-artifacts</id>
+								<phase>package</phase>
+								<goals>
+									<goal>attach-artifact</goal>
+								</goals>
+								<configuration>
+									<artifacts>
+										<!-- add more artifacts if want more target platforms -->
+										<artifact>
+											<file>${target.platform.classifier.multiple.name}.target</file>
+											<type>target</type>
+											<classifier>${target.platform.classifier.multiple.name}</classifier>
+										</artifact>
+										<artifact>
+											<file>${target.platform.classifier.unified.name}.target</file>
+											<type>target</type>
+											<classifier>${target.platform.classifier.unified.name}</classifier>
+										</artifact>
+										<artifact>
+											<file>${target.platform.classifier.local.name}.target</file>
+											<type>target</type>
+											<classifier>${target.platform.classifier.local.name}</classifier>
+										</artifact>
+									</artifacts>
+								</configuration>
+							</execution>
+						</executions>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
+	</profiles>
+
+	<distributionManagement>
+		<repository>
+			<id>jboss-releases-repository</id>
+			<name>JBoss Releases Repository</name>
+			<uniqueVersion>false</uniqueVersion>
+			<url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
+			<layout>default</layout>
+		</repository>
+		<snapshotRepository>
+			<id>jboss-snapshots-repository</id>
+			<name>JBoss Snapshot Repository</name>
+			<uniqueVersion>false</uniqueVersion>
+			<url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
+			<layout>default</layout>
+		</snapshotRepository>
+	</distributionManagement>
+	
+	<pluginRepositories>
+  <pluginRepository>
+    <id>tycho-snapshots</id>
+    <url>https://oss.sonatype.org/content/groups/public/</url>
+  </pluginRepository>
+</pluginRepositories>
+
+</project>



More information about the jbosstools-commits mailing list