Skip to content

Commit c17817c

Browse files
committed
Revise pom.xml according to central repository requirements
1 parent 6aa763b commit c17817c

File tree

2 files changed

+150
-0
lines changed

2 files changed

+150
-0
lines changed

launcher-dist/pom.xml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@
2020
<artifactId>launcher</artifactId>
2121
<packaging>jar</packaging>
2222

23+
<name>Launcher</name>
24+
<description>Launcher Distribution</description>
25+
<url>https://github.com/fujitsu/launcher</url>
26+
27+
<scm>
28+
<connection>scm:git:git@github.com:fujitsu/launcher.git</connection>
29+
<developerConnection>scm:git:git@github.com:fujitsu/launcher.git</developerConnection>
30+
<url>https://github.com/fujitsu/launcher</url>
31+
</scm>
32+
33+
<properties>
34+
<maven.deploy.skip>false</maven.deploy.skip>
35+
</properties>
36+
2337
<dependencies>
2438
<dependency>
2539
<groupId>com.fujitsu.launcher</groupId>
@@ -86,6 +100,7 @@
86100
<goal>shade</goal>
87101
</goals>
88102
<configuration>
103+
<createDependencyReducedPom>false</createDependencyReducedPom>
89104
<transformers>
90105
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
91106
<manifestEntries>
@@ -166,4 +181,71 @@
166181
</plugin>
167182
</plugins>
168183
</build>
184+
185+
<profiles>
186+
<profile>
187+
<id>release</id>
188+
<build>
189+
<plugins>
190+
<plugin>
191+
<groupId>org.codehaus.mojo</groupId>
192+
<artifactId>flatten-maven-plugin</artifactId>
193+
<configuration>
194+
<flattenMode>ossrh</flattenMode>
195+
<pomElements>
196+
<dependencies>remove</dependencies>
197+
</pomElements>
198+
</configuration>
199+
<executions>
200+
<execution>
201+
<id>flatten</id>
202+
<phase>process-resources</phase>
203+
<goals>
204+
<goal>flatten</goal>
205+
</goals>
206+
</execution>
207+
</executions>
208+
</plugin>
209+
<plugin>
210+
<artifactId>maven-source-plugin</artifactId>
211+
<executions>
212+
<execution>
213+
<id>attach-sources</id>
214+
<goals>
215+
<goal>jar-no-fork</goal>
216+
</goals>
217+
</execution>
218+
</executions>
219+
</plugin>
220+
<plugin>
221+
<artifactId>maven-jar-plugin</artifactId>
222+
<executions>
223+
<execution>
224+
<id>attach-javadocs</id>
225+
<goals>
226+
<goal>jar</goal>
227+
</goals>
228+
<configuration>
229+
<classifier>javadoc</classifier>
230+
<classesDirectory>${project.build.directory}/javadoc</classesDirectory>
231+
</configuration>
232+
</execution>
233+
</executions>
234+
</plugin>
235+
<plugin>
236+
<artifactId>maven-gpg-plugin</artifactId>
237+
<executions>
238+
<execution>
239+
<id>sign-artifacts</id>
240+
<phase>verify</phase>
241+
<goals>
242+
<goal>sign</goal>
243+
</goals>
244+
</execution>
245+
</executions>
246+
</plugin>
247+
</plugins>
248+
</build>
249+
</profile>
250+
</profiles>
169251
</project>

pom.xml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,43 @@
1616
<version>3.0-SNAPSHOT</version>
1717
<packaging>pom</packaging>
1818

