Skip to content

Commit d18c5d9

Browse files
committed
Fix pom.xml to upload the nbm to the Maven Central
1 parent 9c28687 commit d18c5d9

1 file changed

Lines changed: 65 additions & 11 deletions

File tree

pom.xml

Lines changed: 65 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,48 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
<groupId>com.junichi11</groupId>
4+
<groupId>com.junichi11.netbeans.modules</groupId>
55
<artifactId>netbeans-github-issues</artifactId>
66
<version>0.5.1</version>
77
<packaging>nbm</packaging>
8+
<name>GitHub Issues Support</name>
9+
<url>https://github.com/junichi11/netbeans-github-issues-plugin</url>
10+
<developers>
11+
<developer>
12+
<id>junichi11</id>
13+
<name>Junichi Yamamoto</name>
14+
<url>https://github.com/junichi11</url>
15+
</developer>
16+
</developers>
17+
<scm>
18+
<connection>scm:git:https://github.com/junichi11/netbeans-github-issues-plugin.git</connection>
19+
<developerConnection>scm:git:https://github.com/junichi11/netbeans-github-issues-plugin.git</developerConnection>
20+
<url>https://github.com/junichi11/netbeans-github-issues-plugin</url>
21+
<tag>HEAD</tag>
22+
</scm>
23+
<licenses>
24+
<license>
25+
<name>Common Development and Distribution License (CDDL) v1.0 and GNU General Public License (GPL) v2</name>
26+
<url>http://netbeans.org/cddl-gplv2.html</url>
27+
</license>
28+
</licenses>
829
<build>
930
<plugins>
1031
<plugin>
11-
<groupId>org.codehaus.mojo</groupId>
32+
<groupId>org.sonatype.plugins</groupId>
33+
<artifactId>nexus-staging-maven-plugin</artifactId>
34+
<version>1.6.7</version>
35+
<extensions>true</extensions>
36+
<configuration>
37+
<serverId>ossrh</serverId>
38+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
39+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
40+
</configuration>
41+
</plugin>
42+
<plugin>
43+
<groupId>org.apache.netbeans.utilities</groupId>
1244
<artifactId>nbm-maven-plugin</artifactId>
13-
<version>3.13</version>
45+
<version>4.4</version>
1446
<extensions>true</extensions>
1547
<configuration>
1648
<codeNameBase>com.junichi11.netbeans.github.issues</codeNameBase>
@@ -24,7 +56,7 @@
2456
<plugin>
2557
<groupId>org.apache.maven.plugins</groupId>
2658
<artifactId>maven-compiler-plugin</artifactId>
27-
<version>2.5.1</version>
59+
<version>3.8.1</version>
2860
<configuration>
2961
<source>1.8</source>
3062
<target>1.8</target>
@@ -33,11 +65,27 @@
3365
<plugin>
3466
<groupId>org.apache.maven.plugins</groupId>
3567
<artifactId>maven-jar-plugin</artifactId>
36-
<version>2.4</version>
68+
<version>3.2.0</version>
3769
<configuration>
38-
<useDefaultManifestFile>true</useDefaultManifestFile>
70+
<archive>
71+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
72+
</archive>
3973
</configuration>
4074
</plugin>
75+
<plugin>
76+
<groupId>org.apache.maven.plugins</groupId>
77+
<artifactId>maven-gpg-plugin</artifactId>
78+
<version>1.6</version>
79+
<executions>
80+
<execution>
81+
<id>sign-artifacts</id>
82+
<phase>verify</phase>
83+
<goals>
84+
<goal>sign</goal>
85+
</goals>
86+
</execution>
87+
</executions>
88+
</plugin>
4189
</plugins>
4290
</build>
4391
<repositories>
@@ -49,12 +97,17 @@
4997
<enabled>false</enabled>
5098
</snapshots>
5199
</repository>
100+
</repositories>
101+
<distributionManagement>
52102
<repository>
53-
<id>unknown-jars-temp-repo</id>
54-
<name>A temporary repository created by NetBeans for libraries and jars it could not identify. Please replace the dependencies in this repository with correct ones and delete this repository.</name>
55-
<url>file:${project.basedir}/lib</url>
103+
<id>ossrh</id>
104+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
56105
</repository>
57-
</repositories>
106+
<snapshotRepository>
107+
<id>ossrh</id>
108+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
109+
</snapshotRepository>
110+
</distributionManagement>
58111
<dependencies>
59112
<dependency>
60113
<groupId>org.netbeans.api</groupId>
@@ -191,8 +244,9 @@
191244
<properties>
192245
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
193246
<netbeans.api.version>RELEASE110</netbeans.api.version>
247+
<!-- deploy: mvn -Dgpg.skip=false deploy -->
248+
<gpg.skip>true</gpg.skip>
194249
</properties>
195-
<name>GitHub Issues</name>
196250
<description>This plugin provides support for GitHub Issue Tracker.
197251

198252
&lt;h2&gt;Features&lt;/h2&gt;

0 commit comments

Comments
 (0)