You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by se...@apache.org on 2020/05/13 12:04:50 UTC
[incubator-nlpcraft] branch NLPCRAFT-46 created (now 2ab1d04)
This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a change to branch NLPCRAFT-46
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git.
at 2ab1d04 Release instructions file initial version added. Pom file cleaned up.
This branch includes the following new commits:
new 2ab1d04 Release instructions file initial version added. Pom file cleaned up.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[incubator-nlpcraft] 01/01: Release instructions file initial
version added. Pom file cleaned up.
Posted by se...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-46
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
commit 2ab1d045c34de37dee3978801953d3a642bcca8d
Author: Sergey Kamov <se...@apache.org>
AuthorDate: Wed May 13 15:04:43 2020 +0300
Release instructions file initial version added.
Pom file cleaned up.
---
bin/MAVEN-RELEASE.md | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++
pom.xml | 13 --------
2 files changed, 86 insertions(+), 13 deletions(-)
diff --git a/bin/MAVEN-RELEASE.md b/bin/MAVEN-RELEASE.md
new file mode 100644
index 0000000..3027b9b
--- /dev/null
+++ b/bin/MAVEN-RELEASE.md
@@ -0,0 +1,86 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<img src="https://nlpcraft.apache.org/images/nlpcraft_logo_black.gif" height="80px">
+
+1. Release computer environment configuration.
+
+ 1.1 Apache release:
+ - configure file prepare.sh, set your local GPG fingerprint localUser={YOUR_VALUE}
+
+ 1.2 Maven release:
+ - Prepare maven passwords encryption (master and apache passwords) - https://maven.apache.org/guides/mini/guide-encryption.html
+ - Encode gpg.passphrase for user aradzinski@datalingvo.com Aaron Radzinski https://superuser.com/questions/972204/how-to-use-gnupg-with-passphrase
+
+ As result, you should have in the folder {USER_HOME}/.m2 two following files:
+
+ - settings-security.xml file should contain following content:
+
+ <settingsSecurity>
+ <master>{YOUR_MASTER_PASSWORD_CODE}</master>
+ </settingsSecurity>
+
+ - settings.xml file should contain following content:
+
+ ...
+ <server>
+ <id>apache.snapshots.https</id>
+ <username>YOUR_APACHE_USERNAME</username>
+ <password>{YOUR_APACHE_PASSWORD_CODE}</password>
+ </server>
+
+ <server>
+ <id>apache.releases.https</id>
+ <username>YOUR_APACHE_USERNAME</username>
+ <password>{YOUR_APACHE_PASSWORD_CODE}</password>
+ </server>
+ ...
+ <profiles>
+ ...
+ <profile>
+ <id>ossrh</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <properties>
+ <gpg.executable>gpg2</gpg.executable>
+ <gpg.passphrase>YOUR_GPG2_PASSPHRASE</gpg.passphrase>
+ <gpg.keyname>YOUR_GPG2_KEY_ID</gpg.keyname>
+ </properties>
+ </profile>
+ </profiles>
+ ...
+
+2. Make Apache release. Note that pom.xml scm tag should contain actual tag name.
+
+ Example:
+
+ <scm>
+ <url>https://github.com/apache/incubator-nlpcraft.git</url>
+ <connection>scm:git:ssh://git@github.com/apache/incubator-nlpcraft.git</connection>
+ <developerConnection>scm:git:ssh://git@github.com/apache/incubator-nlpcraft.git</developerConnection>
+ <!-- Set actual tag name here -->
+ <tag>v0.5.0</tag>
+ </scm
+3. Make Maven release
+ - cd <PROJECT_FOLDER>
+ - mvn -DskipTests=true clean deploy -P release
+ - login https://repository.apache.org
+ - look at staging repositories (order by date desc) https://repository.apache.org/#stagingRepositories
+ - find and close nlpcraft release, check its state.
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 497a0fb..71306fc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -111,7 +111,6 @@
<maven.shade.plugin.ver>3.2.1</maven.shade.plugin.ver>
<maven.source.plugin.ver>3.0.1</maven.source.plugin.ver>
<maven.gpg.plugin.ver>1.6</maven.gpg.plugin.ver>
- <maven.nexus.staging.plugin.ver>1.6.7</maven.nexus.staging.plugin.ver>
<maven.bazaarvoice.plugin.ver>0.9</maven.bazaarvoice.plugin.ver>
<apache.rat.plugin.ver>0.13</apache.rat.plugin.ver>
<org.antlr4.ver>4.8</org.antlr4.ver>
@@ -750,18 +749,6 @@ JDK version should be 8 or 11
</execution>
</executions>
</plugin>
- <plugin>
- <groupId>org.sonatype.plugins</groupId>
- <artifactId>nexus-staging-maven-plugin</artifactId>
- <version>${maven.nexus.staging.plugin.ver}</version>
- <extensions>true</extensions>
- <configuration>
- <serverId>ossrh</serverId>
- <nexusUrl>https://oss.sonatype.org/</nexusUrl>
- <autoReleaseAfterClose>false</autoReleaseAfterClose>
- <skipLocalStaging>true</skipLocalStaging>
- </configuration>
- </plugin>
</plugins>
</build>