Skip to content

Instantly share code, notes, and snippets.

View mnadeem's full-sized avatar

Nadeem Mohammad mnadeem

View GitHub Profile
@mnadeem
mnadeem / maven-gpg-plugin.xml
Created August 30, 2016 14:16
maven gpg plugin as profile
<profiles>
<!-- GPG Signature on release -->
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
@mnadeem
mnadeem / maven-javadoc-plugin.xml
Created August 30, 2016 14:14
Maven JavaDoc plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
<executions>
<execution>
<id>attach-javadoc</id>
@mnadeem
mnadeem / maven-source-plugin.xml
Created August 30, 2016 14:13
Maven source plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
@mnadeem
mnadeem / nexus-staging-maven-plugin.xml
Created August 30, 2016 14:12
Nexus staging maven plugin
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
@mnadeem
mnadeem / gpg-passphrase-settings.xml
Created August 30, 2016 14:10
GPG passphrase as profile in settings.xml
<settings>
<profiles>
<profile>
<id>ossrh</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.passphrase>[your_gpg_passphrase]</gpg.passphrase>
</properties>
@mnadeem
mnadeem / maven-release-plugin.xml
Created August 30, 2016 14:09
Maven release plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<localCheckout>true</localCheckout>
<pushChanges>false</pushChanges>
<mavenExecutorId>forked-path</mavenExecutorId>
<arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
</configuration>
@mnadeem
mnadeem / scm-section-pom.xml
Created August 30, 2016 14:07
SCM Section of POM
<scm>
<connection>scm:git:git://github.com/dexecutor/dependent-tasks-executor.git</connection>
<developerConnection>scm:git:git@github.com:dexecutor/dexecutor.git</developerConnection>
<url>https://github.com/dexecutor/dependent-tasks-executor</url>
<tag>HEAD</tag>
</scm>
@mnadeem
mnadeem / server-section-pom.xml
Created August 30, 2016 14:06
Server section in a pom
<settings>
<servers>
<server>
<id>ossrh</id>
<username>your-jira-id</username>
<password>your-jira-pwd</password>
</server>
</servers>
</settings>
@mnadeem
mnadeem / maven-dist-management.xml
Created August 30, 2016 14:01
Maven distributed Management Section
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
@mnadeem
mnadeem / maven-deploy-plugin.xml
Created August 30, 2016 13:59
Maven Deploy Plugin
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>