Add packaging and deployment for official builds
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -6,7 +6,7 @@
|
||||
/tmdm-studio-se/
|
||||
/toem-studio-se/
|
||||
/tmdm-common/
|
||||
build.log
|
||||
build*.log
|
||||
build*.bat
|
||||
target/
|
||||
workspace/
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</repositories>
|
||||
|
||||
<properties>
|
||||
<product.final.name>${launcher.prefix}-${buildQualifier}-V${unqualifiedVersion}${release.type}</product.final.name>
|
||||
<product.final.name>${launcher.prefix}-${buildQualifier}-V${unqualifiedVersion}</product.final.name>
|
||||
<studio.dir>${project.build.directory}/products/${project.artifactId}/win32/win32/x86_64</studio.dir>
|
||||
<version.full>${unqualifiedVersion}.${buildQualifier}</version.full>
|
||||
</properties>
|
||||
@@ -48,6 +48,7 @@
|
||||
<version>1.0-alpha-2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>read-product-properties</id>
|
||||
<phase>initialize</phase>
|
||||
<goals>
|
||||
<goal>read-project-properties</goal>
|
||||
@@ -60,27 +61,6 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!--<plugin>
|
||||
<groupId>org.eclipse.tycho</groupId>
|
||||
<artifactId>tycho-p2-repository-plugin</artifactId>
|
||||
<version>${tycho.version}</version>
|
||||
<configuration>
|
||||
<includeAllDependencies>true</includeAllDependencies>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.eclipse.tycho</groupId>
|
||||
<artifactId>tycho-p2-publisher-plugin</artifactId>
|
||||
<version>${tycho.version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-p2-artifacts</id>
|
||||
<goals>
|
||||
<goal>attach-artifacts</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>-->
|
||||
<plugin>
|
||||
<groupId>org.eclipse.tycho</groupId>
|
||||
<artifactId>tycho-p2-director-plugin</artifactId>
|
||||
@@ -432,4 +412,56 @@
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>official</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<version>1.5</version>
|
||||
<executions>
|
||||
<!-- Copy build to products directory -->
|
||||
<execution>
|
||||
<id>distribute-build</id>
|
||||
<phase>deploy</phase>
|
||||
<configuration>
|
||||
<target>
|
||||
<taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath" />
|
||||
<propertyregex property="product.version.short" input="${unqualifiedVersion}" regexp="\." replace="" global="true" casesensitive="false" override="true" />
|
||||
<property name="product.dir" value="${storage}/${product.build.id}/${storage.dir}/V${unqualifiedVersion}${revision.filename}/${storage.dir}_${product.version.short}" />
|
||||
<mkdir dir="${product.dir}" />
|
||||
<echo>Moving product ZIP ${project.build.directory}/products/${product.final.name}.zip to ${product.dir}</echo>
|
||||
<move todir="${product.dir}" file="${project.build.directory}/products/${product.final.name}.zip" />
|
||||
</target>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>ant-contrib</groupId>
|
||||
<artifactId>ant-contrib</artifactId>
|
||||
<version>1.0b3</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>ant</groupId>
|
||||
<artifactId>ant</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.ant</groupId>
|
||||
<artifactId>ant-nodeps</artifactId>
|
||||
<version>1.8.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
@@ -3,4 +3,5 @@ product.name=Talend Open Studio for Big Data
|
||||
product.branding.platform=org.talend.rcp.branding.tos.bigdata
|
||||
product.branding.id=${product.branding.platform}.product
|
||||
mac.launcher.info=${product.name} for Mac OS X, Copyright Talend. 2006-2012. All rights reserved.
|
||||
product.website=http://www.talend.com\n
|
||||
product.website=http://www.talend.com\n
|
||||
storage.dir=tos
|
||||
@@ -3,4 +3,5 @@ product.name=Talend Open Studio for Data Integration
|
||||
product.branding.platform=org.talend.rcp.branding.tos
|
||||
product.branding.id=${product.branding.platform}.product
|
||||
mac.launcher.info=${product.name} for Mac OS X, Copyright Talend. 2006-2012. All rights reserved.
|
||||
product.website=http://www.talend.com\n
|
||||
product.website=http://www.talend.com\n
|
||||
storage.dir=tos
|
||||
@@ -3,4 +3,5 @@ product.name=Talend Open Profiler
|
||||
product.branding.platform=org.talend.rcp.branding.top
|
||||
product.branding.id=${product.branding.platform}.product
|
||||
mac.launcher.info=${product.name} for Mac OS X, Copyright Talend. 2006-2012. All rights reserved.
|
||||
product.website=http://www.talend.com\n
|
||||
product.website=http://www.talend.com\n
|
||||
storage.dir=top
|
||||
@@ -3,4 +3,5 @@ product.name=Talend Open Studio
|
||||
product.branding.platform=org.talend.rcp.branding.esbstandard
|
||||
product.branding.id=${product.branding.platform}.product
|
||||
mac.launcher.info=${product.name} for Mac OS X, Copyright Talend. 2006-2012. All rights reserved.
|
||||
product.website=http://www.talend.com\n
|
||||
product.website=http://www.talend.com\n
|
||||
storage.dir=tmdmce
|
||||
@@ -12,7 +12,6 @@
|
||||
<tycho.version>0.21.0</tycho.version>
|
||||
<tycho-extras.version>0.21.0</tycho-extras.version>
|
||||
<base.version>6.0.0</base.version>
|
||||
<release.type>-SNAPSHOT</release.type>
|
||||
<talend.nexus.url>http://newbuild.talend.com:8081/nexus/content/repositories</talend.nexus.url>
|
||||
<talendtargetplatform.url>http://newbuild.talend.com/targetplatform</talendtargetplatform.url>
|
||||
<talendtargetplatformversion.url>${talendtargetplatform.url}/${base.version}</talendtargetplatformversion.url>
|
||||
@@ -154,10 +153,13 @@
|
||||
</build>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>build</id>
|
||||
<id>nonofficial</id>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
<properties>
|
||||
<release.type>-SNAPSHOT</release.type>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
@@ -192,12 +194,31 @@
|
||||
<profile>
|
||||
<id>official</id>
|
||||
<properties>
|
||||
<talendtargetplatform.path>${buildRoot}/targetplatform</talendtargetplatform.path>
|
||||
<talendtargetplatform.path>${buildRootDir}/../targetplatform</talendtargetplatform.path>
|
||||
<unqualifiedVersion>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</unqualifiedVersion>
|
||||
<talendtargetplatformversion.path>${talendtargetplatform.path}/${unqualifiedVersion}</talendtargetplatformversion.path>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>properties-maven-plugin</artifactId>
|
||||
<version>1.0-alpha-2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>read-build-properties</id>
|
||||
<phase>initialize</phase>
|
||||
<goals>
|
||||
<goal>read-project-properties</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<files>
|
||||
<file>${buildRootDir}/config/build.50more.properties</file>
|
||||
</files>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.eclipse.tycho</groupId>
|
||||
<artifactId>tycho-packaging-plugin</artifactId>
|
||||
@@ -206,12 +227,12 @@
|
||||
<dependency>
|
||||
<groupId>org.eclipse.tycho.extras</groupId>
|
||||
<artifactId>tycho-buildtimestamp-jgit</artifactId>
|
||||
<version>${tycho-extras.version}</version>
|
||||
<version>${tycho.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<configuration>
|
||||
<strictBinIncludes>false</strictBinIncludes>
|
||||
<format>yyyyMMdd'_'HHmm'-${release.type}'</format>
|
||||
<format>'${product.timestamp}${release.type}'</format>
|
||||
<archive>
|
||||
<addMavenDescriptor>false</addMavenDescriptor>
|
||||
<!-- By default, name of the current user is inserted into generated MANIFEST.MF files -->
|
||||
@@ -220,7 +241,10 @@
|
||||
</manifestEntries>
|
||||
</archive>
|
||||
<timestampProvider>jgit</timestampProvider>
|
||||
<jgit.ignore>pom.xml</jgit.ignore>
|
||||
<jgit.ignore>
|
||||
pom.xml
|
||||
product.properties
|
||||
</jgit.ignore>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
|
||||
Reference in New Issue
Block a user