Skip to content

Commit b9dae51

Browse files
author
Alexis Resendiz A.
committed
Changes to perform first release to Maven Central
1 parent d1ee081 commit b9dae51

1 file changed

Lines changed: 78 additions & 1 deletion

File tree

pom.xml

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,43 @@
4545
<developerConnection>scm:git:git@github.com:WASdev/ci.maven.tools.git</developerConnection>
4646
<url>https://github.com/WASdev/ci.maven.tools</url>
4747
</scm>
48-
48+
49+
<distributionManagement>
50+
<repository>
51+
<id>sonatype-nexus-staging</id>
52+
<name>Nexus Release Repository</name>
53+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
54+
</repository>
55+
</distributionManagement>
56+
4957
<build>
5058
<pluginManagement>
5159
<plugins>
60+
<plugin>
61+
<groupId>org.apache.maven.plugins</groupId>
62+
<artifactId>maven-source-plugin</artifactId>
63+
<version>2.4</version>
64+
</plugin>
65+
<plugin>
66+
<groupId>org.apache.maven.plugins</groupId>
67+
<artifactId>maven-javadoc-plugin</artifactId>
68+
<version>2.10.3</version>
69+
</plugin>
70+
<plugin>
71+
<groupId>org.apache.maven.plugins</groupId>
72+
<artifactId>maven-gpg-plugin</artifactId>
73+
<version>1.6</version>
74+
</plugin>
75+
<plugin>
76+
<groupId>org.apache.maven.plugins</groupId>
77+
<artifactId>maven-release-plugin</artifactId>
78+
<version>2.5.3</version>
79+
<configuration>
80+
<useReleaseProfile>false</useReleaseProfile>
81+
<releaseProfiles>sonatype-oss-release</releaseProfiles>
82+
<goals>deploy</goals>
83+
</configuration>
84+
</plugin>
5285
<plugin>
5386
<groupId>org.apache.maven.archetype</groupId>
5487
<artifactId>archetype-packaging</artifactId>
@@ -83,6 +116,50 @@
83116
</build>
84117

85118
<profiles>
119+
<profile>
120+
<id>sonatype-oss-release</id>
121+
<build>
122+
<plugins>
123+
<plugin>
124+
<groupId>org.apache.maven.plugins</groupId>
125+
<artifactId>maven-source-plugin</artifactId>
126+
<executions>
127+
<execution>
128+
<id>attach-sources</id>
129+
<goals>
130+
<goal>jar-no-fork</goal>
131+
</goals>
132+
</execution>
133+
</executions>
134+
</plugin>
135+
<plugin>
136+
<groupId>org.apache.maven.plugins</groupId>
137+
<artifactId>maven-javadoc-plugin</artifactId>
138+
<executions>
139+
<execution>
140+
<id>attach-javadocs</id>
141+
<goals>
142+
<goal>jar</goal>
143+
</goals>
144+
</execution>
145+
</executions>
146+
</plugin>
147+
<plugin>
148+
<groupId>org.apache.maven.plugins</groupId>
149+
<artifactId>maven-gpg-plugin</artifactId>
150+
<executions>
151+
<execution>
152+
<id>sign-artifacts</id>
153+
<phase>verify</phase>
154+
<goals>
155+
<goal>sign</goal>
156+
</goals>
157+
</execution>
158+
</executions>
159+
</plugin>
160+
</plugins>
161+
</build>
162+
</profile>
86163
<profile>
87164
<id>skip-test</id>
88165
<activation>

0 commit comments

Comments
 (0)