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.

Лицензия

Лицензия

Группа

Группа

com.github.jerrymice.common
Идентификатор

Идентификатор

common-pom
Последняя версия

Последняя версия

0.0.4
Дата

Дата

Тип

Тип

pom
Описание

Описание

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.
Ссылка на сайт

Ссылка на сайт

https://github.com/jerrymice/common-pom
Система контроля версий

Система контроля версий

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

Скачать common-pom

Имя Файла Размер
common-pom-0.0.4.pom 11 KB
Обзор

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
0.0.4
0.0.3
0.0.2
0.0.2.beta1