Commit dbea2f0d authored by Lars Hermerschmidt's avatar Lars Hermerschmidt
Browse files

using nexus-staging-maven-plugin for release

parent cb610143
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<groupId>de.se_rwth.montisecarc</groupId> <groupId>de.se_rwth.montisecarc</groupId>
<artifactId>montiSecArc</artifactId> <artifactId>montiSecArc</artifactId>
<version>0.0.9-SNAPSHOT</version> <version>0.0.10-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>MontiSecArc</name> <name>MontiSecArc</name>
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
<wagon.provider.version>2.6</wagon.provider.version> <wagon.provider.version>2.6</wagon.provider.version>
<clarc.version>0.0.14</clarc.version> <clarc.version>0.0.14</clarc.version>
<maven.javadoc.failOnError>false</maven.javadoc.failOnError> <maven.javadoc.failOnError>false</maven.javadoc.failOnError>
<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
</properties> </properties>
<!-- <modules> <!-- <modules>
...@@ -34,7 +35,9 @@ ...@@ -34,7 +35,9 @@
</modules>--> </modules>-->
<scm> <scm>
<connection>scm:git:https://sselab.de/lab2/private/git/MontiSecArc</connection>
<developerConnection>scm:git:https://sselab.de/lab2/private/git/MontiSecArc</developerConnection> <developerConnection>scm:git:https://sselab.de/lab2/private/git/MontiSecArc</developerConnection>
<url>https://sselab.de/lab2/private/git/MontiSecArc</url>
<tag>HEAD</tag> <tag>HEAD</tag>
</scm> </scm>
...@@ -44,10 +47,12 @@ ...@@ -44,10 +47,12 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId> <artifactId>maven-release-plugin</artifactId>
<version>2.3.2</version> <version>2.4.2</version>
<!-- <configuration> <configuration>
<tagNameFormat>MontiSecArc-@{project.version}</tagNameFormat> <tagNameFormat>v@{project.version}</tagNameFormat>
</configuration>--> <autoVersionSubmodules>true</autoVersionSubmodules>
<releaseProfiles>releases</releaseProfiles>
</configuration>
</plugin> </plugin>
<plugin> <plugin>
...@@ -128,6 +133,35 @@ ...@@ -128,6 +133,35 @@
</executions>--> </executions>-->
</plugin> </plugin>
<!-- use nexus-staging-maven-plugin instead of default deploy plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven-deploy-plugin.version}</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.5.1</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<serverId>nexus</serverId>
<nexusUrl>http://localhost:8081/nexus/</nexusUrl>
<skipStaging>true</skipStaging>
</configuration>
</plugin>
<!-- fix Java8 Javadoc Bug <!-- fix Java8 Javadoc Bug
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
...@@ -156,6 +190,35 @@ ...@@ -156,6 +190,35 @@
</extensions> </extensions>
</build> </build>
<profiles>
<profile>
<id>releases</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.5.1</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<serverId>se-nexus</serverId>
<nexusUrl>http://lab11.se.rwth-aachen.de/nexus/</nexusUrl>
<skipStaging>true</skipStaging>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies> <dependencies>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment