Skip to content

Commit 411a1ee

Browse files
committed
Fix pom configuration for sonatype deployment
1 parent e527387 commit 411a1ee

1 file changed

Lines changed: 32 additions & 31 deletions

File tree

pom.xml

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<version>1.2.0</version>
1010
<packaging>jar</packaging>
1111
<name>${project.groupId}:${project.artifactId}</name>
12-
<description>Project to help build functionality that needs to show the differences between two objects</description>
12+
<description>API to compare the difference between two objects</description>
1313
<url>https://github.com/jonpereiradev/diff-objects</url>
1414
<licenses>
1515
<license>
@@ -30,9 +30,10 @@
3030
<url>https://github.com/jonpereiradev/diff-objects/tree/master</url>
3131
</scm>
3232
<properties>
33-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3433
<maven.compiler.source>1.8</maven.compiler.source>
3534
<maven.compiler.target>1.8</maven.compiler.target>
35+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
3637
</properties>
3738
<dependencies>
3839
<dependency>
@@ -73,6 +74,32 @@
7374
</flowInitContext>
7475
</configuration>
7576
</plugin>
77+
<plugin>
78+
<groupId>org.apache.maven.plugins</groupId>
79+
<artifactId>maven-source-plugin</artifactId>
80+
<version>3.2.1</version>
81+
<executions>
82+
<execution>
83+
<id>attach-sources</id>
84+
<goals>
85+
<goal>jar-no-fork</goal>
86+
</goals>
87+
</execution>
88+
</executions>
89+
</plugin>
90+
<plugin>
91+
<groupId>org.apache.maven.plugins</groupId>
92+
<artifactId>maven-javadoc-plugin</artifactId>
93+
<version>3.2.0</version>
94+
<executions>
95+
<execution>
96+
<id>attach-javadocs</id>
97+
<goals>
98+
<goal>jar</goal>
99+
</goals>
100+
</execution>
101+
</executions>
102+
</plugin>
76103
</plugins>
77104
<resources>
78105
<resource>
@@ -83,14 +110,14 @@
83110
</build>
84111
<profiles>
85112
<profile>
86-
<id>ossrh</id>
113+
<id>deploy</id>
87114
<distributionManagement>
88115
<snapshotRepository>
89-
<id>ossrh</id>
116+
<id>deploy</id>
90117
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
91118
</snapshotRepository>
92119
<repository>
93-
<id>ossrh</id>
120+
<id>deploy</id>
94121
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
95122
</repository>
96123
</distributionManagement>
@@ -127,32 +154,6 @@
127154
</execution>
128155
</executions>
129156
</plugin>
130-
<plugin>
131-
<groupId>org.apache.maven.plugins</groupId>
132-
<artifactId>maven-source-plugin</artifactId>
133-
<version>3.2.1</version>
134-
<executions>
135-
<execution>
136-
<id>attach-sources</id>
137-
<goals>
138-
<goal>jar-no-fork</goal>
139-
</goals>
140-
</execution>
141-
</executions>
142-
</plugin>
143-
<plugin>
144-
<groupId>org.apache.maven.plugins</groupId>
145-
<artifactId>maven-javadoc-plugin</artifactId>
146-
<version>3.2.0</version>
147-
<executions>
148-
<execution>
149-
<id>attach-javadocs</id>
150-
<goals>
151-
<goal>jar</goal>
152-
</goals>
153-
</execution>
154-
</executions>
155-
</plugin>
156157
</plugins>
157158
</build>
158159
</profile>

0 commit comments

Comments
 (0)