Skip to content

Commit bdef70b

Browse files
committed
Moved the deploy profile to the parent pom
1 parent 01108ab commit bdef70b

File tree

2 files changed

+73
-73
lines changed

2 files changed

+73
-73
lines changed

pom.xml

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,79 @@
113113
</executions>
114114
</plugin>
115115
</plugins>
116-
</build>
116+
</build>
117+
118+
<profiles>
119+
<profile>
120+
<id>deploy</id>
121+
122+
<build>
123+
<plugins>
124+
<plugin>
125+
<artifactId>maven-source-plugin</artifactId>
126+
<version>2.4</version>
127+
<executions>
128+
<execution>
129+
<id>attach-source</id>
130+
<phase>compile</phase>
131+
<goals>
132+
<goal>jar-no-fork</goal>
133+
</goals>
134+
</execution>
135+
</executions>
136+
</plugin>
137+
138+
<plugin>
139+
<groupId>org.apache.maven.plugins</groupId>
140+
<artifactId>maven-javadoc-plugin</artifactId>
141+
<version>3.3.1</version>
142+
<executions>
143+
<execution>
144+
<id>attach-javadocs</id>
145+
<goals>
146+
<goal>jar</goal>
147+
</goals>
148+
</execution>
149+
</executions>
150+
</plugin>
151+
152+
<plugin>
153+
<groupId>org.apache.maven.plugins</groupId>
154+
<artifactId>maven-gpg-plugin</artifactId>
155+
<version>3.0.1</version>
156+
<executions>
157+
<execution>
158+
<id>sign-artifacts</id>
159+
<phase>verify</phase>
160+
<goals>
161+
<goal>sign</goal>
162+
</goals>
163+
<configuration>
164+
<!-- Prevent gpg from using pinentry programs -->
165+
<gpgArguments>
166+
<arg>--pinentry-mode</arg>
167+
<arg>loopback</arg>
168+
</gpgArguments>
169+
</configuration>
170+
</execution>
171+
</executions>
172+
</plugin>
173+
174+
<plugin>
175+
<groupId>org.sonatype.plugins</groupId>
176+
<artifactId>nexus-staging-maven-plugin</artifactId>
177+
<version>1.6.13</version>
178+
<extensions>true</extensions>
179+
<configuration>
180+
<serverId>ossrh</serverId>
181+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
182+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
183+
</configuration>
184+
</plugin>
185+
</plugins>
186+
</build>
187+
</profile>
188+
</profiles>
117189

118190
<distributionManagement>
119191
<snapshotRepository>

sonar-erroraway-sonar-plugin/pom.xml

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -263,76 +263,4 @@
263263
</plugin>
264264
</plugins>
265265
</build>
266-
267-
<profiles>
268-
<profile>
269-
<id>deploy</id>
270-
271-
<build>
272-
<plugins>
273-
<plugin>
274-
<artifactId>maven-source-plugin</artifactId>
275-
<version>2.4</version>
276-
<executions>
277-
<execution>
278-
<id>attach-source</id>
279-
<phase>compile</phase>
280-
<goals>
281-
<goal>jar-no-fork</goal>
282-
</goals>
283-
</execution>
284-
</executions>
285-
</plugin>
286-
287-
<plugin>
288-
<groupId>org.apache.maven.plugins</groupId>
289-
<artifactId>maven-javadoc-plugin</artifactId>
290-
<version>3.3.1</version>
291-
<executions>
292-
<execution>
293-
<id>attach-javadocs</id>
294-
<goals>
295-
<goal>jar</goal>
296-
</goals>
297-
</execution>
298-
</executions>
299-
</plugin>
300-
301-
<plugin>
302-
<groupId>org.apache.maven.plugins</groupId>
303-
<artifactId>maven-gpg-plugin</artifactId>
304-
<version>3.0.1</version>
305-
<executions>
306-
<execution>
307-
<id>sign-artifacts</id>
308-
<phase>verify</phase>
309-
<goals>
310-
<goal>sign</goal>
311-
</goals>
312-
<configuration>
313-
<!-- Prevent gpg from using pinentry programs -->
314-
<gpgArguments>
315-
<arg>--pinentry-mode</arg>
316-
<arg>loopback</arg>
317-
</gpgArguments>
318-
</configuration>
319-
</execution>
320-
</executions>
321-
</plugin>
322-
323-
<plugin>
324-
<groupId>org.sonatype.plugins</groupId>
325-
<artifactId>nexus-staging-maven-plugin</artifactId>
326-
<version>1.6.13</version>
327-
<extensions>true</extensions>
328-
<configuration>
329-
<serverId>ossrh</serverId>
330-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
331-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
332-
</configuration>
333-
</plugin>
334-
</plugins>
335-
</build>
336-
</profile>
337-
</profiles>
338266
</project>

0 commit comments

Comments
 (0)