attempt to push to central
This commit is contained in:
@@ -79,8 +79,28 @@ As „servers“, enter the following
|
|||||||
<id>github</id>
|
<id>github</id>
|
||||||
<password>GITHUB-TOKEN</password>
|
<password>GITHUB-TOKEN</password>
|
||||||
</server>
|
</server>
|
||||||
|
<server>
|
||||||
|
<id>ossrh</id>
|
||||||
|
<username>jstaerk</username>
|
||||||
|
<password>JIRA-PASSWORD</password>
|
||||||
|
</server>
|
||||||
</servers>
|
</servers>
|
||||||
```
|
```
|
||||||
|
Add a profiles section to settings.xml
|
||||||
|
```
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>ossrh</id>
|
||||||
|
<activation>
|
||||||
|
<activeByDefault>true</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<gpg.passphrase>PASSPHRASE</gpg.passphrase>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
```
|
||||||
|
|
||||||
The whole settings.xml then looks e.g. like this
|
The whole settings.xml then looks e.g. like this
|
||||||
```xml
|
```xml
|
||||||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
||||||
@@ -97,15 +117,32 @@ The whole settings.xml then looks e.g. like this
|
|||||||
<id>github</id>
|
<id>github</id>
|
||||||
<password>TOKEN</password>
|
<password>TOKEN</password>
|
||||||
</server>
|
</server>
|
||||||
|
<server>
|
||||||
|
<id>ossrh</id>
|
||||||
|
<username>jstaerk</username>
|
||||||
|
<password>JIRA-PASSWORD</password>
|
||||||
|
</server>
|
||||||
|
|
||||||
</servers>
|
</servers>
|
||||||
<mirrors/>
|
<mirrors/>
|
||||||
<proxies/>
|
<proxies/>
|
||||||
<profiles/>
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>ossrh</id>
|
||||||
|
<activation>
|
||||||
|
<activeByDefault>true</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<gpg.passphrase>PASSPHRASE</gpg.passphrase>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
<activeProfiles/>
|
<activeProfiles/>
|
||||||
</settings>
|
</settings>
|
||||||
```
|
```
|
||||||
|
|
||||||
The password is generated on github.
|
The TOKEN is generated on github.
|
||||||
|
Deployment to maven central is described e.g. on [dzone](https://dzone.com/articles/publish-your-artifacts-to-maven-central).
|
||||||
See the following screenshot:
|
See the following screenshot:
|
||||||
|
|
||||||
|
|
||||||
@@ -113,6 +150,7 @@ Sign in in GitHub and click on the profile picture -> Settings. Now just generat
|
|||||||

|

|
||||||
The Token-ID is the password.
|
The Token-ID is the password.
|
||||||
|
|
||||||
|
|
||||||
## Integrate before release
|
## Integrate before release
|
||||||
|
|
||||||
If you added functionality which you need to test in another project before a new version of Mustang is released you can
|
If you added functionality which you need to test in another project before a new version of Mustang is released you can
|
||||||
|
|||||||
@@ -104,20 +104,7 @@
|
|||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<pluginManagement>
|
|
||||||
<plugins>
|
|
||||||
<plugin><!-- mvn help:effective-pom will otherwise tell it just defaults
|
|
||||||
to 2.3.2 - which does not release in the maven repo, and neither shows any
|
|
||||||
error message :-( -->
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-release-plugin</artifactId>
|
|
||||||
<version>2.5.3</version>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</pluginManagement>
|
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
||||||
<!-- toecount -->
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
@@ -133,66 +120,12 @@
|
|||||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||||
</descriptorRefs>
|
</descriptorRefs>
|
||||||
<!-- http://stackoverflow.com/questions/574594/how-can-i-create-an-executable-jar-with-dependencies-using-maven
|
<!-- http://stackoverflow.com/questions/574594/how-can-i-create-an-executable-jar-with-dependencies-using-maven
|
||||||
mvn clean compile assembly:single -->
|
mvn clean compile assembly:single -->
|
||||||
<!-- or whatever version you use -->
|
<!-- or whatever version you use -->
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|
||||||
<!-- /toecount -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
|
||||||
<version>3.0.1</version>
|
|
||||||
<configuration>
|
|
||||||
|
|
||||||
<excludePackageNames>org.mustangproject.ZUGFeRD.model.*</excludePackageNames>
|
|
||||||
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-deploy-plugin</artifactId>
|
|
||||||
<version>2.8.2</version>
|
|
||||||
<configuration>
|
|
||||||
<altDeploymentRepository>internal.repo::default::file://${project.build.directory}/mvn-repo
|
|
||||||
</altDeploymentRepository>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.github.github</groupId>
|
|
||||||
<artifactId>site-maven-plugin</artifactId>
|
|
||||||
<version>0.12</version>
|
|
||||||
<configuration>
|
|
||||||
<message>Maven artifacts for ${project.version}</message>
|
|
||||||
<!-- git commit message -->
|
|
||||||
<noJekyll>true</noJekyll>
|
|
||||||
<!-- disable webpage processing -->
|
|
||||||
<outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>
|
|
||||||
<!-- matches distribution management repository url above -->
|
|
||||||
<branch>refs/heads/mvn-repo</branch>
|
|
||||||
<!-- remote branch name -->
|
|
||||||
<includes>
|
|
||||||
<include>**/*</include>
|
|
||||||
</includes>
|
|
||||||
<merge>true</merge>
|
|
||||||
<repositoryName>mustangproject</repositoryName>
|
|
||||||
<!-- github repo name -->
|
|
||||||
<repositoryOwner>ZUGFeRD</repositoryOwner>
|
|
||||||
<!-- github username -->
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<!-- run site-maven-plugin's 'site' target as part of the build's normal
|
|
||||||
'deploy' phase -->
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>site</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>deploy</phase>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-shade-plugin</artifactId>
|
<artifactId>maven-shade-plugin</artifactId>
|
||||||
@@ -238,8 +171,8 @@
|
|||||||
<artifactSet>
|
<artifactSet>
|
||||||
<excludes>
|
<excludes>
|
||||||
<!--exclude>classworlds:classworlds</exclude> <exclude>junit:junit</exclude>
|
<!--exclude>classworlds:classworlds</exclude> <exclude>junit:junit</exclude>
|
||||||
<exclude>jmock:*</exclude> <exclude>*:xml-apis</exclude> <exclude>org.apache.maven:lib:tests</exclude>
|
<exclude>jmock:*</exclude> <exclude>*:xml-apis</exclude> <exclude>org.apache.maven:lib:tests</exclude>
|
||||||
<exclude>log4j:log4j:jar:</exclude -->
|
<exclude>log4j:log4j:jar:</exclude -->
|
||||||
</excludes>
|
</excludes>
|
||||||
</artifactSet>
|
</artifactSet>
|
||||||
</configuration>
|
</configuration>
|
||||||
@@ -261,6 +194,8 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
||||||
<mailingLists>
|
<mailingLists>
|
||||||
<mailingList>
|
<mailingList>
|
||||||
<name>User List</name>
|
<name>User List</name>
|
||||||
|
|||||||
137
pom.xml
137
pom.xml
@@ -17,11 +17,131 @@
|
|||||||
</description>
|
</description>
|
||||||
<url>http://www.mustangproject.org/</url>
|
<url>http://www.mustangproject.org/</url>
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:git:https://github.com/ZUGFeRD/mustangproject.git</connection>
|
<connection>scm:git:git://github.com/dexecutor/dependent-tasks-executor.git</connection>
|
||||||
<developerConnection>scm:git:https://github.com/ZUGFeRD/mustangproject.git</developerConnection>
|
<developerConnection>scm:git:git@github.com:dexecutor/dexecutor.git</developerConnection>
|
||||||
<url>https://github.com/ZUGFeRD/mustangproject</url>
|
<url>https://github.com/dexecutor/dependent-tasks-executor</url>
|
||||||
<tag>mustang-1.7.3</tag>
|
|
||||||
</scm>
|
</scm>
|
||||||
|
<build>
|
||||||
|
<pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin><!-- mvn help:effective-pom will otherwise tell it just defaults
|
||||||
|
to 2.3.2 - which does not release in the maven repo, and neither shows any
|
||||||
|
error message :-( -->
|
||||||
|
<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>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.maven.scm</groupId>
|
||||||
|
<artifactId>maven-scm-provider-gitexe</artifactId>
|
||||||
|
<version>1.9.5</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<version>3.0.1</version>
|
||||||
|
<configuration>
|
||||||
|
|
||||||
|
<excludePackageNames>org.mustangproject.ZUGFeRD.model.*</excludePackageNames>
|
||||||
|
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
|
<version>2.8.2</version>
|
||||||
|
<configuration>
|
||||||
|
<altDeploymentRepository>internal.repo::default::file://${project.build.directory}/mvn-repo
|
||||||
|
</altDeploymentRepository>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.github.github</groupId>
|
||||||
|
<artifactId>site-maven-plugin</artifactId>
|
||||||
|
<version>0.12</version>
|
||||||
|
<configuration>
|
||||||
|
<message>Maven artifacts for ${project.version}</message>
|
||||||
|
<!-- git commit message -->
|
||||||
|
<noJekyll>true</noJekyll>
|
||||||
|
<!-- disable webpage processing -->
|
||||||
|
<outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>
|
||||||
|
<!-- matches distribution management repository url above -->
|
||||||
|
<branch>refs/heads/mvn-repo</branch>
|
||||||
|
<!-- remote branch name -->
|
||||||
|
<includes>
|
||||||
|
<include>**/*</include>
|
||||||
|
</includes>
|
||||||
|
<merge>true</merge>
|
||||||
|
<repositoryName>mustangproject</repositoryName>
|
||||||
|
<!-- github repo name -->
|
||||||
|
<repositoryOwner>ZUGFeRD</repositoryOwner>
|
||||||
|
<!-- github username -->
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<!-- run site-maven-plugin's 'site' target as part of the build's normal
|
||||||
|
'deploy' phase -->
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>site</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>deploy</phase>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</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>
|
||||||
|
</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>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-source-plugin</artifactId>
|
||||||
|
<version>2.10.4</version>
|
||||||
|
<configuration>
|
||||||
|
<encoding>UTF-8</encoding>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>attach-javadoc</id>
|
||||||
|
<goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository><!-- for jargs -->
|
<repository><!-- for jargs -->
|
||||||
<id>sonatype-oss-public</id>
|
<id>sonatype-oss-public</id>
|
||||||
@@ -35,10 +155,13 @@
|
|||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
|
<snapshotRepository>
|
||||||
|
<id>ossrh</id>
|
||||||
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
||||||
|
</snapshotRepository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>internal.repo</id>
|
<id>ossrh</id>
|
||||||
<name>Temporary Staging Repository</name>
|
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/ </url>
|
||||||
<url>file://${project.build.directory}/mvn-repo</url>
|
|
||||||
</repository>
|
</repository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
Reference in New Issue
Block a user