Skip to content

Commit a1d47d8

Browse files
Merge pull request #231 from data-integrations/add-release-profile-cherrypick
[🍒]Add release profile cherrypick
2 parents 5d86c57 + 057259e commit a1d47d8

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

pom.xml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,85 @@
361361
</plugins>
362362
</build>
363363
</profile>
364+
<profile>
365+
<id>release</id>
366+
<build>
367+
<plugins>
368+
<plugin>
369+
<groupId>org.sonatype.plugins</groupId>
370+
<artifactId>nexus-staging-maven-plugin</artifactId>
371+
<version>1.6.2</version>
372+
<extensions>true</extensions>
373+
<configuration>
374+
<nexusUrl>https://oss.sonatype.org</nexusUrl>
375+
<serverId>sonatype.release</serverId>
376+
</configuration>
377+
</plugin>
378+
<!-- Source JAR -->
379+
<plugin>
380+
<groupId>org.apache.maven.plugins</groupId>
381+
<artifactId>maven-source-plugin</artifactId>
382+
<version>2.2.1</version>
383+
<configuration>
384+
<excludeResources>true</excludeResources>
385+
</configuration>
386+
<executions>
387+
<execution>
388+
<id>attach-sources</id>
389+
<phase>package</phase>
390+
<goals>
391+
<goal>jar-no-fork</goal>
392+
</goals>
393+
</execution>
394+
</executions>
395+
</plugin>
396+
397+
<!-- Javadoc jar -->
398+
<plugin>
399+
<groupId>org.apache.maven.plugins</groupId>
400+
<artifactId>maven-javadoc-plugin</artifactId>
401+
<version>2.9.1</version>
402+
<configuration>
403+
<additionalparam>-Xdoclint:none</additionalparam>
404+
<failOnError>false</failOnError>
405+
<links>
406+
<link>http://download.oracle.com/javase/${jee.version}/docs/api/</link>
407+
</links>
408+
<doctitle>${project.name} ${project.version}</doctitle>
409+
<bottom>
410+
<![CDATA[Copyright &#169; {currentYear} <a href="http://cdap.io" target="_blank">CDAP</a> Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License, Version 2.0</a>.]]>
411+
</bottom>
412+
</configuration>
413+
<executions>
414+
<execution>
415+
<id>attach-javadoc</id>
416+
<phase>package</phase>
417+
<goals>
418+
<goal>jar</goal>
419+
</goals>
420+
</execution>
421+
</executions>
422+
</plugin>
423+
424+
<plugin>
425+
<groupId>org.apache.maven.plugins</groupId>
426+
<artifactId>maven-gpg-plugin</artifactId>
427+
<version>1.5</version>
428+
<configuration>
429+
<passphrase>${gpg.passphrase}</passphrase>
430+
<useAgent>${gpg.useagent}</useAgent>
431+
</configuration>
432+
<executions>
433+
<execution>
434+
<goals>
435+
<goal>sign</goal>
436+
</goals>
437+
</execution>
438+
</executions>
439+
</plugin>
440+
</plugins>
441+
</build>
442+
</profile>
364443
</profiles>
365444

366445
</project>

0 commit comments

Comments
 (0)