Skip to content

Commit 9514130

Browse files
authored
Update pom.xml
1 parent 0afadcd commit 9514130

1 file changed

Lines changed: 51 additions & 101 deletions

File tree

pom.xml

Lines changed: 51 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.javaquery</groupId>
55
<artifactId>util</artifactId>
6-
<packaging>pom</packaging>
6+
<packaging>jar</packaging>
77
<version>1.0-SNAPSHOT</version>
88
<name>Java Util Library</name>
99
<description>Java util class to reduce boilerplate codes</description>
@@ -19,11 +19,6 @@
1919
<timezone>+5:30</timezone>
2020
</developer>
2121
</developers>
22-
<parent>
23-
<groupId>org.sonatype.oss</groupId>
24-
<artifactId>oss-parent</artifactId>
25-
<version>9</version>
26-
</parent>
2722
<licenses>
2823
<license>
2924
<name>MIT</name>
@@ -76,109 +71,64 @@
7671
</compilerArgs>
7772
</configuration>
7873
</plugin>
79-
<plugin>
80-
<groupId>org.apache.maven.plugins</groupId>
81-
<artifactId>maven-surefire-plugin</artifactId>
82-
<version>2.22.2</version>
83-
</plugin>
84-
<plugin>
85-
<groupId>org.apache.maven.plugins</groupId>
86-
<artifactId>maven-resources-plugin</artifactId>
87-
<version>3.2.0</version>
88-
<configuration>
89-
<encoding>UTF-8</encoding>
90-
</configuration>
91-
</plugin>
92-
<plugin>
93-
<groupId>org.apache.maven.plugins</groupId>
94-
<artifactId>maven-source-plugin</artifactId>
95-
<version>3.2.1</version>
96-
<executions>
97-
<execution>
98-
<id>attach-sources</id>
99-
<goals>
100-
<goal>jar</goal>
101-
</goals>
102-
</execution>
103-
</executions>
104-
</plugin>
105-
<plugin>
106-
<groupId>org.apache.maven.plugins</groupId>
107-
<artifactId>maven-javadoc-plugin</artifactId>
108-
<version>3.2.0</version>
109-
<configuration>
110-
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
111-
<encoding>UTF-8</encoding>
112-
<additionalOptions>-html5</additionalOptions>
113-
<doclint>all,-missing</doclint>
114-
</configuration>
115-
<executions>
116-
<execution>
117-
<id>attach-javadoc</id>
118-
<goals>
119-
<goal>jar</goal>
120-
</goals>
121-
</execution>
122-
</executions>
123-
</plugin>
124-
<plugin>
125-
<artifactId>maven-deploy-plugin</artifactId>
126-
<version>2.8.2</version>
127-
<executions>
128-
<execution>
129-
<id>default-deploy</id>
130-
<phase>deploy</phase>
131-
<goals>
132-
<goal>deploy</goal>
133-
</goals>
134-
</execution>
135-
</executions>
136-
</plugin>
137-
<plugin>
138-
<groupId>org.apache.maven.plugins</groupId>
139-
<artifactId>maven-release-plugin</artifactId>
140-
<version>2.5.3</version>
141-
<configuration>
142-
<localCheckout>true</localCheckout>
143-
<pushChanges>false</pushChanges>
144-
<mavenExecutorId>forked-path</mavenExecutorId>
145-
<arguments>-Dgpg.passphrase=h5#2jaguar</arguments>
146-
</configuration>
147-
<dependencies>
148-
<dependency>
149-
<groupId>org.apache.maven.scm</groupId>
150-
<artifactId>maven-scm-provider-gitexe</artifactId>
151-
<version>1.9.5</version>
152-
</dependency>
153-
</dependencies>
154-
</plugin>
74+
<plugin>
75+
<groupId>org.sonatype.plugins</groupId>
76+
<artifactId>nexus-staging-maven-plugin</artifactId>
77+
<version>1.6.7</version>
78+
<extensions>true</extensions>
79+
<configuration>
80+
<serverId>ossrh</serverId>
81+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
82+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
83+
</configuration>
84+
</plugin>
15585
</plugins>
15686
</build>
15787
<profiles>
15888
<profile>
15989
<id>release-sign-artifacts</id>
160-
<activation>
161-
<property>
162-
<name>performRelease</name>
163-
<value>true</value>
164-
</property>
165-
</activation>
16690
<build>
16791
<plugins>
16892
<plugin>
169-
<groupId>org.apache.maven.plugins</groupId>
170-
<artifactId>maven-gpg-plugin</artifactId>
171-
<version>1.6</version>
172-
<executions>
173-
<execution>
174-
<id>sign-artifacts</id>
175-
<phase>verify</phase>
176-
<goals>
177-
<goal>sign</goal>
178-
</goals>
179-
</execution>
180-
</executions>
181-
</plugin>
93+
<groupId>org.apache.maven.plugins</groupId>
94+
<artifactId>maven-source-plugin</artifactId>
95+
<version>2.2.1</version>
96+
<executions>
97+
<execution>
98+
<id>attach-sources</id>
99+
<goals>
100+
<goal>jar-no-fork</goal>
101+
</goals>
102+
</execution>
103+
</executions>
104+
</plugin>
105+
<plugin>
106+
<groupId>org.apache.maven.plugins</groupId>
107+
<artifactId>maven-javadoc-plugin</artifactId>
108+
<version>2.9.1</version>
109+
<executions>
110+
<execution>
111+
<id>attach-javadocs</id>
112+
<goals>
113+
<goal>jar</goal>
114+
</goals>
115+
</execution>
116+
</executions>
117+
</plugin>
118+
<plugin>
119+
<groupId>org.apache.maven.plugins</groupId>
120+
<artifactId>maven-gpg-plugin</artifactId>
121+
<version>1.5</version>
122+
<executions>
123+
<execution>
124+
<id>sign-artifacts</id>
125+
<phase>verify</phase>
126+
<goals>
127+
<goal>sign</goal>
128+
</goals>
129+
</execution>
130+
</executions>
131+
</plugin>
182132
</plugins>
183133
</build>
184134
</profile>

0 commit comments

Comments
 (0)