Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Wagelaar2018-06-04 05:53:34 -0400
committerDennis Wagelaar2018-06-04 05:53:34 -0400
commitf854569a3bcb9e2f09993fba05c99a390fdf0a77 (patch)
treeee0ab0e49604b287b3fdf8aa7870abf6f795a022 /plugins/org.eclipse.m2m.atl.emftvm
parent60cbbf48b7c442b14142946416b461c00ab58689 (diff)
downloadorg.eclipse.atl-f854569a3bcb9e2f09993fba05c99a390fdf0a77.tar.gz
org.eclipse.atl-f854569a3bcb9e2f09993fba05c99a390fdf0a77.tar.xz
org.eclipse.atl-f854569a3bcb9e2f09993fba05c99a390fdf0a77.zip
maven-release-plugin does not pick up dynamically set versions.
Diffstat (limited to 'plugins/org.eclipse.m2m.atl.emftvm')
-rw-r--r--plugins/org.eclipse.m2m.atl.emftvm/pom.xml103
1 files changed, 79 insertions, 24 deletions
diff --git a/plugins/org.eclipse.m2m.atl.emftvm/pom.xml b/plugins/org.eclipse.m2m.atl.emftvm/pom.xml
index 40eaeeb5..ff1de78e 100644
--- a/plugins/org.eclipse.m2m.atl.emftvm/pom.xml
+++ b/plugins/org.eclipse.m2m.atl.emftvm/pom.xml
@@ -31,30 +31,85 @@
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-source-plugin</artifactId>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-deploy-plugin</artifactId>
- <executions>
- <execution>
- <id>deploy-custom</id>
- <phase>deploy</phase>
- <goals>
- <goal>deploy-file</goal>
- </goals>
- <configuration>
- <file>${project.build.directory}/${project.artifactId}-${project.version}.jar</file>
- <sources>${project.build.directory}/${project.artifactId}-${project.version}-sources.jar</sources>
- <repositoryId>${repository.id}</repositoryId>
- <url>${repository.url}</url>
- <groupId>${project.groupId}</groupId>
- <artifactId>${project.artifactId}</artifactId>
- <version>${project.deployVersion}</version>
- <packaging>jar</packaging>
- <pomFile>${project.basedir}/deploy/pom.xml</pomFile>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
+
+ <profiles>
+ <profile>
+ <id>stable</id>
+ <activation>
+ <property>
+ <name>BUILD_TYPE</name>
+ <value>S</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>deploy-custom</id>
+ <phase>deploy</phase>
+ <goals>
+ <goal>deploy-file</goal>
+ </goals>
+ <configuration>
+ <file>${project.build.directory}/${project.artifactId}-${project.version}.jar</file>
+ <files>${project.build.directory}/${project.artifactId}-${project.version}-sources.jar</files>
+ <classifiers>sources</classifiers>
+ <repositoryId>${project.distributionManagement.snapshotRepository.id}</repositoryId>
+ <url>${project.distributionManagement.snapshotRepository.url}</url>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>${project.artifactId}</artifactId>
+ <version>${project.version}</version>
+ <packaging>jar</packaging>
+ <pomFile>${project.basedir}/deploy/pom.xml</pomFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>release</id>
+ <activation>
+ <property>
+ <name>BUILD_TYPE</name>
+ <value>R</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>deploy-custom</id>
+ <phase>deploy</phase>
+ <goals>
+ <goal>deploy-file</goal>
+ </goals>
+ <configuration>
+ <file>${project.build.directory}/${project.artifactId}-${project.version}.jar</file>
+ <files>${project.build.directory}/${project.artifactId}-${project.version}-sources.jar</files>
+ <classifiers>sources</classifiers>
+ <repositoryId>${project.distributionManagement.repository.id}</repositoryId>
+ <url>${project.distributionManagement.repository.url}</url>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>${project.artifactId}</artifactId>
+ <version>${project.releaseVersion}</version>
+ <packaging>jar</packaging>
+ <pomFile>${project.basedir}/deploy/pom.xml</pomFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>

Back to the top