Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@
</instructions>
</configuration>
</plugin>
<plugin>
<!-- tags this bundle as <artifactId>-<version> when a release is performed, see the parent pom -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@
</instructions>
</configuration>
</plugin>
<plugin>
<!-- tags this bundle as <artifactId>-<version> when a release is performed, see the parent pom -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
</instructions>
</configuration>
</plugin>
<plugin>
<!-- tags this bundle as <artifactId>-<version> when a release is performed, see the parent pom -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@
</instructions>
</configuration>
</plugin>
<plugin>
<!-- tags this bundle as <artifactId>-<version> when a release is performed, see the parent pom -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
5 changes: 5 additions & 0 deletions dependencymanager/org.apache.felix.dependencymanager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@
</instructions>
</configuration>
</plugin>
<plugin>
<!-- tags this bundle as <artifactId>-<version> when a release is performed, see the parent pom -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
62 changes: 62 additions & 0 deletions dependencymanager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
<log.version>1.3.2</log.version>
<metatype.version>1.2.4</metatype.version>
<servicemix.junit.version>4.13.2_1</servicemix.junit.version>
<!-- set to false by the performRelease profile, see tag-bundles below -->
<dependencymanager.tag.skip>true</dependencymanager.tag.skip>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -190,7 +192,67 @@
</execution>
</executions>
</plugin>
<!--
The release plugin makes one tag for the whole reactor (dependencymanager-parent-x.y.z). On top
of that every released bundle gets its own tag, <artifactId>-<version>, like the earlier releases.
Only the bundles that list this plugin in their build are tagged, and only while performing a
release: release:perform builds the tag that was just made, so HEAD of its checkout is the release.
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<skip>${dependencymanager.tag.skip}</skip>
<executable>git</executable>
</configuration>
<executions>
<execution>
<id>tag-bundle</id>
<phase>deploy</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<arguments>
<argument>tag</argument>
<argument>${project.artifactId}-${project.version}</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>push-bundle-tag</id>
<phase>deploy</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<arguments>
<argument>push</argument>
<argument>origin</argument>
<argument>refs/tags/${project.artifactId}-${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<!-- release:perform sets performRelease -->
<id>tag-bundles</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<properties>
<dependencymanager.tag.skip>false</dependencymanager.tag.skip>
</properties>
</profile>
</profiles>
</project>
Loading