Skip to content

Commit d46d1a0

Browse files
committed
fix: update pom.xml.
1 parent 6e3dfbf commit d46d1a0

File tree

1 file changed

+84
-89
lines changed

1 file changed

+84
-89
lines changed

pom.xml

+84-89
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,64 @@
5151
<slf4j.version>1.7.25</slf4j.version>
5252
</properties>
5353

54+
<distributionManagement>
55+
<snapshotRepository>
56+
<id>ossrh</id>
57+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
58+
</snapshotRepository>
59+
<repository>
60+
<id>ossrh</id>
61+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
62+
</repository>
63+
</distributionManagement>
64+
5465
<build>
5566
<pluginManagement>
5667
<plugins>
68+
<plugin>
69+
<groupId>org.apache.maven.plugins</groupId>
70+
<artifactId>maven-gpg-plugin</artifactId>
71+
<version>1.5</version>
72+
<executions>
73+
<execution>
74+
<id>sign-artifacts</id>
75+
<!-- We sign in the verify phase, which means it will happen before install and deploy (the last two phases)
76+
but not before earlier phases like test or package. -->
77+
<phase>verify</phase>
78+
<goals>
79+
<goal>sign</goal>
80+
</goals>
81+
<!-- If using gpg > 2.1 it is necessary for gpg to not try to use the pinentry programs
82+
however, it looks like Travis does not need this entry -->
83+
</execution>
84+
</executions>
85+
</plugin>
86+
<plugin>
87+
<!-- Include zipped source code in releases -->
88+
<groupId>org.apache.maven.plugins</groupId>
89+
<artifactId>maven-source-plugin</artifactId>
90+
<executions>
91+
<execution>
92+
<id>attach-sources</id>
93+
<goals>
94+
<goal>jar-no-fork</goal>
95+
</goals>
96+
</execution>
97+
</executions>
98+
</plugin>
99+
<plugin>
100+
<!-- Automatically close and deploy from OSSRH -->
101+
<groupId>org.sonatype.plugins</groupId>
102+
<artifactId>nexus-staging-maven-plugin</artifactId>
103+
<version>1.6.7</version>
104+
<extensions>true</extensions>
105+
<configuration>
106+
<serverId>ossrh</serverId>
107+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
108+
<!-- Release versions will be synced to Maven Central automatically. -->
109+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
110+
</configuration>
111+
</plugin>
57112
<plugin>
58113
<!-- Allow attaching Javadoc during releases -->
59114
<groupId>org.apache.maven.plugins</groupId>
@@ -87,99 +142,39 @@
87142
</execution>
88143
</executions>
89144
</plugin>
90-
<plugin>
91-
<groupId>org.apache.maven.plugins</groupId>
92-
<artifactId>maven-compiler-plugin</artifactId>
93-
<configuration>
94-
<source>1.8</source>
95-
<target>1.8</target>
96-
</configuration>
97-
</plugin>
98-
<plugin>
99-
<groupId>org.eluder.coveralls</groupId>
100-
<artifactId>coveralls-maven-plugin</artifactId>
101-
<version>4.3.0</version>
102-
</plugin>
103-
<plugin>
104-
<groupId>org.jacoco</groupId>
105-
<artifactId>jacoco-maven-plugin</artifactId>
106-
<version>0.7.6.201602180812</version>
107-
<executions>
108-
<execution>
109-
<id>prepare-agent</id>
110-
<goals>
111-
<goal>prepare-agent</goal>
112-
</goals>
113-
</execution>
114-
</executions>
115-
</plugin>
116145
</plugins>
117146
</pluginManagement>
147+
148+
<plugins>
149+
<plugin>
150+
<groupId>org.apache.maven.plugins</groupId>
151+
<artifactId>maven-compiler-plugin</artifactId>
152+
<configuration>
153+
<source>1.8</source>
154+
<target>1.8</target>
155+
</configuration>
156+
</plugin>
157+
<plugin>
158+
<groupId>org.eluder.coveralls</groupId>
159+
<artifactId>coveralls-maven-plugin</artifactId>
160+
<version>4.3.0</version>
161+
</plugin>
162+
<plugin>
163+
<groupId>org.jacoco</groupId>
164+
<artifactId>jacoco-maven-plugin</artifactId>
165+
<version>0.7.6.201602180812</version>
166+
<executions>
167+
<execution>
168+
<id>prepare-agent</id>
169+
<goals>
170+
<goal>prepare-agent</goal>
171+
</goals>
172+
</execution>
173+
</executions>
174+
</plugin>
175+
</plugins>
118176
</build>
119177

120-
<profiles>
121-
<profile>
122-
<id>release</id>
123-
<distributionManagement>
124-
<snapshotRepository>
125-
<id>ossrh</id>
126-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
127-
</snapshotRepository>
128-
<repository>
129-
<id>ossrh</id>
130-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
131-
</repository>
132-
</distributionManagement>
133-
<build>
134-
<plugins>
135-
<plugin>
136-
<groupId>org.apache.maven.plugins</groupId>
137-
<artifactId>maven-gpg-plugin</artifactId>
138-
<version>1.5</version>
139-
<executions>
140-
<execution>
141-
<id>sign-artifacts</id>
142-
<!-- We sign in the verify phase, which means it will happen before install and deploy (the last two phases)
143-
but not before earlier phases like test or package. -->
144-
<phase>verify</phase>
145-
<goals>
146-
<goal>sign</goal>
147-
</goals>
148-
<!-- If using gpg > 2.1 it is necessary for gpg to not try to use the pinentry programs
149-
however, it looks like Travis does not need this entry -->
150-
</execution>
151-
</executions>
152-
</plugin>
153-
<plugin>
154-
<!-- Include zipped source code in releases -->
155-
<groupId>org.apache.maven.plugins</groupId>
156-
<artifactId>maven-source-plugin</artifactId>
157-
<executions>
158-
<execution>
159-
<id>attach-sources</id>
160-
<goals>
161-
<goal>jar-no-fork</goal>
162-
</goals>
163-
</execution>
164-
</executions>
165-
</plugin>
166-
<plugin>
167-
<!-- Automatically close and deploy from OSSRH -->
168-
<groupId>org.sonatype.plugins</groupId>
169-
<artifactId>nexus-staging-maven-plugin</artifactId>
170-
<version>1.6.7</version>
171-
<extensions>true</extensions>
172-
<configuration>
173-
<serverId>ossrh</serverId>
174-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
175-
<!-- Release versions will be synced to Maven Central automatically. -->
176-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
177-
</configuration>
178-
</plugin>
179-
</plugins>
180-
</build>
181-
</profile>
182-
</profiles>
183178
<dependencies>
184179
<dependency>
185180
<groupId>org.slf4j</groupId>

0 commit comments

Comments
 (0)