Skip to content

Commit 37e5618

Browse files
author
RJ Lohan
authored
Merge pull request #3 from dchakrav-github/master
Updating pom.xml for publishing
2 parents 7e29d2a + 24e8c0c commit 37e5618

File tree

1 file changed

+48
-1
lines changed

1 file changed

+48
-1
lines changed

pom.xml

+48-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
66
<modelVersion>4.0.0</modelVersion>
77

8-
<groupId>software.amazon.cloudformation.test</groupId>
8+
<groupId>software.amazon.cloudformation</groupId>
99
<artifactId>cloudformation-cli-java-plugin-testing-support</artifactId>
1010
<name>aws-cloudformation-local-test</name>
1111
<version>1.0.0</version>
@@ -22,6 +22,7 @@
2222
<mockito.version>2.26.0</mockito.version>
2323
<jackson.version>2.10.1</jackson.version>
2424
<maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
25+
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
2526
</properties>
2627

2728
<dependencies>
@@ -196,6 +197,52 @@
196197
</execution>
197198
</executions>
198199
</plugin>
200+
<plugin>
201+
<groupId>org.apache.maven.plugins</groupId>
202+
<artifactId>maven-source-plugin</artifactId>
203+
<version>${maven-source-plugin.version}</version>
204+
<executions>
205+
<execution>
206+
<id>attach-sources</id>
207+
<goals>
208+
<goal>jar</goal>
209+
</goals>
210+
</execution>
211+
</executions>
212+
</plugin>
199213
</plugins>
200214
</build>
215+
<profiles>
216+
<profile>
217+
<id>publishing</id>
218+
<build>
219+
<plugins>
220+
<plugin>
221+
<groupId>org.apache.maven.plugins</groupId>
222+
<artifactId>maven-gpg-plugin</artifactId>
223+
<version>1.6</version>
224+
<executions>
225+
<execution>
226+
<id>sign-artifacts</id>
227+
<phase>verify</phase>
228+
<goals>
229+
<goal>sign</goal>
230+
</goals>
231+
</execution>
232+
</executions>
233+
</plugin>
234+
<plugin>
235+
<groupId>org.sonatype.plugins</groupId>
236+
<artifactId>nexus-staging-maven-plugin</artifactId>
237+
<version>1.6.8</version>
238+
<extensions>true</extensions>
239+
<configuration>
240+
<serverId>sonatype-nexus-staging</serverId>
241+
<nexusUrl>https://aws.oss.sonatype.org</nexusUrl>
242+
</configuration>
243+
</plugin>
244+
</plugins>
245+
</build>
246+
</profile>
247+
</profiles>
201248
</project>

0 commit comments

Comments
 (0)