comm.github.jerrymice.common-pom

this common pom file,may project parent pom, avoid the hassle of repeatedly configuring many maven plugin, It can help you quickly publish projects to GitHub and Maven Central Repository.

License

License

GroupId

GroupId

com.github.jerrymice.common
ArtifactId

ArtifactId

common-pom
Last Version

Last Version

0.0.4
Release Date

Release Date

Type

Type

pom
Description

Description

comm.github.jerrymice.common-pom
this common pom file,may project parent pom, avoid the hassle of repeatedly configuring many maven plugin, It can help you quickly publish projects to GitHub and Maven Central Repository.
Project URL

Project URL

https://github.com/jerrymice/common-pom
Source Code Management

Source Code Management

http://github.com/jerrymice/common-pom

Download common-pom

Filename Size
common-pom-0.0.4.pom 11 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.jerrymice.common/common-pom/ -->
<dependency>
    <groupId>com.github.jerrymice.common</groupId>
    <artifactId>common-pom</artifactId>
    <version>0.0.4</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.jerrymice.common/common-pom/
implementation 'com.github.jerrymice.common:common-pom:0.0.4'
// https://jarcasting.com/artifacts/com.github.jerrymice.common/common-pom/
implementation ("com.github.jerrymice.common:common-pom:0.0.4")
'com.github.jerrymice.common:common-pom:pom:0.0.4'
<dependency org="com.github.jerrymice.common" name="common-pom" rev="0.0.4">
  <artifact name="common-pom" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.github.jerrymice.common', module='common-pom', version='0.0.4')
)
libraryDependencies += "com.github.jerrymice.common" % "common-pom" % "0.0.4"
[com.github.jerrymice.common/common-pom "0.0.4"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Common Project Release Parent Pom

Maven central License

    this common pom file,may project parent pom,
    avoid the hassle of repeatedly configuring many maven plugin,
    It can help you quickly publish projects to GitHub and Maven Central Repository or Private Nexus Repository.

Reference to current project examples:

 <paerent>
	<groupId>com.github.jerrymice.common</groupId>
	<artifactId>common-pom</artifactId>
	<version>0.0.2.beta1</version>
</paerent>

Before use this pom profile,you need config maven setting.xml

1.setting.xml sonatype-repository config:

    <server>
            <id>sonatype-release</id>
            <username>your sonatype repository username</username>
            <password>your sonatype repository password</password>
    </server>

2.setting.xml gpg passphrase config:

    <server>
            <id>gpg.passphrase</id>
            <passphrase>password with you generate gpg key</passphrase>
    </server>

Release project into Maven Central Repository command line:

1.release prepare command line examples:

		mvn release:prepare
			-DreleaseVersion=0.0.2.beta2
			-DdevelopmentVersion=0.0.2.beta3-SNAPSHOT
			-Dtag=common-pom.0.0.2.beta2
			-P public-release

   if your project include child module,you need use command line

		mvn release:prepare-with-pom
			-DreleaseVersion=0.0.2.beta2
			-DdevelopmentVersion=0.0.2.beta3-SNAPSHOT
			-Dtag=common-pom.0.0.2.beta2
			-P public-release

2.next:release perform command line examples:

		mvn release:perform -P public-release

You can override properties property value, update default version or configuration value in your project, if you need do it. examples:

		<!--used maven-nexus-stging-plugin new version-->
		<maven.nexus-staging.plugin.version>1.6.8</maven.nexus-staging.plugin.version>

		<!--override maven-nexus-stging-plugin autoReleaseAfterClose configuration value->
		<maven.nexus-staging.plugin.autoReleaseAfterClose>false</maven.nexus-staging.plugin.autoReleaseAfterClose>

Your project can deploy nexus repository,your need modify maven settings.xml

1.maven settings.xml config:
         <server>
             <id>nexus-release</id>
              <username>deployment</username>
              <password>password</password>
         </server>

         </profiles>
            <profile>
              <properties>
                <nexus.repository.snapshots.url>http://192.168.1.101:8091/nexus/content/repositories/snapshots/</nexus.repository.snapshots.url>
                <nexus.repository.releases.url>http://192.168.1.101:8091/nexus/content/repositories/releases/</nexus.repository.releases.url>
              </properties>
              <activation>
                <activeByDefault>true</activeByDefault>
              </activation>
            </profile>
          </profiles>

2.run command line deploy project into nexus repository:

    mvn deploy -P nexus-releases

More docs:

Maven

Maven-release-plugin

Nexus-staging-maven-plugin

Versions

Version
0.0.4
0.0.3
0.0.2
0.0.2.beta1