Skip to content

Commit 4c7dadc

Browse files
committed
Move release steps for attaching sources, signing etc. to profile release
1 parent e00bb62 commit 4c7dadc

1 file changed

Lines changed: 61 additions & 54 deletions

File tree

pom.xml

Lines changed: 61 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -59,61 +59,68 @@
5959
<target>1.8</target>
6060
</configuration>
6161
</plugin>
62-
<plugin>
63-
<groupId>org.apache.maven.plugins</groupId>
64-
<artifactId>maven-source-plugin</artifactId>
65-
<version>2.2.1</version>
66-
<executions>
67-
<execution>
68-
<id>attach-sources</id>
69-
<goals>
70-
<goal>jar-no-fork</goal>
71-
</goals>
72-
</execution>
73-
</executions>
74-
</plugin>
75-
<plugin>
76-
<groupId>org.apache.maven.plugins</groupId>
77-
<artifactId>maven-javadoc-plugin</artifactId>
78-
<version>2.9.1</version>
79-
<executions>
80-
<execution>
81-
<id>attach-javadocs</id>
82-
<goals>
83-
<goal>jar</goal>
84-
</goals>
85-
</execution>
86-
</executions>
87-
</plugin>
88-
89-
<plugin>
90-
<groupId>org.apache.maven.plugins</groupId>
91-
<artifactId>maven-gpg-plugin</artifactId>
92-
<version>1.6</version>
93-
<executions>
94-
<execution>
95-
<id>sign-artifacts</id>
96-
<phase>verify</phase>
97-
<goals>
98-
<goal>sign</goal>
99-
</goals>
100-
</execution>
101-
</executions>
102-
</plugin>
103-
104-
<plugin>
105-
<groupId>org.sonatype.plugins</groupId>
106-
<artifactId>nexus-staging-maven-plugin</artifactId>
107-
<version>1.6.13</version>
108-
<extensions>true</extensions>
109-
<configuration>
110-
<serverId>ossrh</serverId>
111-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
112-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
113-
</configuration>
114-
</plugin>
115-
11662
</plugins>
11763
</build>
64+
<profiles>
65+
<profile>
66+
<id>release</id>
67+
<build>
68+
<plugins>
69+
<plugin>
70+
<groupId>org.apache.maven.plugins</groupId>
71+
<artifactId>maven-source-plugin</artifactId>
72+
<version>2.2.1</version>
73+
<executions>
74+
<execution>
75+
<id>attach-sources</id>
76+
<goals>
77+
<goal>jar-no-fork</goal>
78+
</goals>
79+
</execution>
80+
</executions>
81+
</plugin>
82+
<plugin>
83+
<groupId>org.apache.maven.plugins</groupId>
84+
<artifactId>maven-javadoc-plugin</artifactId>
85+
<version>2.9.1</version>
86+
<executions>
87+
<execution>
88+
<id>attach-javadocs</id>
89+
<goals>
90+
<goal>jar</goal>
91+
</goals>
92+
</execution>
93+
</executions>
94+
</plugin>
95+
96+
<plugin>
97+
<groupId>org.apache.maven.plugins</groupId>
98+
<artifactId>maven-gpg-plugin</artifactId>
99+
<version>1.6</version>
100+
<executions>
101+
<execution>
102+
<id>sign-artifacts</id>
103+
<phase>verify</phase>
104+
<goals>
105+
<goal>sign</goal>
106+
</goals>
107+
</execution>
108+
</executions>
109+
</plugin>
110+
<plugin>
111+
<groupId>org.sonatype.plugins</groupId>
112+
<artifactId>nexus-staging-maven-plugin</artifactId>
113+
<version>1.6.13</version>
114+
<extensions>true</extensions>
115+
<configuration>
116+
<serverId>ossrh</serverId>
117+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
118+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
119+
</configuration>
120+
</plugin>
121+
</plugins>
122+
</build>
123+
</profile>
124+
</profiles>
118125

119126
</project>

0 commit comments

Comments
 (0)