Skip to content

Commit e15fd55

Browse files
author
markschenk
committed
Added plugins to release artifacts to maven central
1 parent 9052a0a commit e15fd55

File tree

2 files changed

+109
-2
lines changed

2 files changed

+109
-2
lines changed

c4Modeling-maven-plugin/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7+
<parent>
8+
<groupId>org.uniknow</groupId>
9+
<artifactId>c4Modeling</artifactId>
10+
<version>0.1.0-SNAPSHOT</version>
11+
</parent>
12+
713
<groupId>org.uniknow.c4Modeling</groupId>
814
<artifactId>c4Modeling-maven-plugin</artifactId>
9-
<version>0.1.0-SNAPSHOT</version>
1015
<packaging>maven-plugin</packaging>
1116

1217
<properties>

pom.xml

Lines changed: 103 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,115 @@
77

88
<groupId>org.uniknow</groupId>
99
<artifactId>c4Modeling</artifactId>
10-
<version>0.1.0</version>
10+
<version>0.1.0-SNAPSHOT</version>
1111
<name>C4 Modeling</name>
1212
<description>Tools, templates and examples C4 Modeling</description>
1313
<packaging>pom</packaging>
1414

15+
<licenses>
16+
<license>
17+
<name>Apache License, Version 2.0</name>
18+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
19+
<distribution>repo</distribution>
20+
<comments>A business-friendly OSS license</comments>
21+
</license>
22+
</licenses>
23+
24+
<organization>
25+
<name>UniKnow</name>
26+
<url>http://www.uniknow.org</url>
27+
</organization>
28+
29+
<developers>
30+
<developer>
31+
<id>mase</id>
32+
<name>Mark Schenk</name>
33+
<organization>UniKnow</organization>
34+
<roles>
35+
<role>developer</role>
36+
</roles>
37+
<timezone>Europe/Amsterdam</timezone>
38+
</developer>
39+
</developers>
40+
41+
<scm>
42+
<url>http://github.com/UniKnow/c4Modeling</url>
43+
<!-- <connection>https://github.com/UniKnow/c4Modeling.git</connection>-->
44+
<developerConnection>https://github.com/UniKnow/c4Modeling.git</developerConnection>
45+
</scm>
46+
47+
<distributionManagement>
48+
<snapshotRepository>
49+
<id>ossrh</id>
50+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
51+
</snapshotRepository>
52+
</distributionManagement>
53+
1554
<modules>
1655
<module>c4Modeling-maven-plugin</module>
1756
</modules>
1857

58+
<profiles>
59+
<profile>
60+
<id>release-signed-artifacts</id>
61+
<build>
62+
<plugins>
63+
<plugin>
64+
<groupId>org.apache.maven.plugins</groupId>
65+
<artifactId>maven-source-plugin</artifactId>
66+
<version>2.2.1</version>
67+
<executions>
68+
<execution>
69+
<id>attach-sources</id>
70+
<goals>
71+
<goal>jar-no-fork</goal>
72+
</goals>
73+
</execution>
74+
</executions>
75+
</plugin>
76+
77+
<!-- Plugins for releasing artifacts to maven central repository -->
78+
<plugin>
79+
<groupId>org.sonatype.plugins</groupId>
80+
<artifactId>nexus-staging-maven-plugin</artifactId>
81+
<version>1.6.6</version>
82+
<extensions>true</extensions>
83+
<configuration>
84+
<serverId>ossrh</serverId>
85+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
86+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
87+
</configuration>
88+
</plugin>
89+
90+
<plugin>
91+
<groupId>org.apache.maven.plugins</groupId>
92+
<artifactId>maven-release-plugin</artifactId>
93+
<version>2.5.3</version>
94+
<configuration>
95+
<autoVersionSubmodules>true</autoVersionSubmodules>
96+
<useReleaseProfile>true</useReleaseProfile>
97+
<releaseProfiles>release-signed-artifacts</releaseProfiles>
98+
<goals>deploy</goals>
99+
</configuration>
100+
</plugin>
101+
<!-- END: Plugins for releasing/branching project -->
102+
103+
<plugin>
104+
<groupId>org.apache.maven.plugins</groupId>
105+
<artifactId>maven-gpg-plugin</artifactId>
106+
<executions>
107+
<execution>
108+
<id>sign-artifacts</id>
109+
<phase>verify</phase>
110+
<goals>
111+
<goal>sign</goal>
112+
</goals>
113+
</execution>
114+
</executions>
115+
</plugin>
116+
</plugins>
117+
</build>
118+
</profile>
119+
</profiles>
120+
19121
</project>

0 commit comments

Comments
 (0)