19+
<name>Launcher Parent</name>
20+
<description>Launcher Parent</description>
21+
<url>https://github.com/fujitsu/launcher</url>
22+
23+
<licenses>
24+
<license>
25+
<name>EPL 2.0</name>
26+
<url>http://www.eclipse.org/legal/epl-2.0</url>
27+
<distribution>repo</distribution>
28+
</license>
29+
</licenses>
30+
31+
<developers>
32+
<developer>
33+
<name>Launcher Team</name>
34+
<organization>Fujitsu Limited</organization>
35+
<organizationUrl>https://fujitsu.com</organizationUrl>
36+
</developer>
37+
</developers>
38+
39+
<scm>
40+
<connection>scm:git:git@github.com:fujitsu/launcher.git</connection>
41+
<developerConnection>scm:git:git@github.com:fujitsu/launcher.git</developerConnection>
42+
<url>https://github.com/fujitsu/launcher</url>
43+
</scm>
44+
45+
<distributionManagement>
46+
<snapshotRepository>
47+
<id>ossrh</id>
48+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
49+
</snapshotRepository>
50+
<repository>
51+
<id>ossrh</id>
52+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
53+
</repository>
54+
</distributionManagement>
55+
1956
<modules>
2057
<module>launcher-impl</module>
2158
<module>launcher-dist</module>
@@ -25,6 +62,7 @@
2562
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2663
<maven.compiler.source>1.8</maven.compiler.source>
2764
<maven.compiler.target>1.8</maven.compiler.target>
65+
<maven.deploy.skip>true</maven.deploy.skip>
2866
<mp.config.version>2.0</mp.config.version>
2967
<mp.fault-tolerance.version>3.0</mp.fault-tolerance.version>
3068
<mp.health.version>3.1</mp.health.version>
@@ -50,7 +88,12 @@
5088
<jackson.version>2.9.4</jackson.version>
5189
<opentracing-tracerresolver.version>0.1.5</opentracing-tracerresolver.version>
5290
<maven.clean.plugin.version>3.0.0</maven.clean.plugin.version>
91+
<maven.deploy.plugin.version>2.8.2</maven.deploy.plugin.version>
92+
<maven.gpg.plugin.version>3.0.1</maven.gpg.plugin.version>
93+
<maven.javadoc.plugin.version>3.2.0</maven.javadoc.plugin.version>
5394
<maven.shade.plugin.version>3.1.0</maven.shade.plugin.version>
95+
<maven.source.plugin.version>3.2.1</maven.source.plugin.version>
96+
<flatten.maven.plugin.version>1.2.7</flatten.maven.plugin.version>
5497
<hk2.plugin.version>2.5.0</hk2.plugin.version>
5598
<concurrent-api.version>1.1.1</concurrent-api.version>
5699
</properties>
@@ -346,11 +389,36 @@
346389
<artifactId>maven-clean-plugin</artifactId>
347390
<version>${maven.clean.plugin.version}</version>
348391
</plugin>
392+
<plugin>
393+
<groupId>org.apache.maven.plugins</groupId>
394+
<artifactId>maven-deploy-plugin</artifactId>
395+
<version>${maven.deploy.plugin.version}</version>
396+
</plugin>
397+
<plugin>
398+
<groupId>org.apache.maven.plugins</groupId>
399+
<artifactId>maven-gpg-plugin</artifactId>
400+
<version>${maven.gpg.plugin.version}</version>
401+
</plugin>
402+
<plugin>
403+
<groupId>org.apache.maven.plugins</groupId>
404+
<artifactId>maven-javadoc-plugin</artifactId>
405+
<version>${maven.javadoc.plugin.version}</version>
406+
</plugin>
349407
<plugin>
350408
<groupId>org.apache.maven.plugins</groupId>
351409
<artifactId>maven-shade-plugin</artifactId>
352410
<version>${maven.shade.plugin.version}</version>
353411
</plugin>
412+
<plugin>
413+
<groupId>org.apache.maven.plugins</groupId>
414+
<artifactId>maven-source-plugin</artifactId>
415+
<version>${maven.source.plugin.version}</version>
416+
</plugin>
417+
<plugin>
418+
<groupId>org.codehaus.mojo</groupId>
419+
<artifactId>flatten-maven-plugin</artifactId>
420+
<version>${flatten.maven.plugin.version}</version>
421+
</plugin>
354422
</plugins>
355423
</pluginManagement>
356424
</build>

0 commit comments

Comments
 (0)