forked from hugegraph/hugegraph-sync
fix(dist): generate doc & exit script when upload files failed
This commit is contained in:
parent
e400e4d22b
commit
e339fed6c9
|
|
@ -210,39 +210,12 @@
|
|||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>${compiler.source}</source>
|
||||
<target>${compiler.target}</target>
|
||||
<compilerArguments>
|
||||
<Xmaxerrs>500</Xmaxerrs>
|
||||
</compilerArguments>
|
||||
<compilerArgs>
|
||||
<arg>-Xlint:unchecked</arg>
|
||||
</compilerArgs>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<configuration>
|
||||
<archive>
|
||||
<index>true</index>
|
||||
<manifest>
|
||||
<addDefaultImplementationEntries>
|
||||
false
|
||||
</addDefaultImplementationEntries>
|
||||
<addDefaultSpecificationEntries>
|
||||
true
|
||||
</addDefaultSpecificationEntries>
|
||||
</manifest>
|
||||
<manifestEntries>
|
||||
<!-- Must be on one line, otherwise the automatic
|
||||
upgrade script cannot replace the version number -->
|
||||
<Implementation-Version>${project.version}</Implementation-Version>
|
||||
</manifestEntries>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
|
|
@ -273,45 +246,20 @@
|
|||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>release</id>
|
||||
<id>apache-release</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-sources</id>
|
||||
<goals>
|
||||
<goal>jar-no-fork</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-javadocs</id>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-gpg-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>sign-artifacts</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>sign</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
|
|
|||
|
|
@ -28,12 +28,15 @@ GIT_BRANCH="release-${RELEASE_VERSION}"
|
|||
|
||||
RELEASE_VERSION=${RELEASE_VERSION:?"Please input the release version behind script"}
|
||||
|
||||
WORK_DIR=$(cd "$(dirname "$0")" || exit; pwd)
|
||||
WORK_DIR=$(
|
||||
cd "$(dirname "$0")" || exit
|
||||
pwd
|
||||
)
|
||||
cd "${WORK_DIR}" || exit
|
||||
echo "In the work dir: $(pwd)"
|
||||
|
||||
# clean old dir then build a new one
|
||||
rm -rfv dist && mkdir -p dist/apache-${REPO}
|
||||
rm -rf dist && mkdir -p dist/apache-${REPO}
|
||||
|
||||
# step1: package the source code
|
||||
cd ../../ || exit
|
||||
|
|
@ -92,9 +95,10 @@ svn status
|
|||
|
||||
##### 4.3 commit & push files
|
||||
if [ "$USERNAME" = "" ]; then
|
||||
svn commit -m "submit files for ${REPO} ${RELEASE_VERSION}"
|
||||
svn commit -m "submit files for ${REPO} ${RELEASE_VERSION}" || exit
|
||||
else
|
||||
svn commit -m "submit files for ${REPO} ${RELEASE_VERSION}" --username "${USERNAME}" --password "${PASSWORD}"
|
||||
svn commit -m "submit files for ${REPO} ${RELEASE_VERSION}" \
|
||||
--username "${USERNAME}" --password "${PASSWORD}" || exit
|
||||
fi
|
||||
|
||||
echo "Finished all, please check all steps in script manually again!"
|
||||
|
|
|
|||
|
|
@ -103,39 +103,12 @@
|
|||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>${compiler.source}</source>
|
||||
<target>${compiler.target}</target>
|
||||
<compilerArguments>
|
||||
<Xmaxerrs>500</Xmaxerrs>
|
||||
</compilerArguments>
|
||||
<compilerArgs>
|
||||
<arg>-Xlint:unchecked</arg>
|
||||
</compilerArgs>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<configuration>
|
||||
<archive>
|
||||
<index>true</index>
|
||||
<manifest>
|
||||
<addDefaultImplementationEntries>
|
||||
false
|
||||
</addDefaultImplementationEntries>
|
||||
<addDefaultSpecificationEntries>
|
||||
true
|
||||
</addDefaultSpecificationEntries>
|
||||
</manifest>
|
||||
<manifestEntries>
|
||||
<!-- Must be on one line, otherwise the automatic
|
||||
upgrade script cannot replace the version number -->
|
||||
<Implementation-Version>${project.version}</Implementation-Version>
|
||||
</manifestEntries>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
|
|
@ -166,45 +139,20 @@
|
|||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>release</id>
|
||||
<id>apache-release</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-sources</id>
|
||||
<goals>
|
||||
<goal>jar-no-fork</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-javadocs</id>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-gpg-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>sign-artifacts</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>sign</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
|
|
|||
72
pom.xml
72
pom.xml
|
|
@ -28,9 +28,10 @@
|
|||
<name>${project.artifactId}</name>
|
||||
<url>https://github.com/apache/hugegraph-commons</url>
|
||||
<description>
|
||||
hugegraph-commons is a common module for HugeGraph-Common and HugeGraph-Rpc with their peripheral components.
|
||||
It includes rpc frame, locks, configurations, events, iterators, rest and some
|
||||
numeric or collection util classes to simplify the development of HugeGraph and its components.
|
||||
hugegraph-commons is a common module for HugeGraph-Common and HugeGraph-Rpc with their
|
||||
peripheral components.
|
||||
It includes rpc frame, locks, configurations, events, iterators, rest and some numeric or
|
||||
collection util classes to simplify the development of HugeGraph and its components.
|
||||
</description>
|
||||
|
||||
<parent>
|
||||
|
|
@ -48,37 +49,37 @@
|
|||
</licenses>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<id>Apache Hugegraph(Incubating)</id>
|
||||
<email>dev-subscribe@hugegraph.apache.org</email>
|
||||
<url>https://hugegraph.apache.org/</url>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>Apache Hugegraph(Incubating)</id>
|
||||
<email>dev-subscribe@hugegraph.apache.org</email>
|
||||
<url>https://hugegraph.apache.org/</url>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
<mailingLists>
|
||||
<mailingList>
|
||||
<name>Developer List</name>
|
||||
<subscribe>dev-subscribe@hugegraph.apache.org</subscribe>
|
||||
<unsubscribe>dev-unsubscribe@hugegraph.apache.org</unsubscribe>
|
||||
<post>dev@hugegraph.incubator.apache.org</post>
|
||||
</mailingList>
|
||||
<mailingList>
|
||||
<name>Commits List</name>
|
||||
<subscribe>commits-subscribe@hugegraph.apache.org</subscribe>
|
||||
<unsubscribe>commits-unsubscribe@hugegraph.apache.org</unsubscribe>
|
||||
<post>commits@hugegraph.apache.org</post>
|
||||
</mailingList>
|
||||
<mailingList>
|
||||
<name>Issues List</name>
|
||||
<subscribe>issues-subscribe@hugegraph.apache.org</subscribe>
|
||||
<unsubscribe>issues-unsubscribe@hugegraph.apache.org</unsubscribe>
|
||||
<post>issues@hugegraph.apache.org</post>
|
||||
</mailingList>
|
||||
<mailingList>
|
||||
<name>Developer List</name>
|
||||
<subscribe>dev-subscribe@hugegraph.apache.org</subscribe>
|
||||
<unsubscribe>dev-unsubscribe@hugegraph.apache.org</unsubscribe>
|
||||
<post>dev@hugegraph.incubator.apache.org</post>
|
||||
</mailingList>
|
||||
<mailingList>
|
||||
<name>Commits List</name>
|
||||
<subscribe>commits-subscribe@hugegraph.apache.org</subscribe>
|
||||
<unsubscribe>commits-unsubscribe@hugegraph.apache.org</unsubscribe>
|
||||
<post>commits@hugegraph.apache.org</post>
|
||||
</mailingList>
|
||||
<mailingList>
|
||||
<name>Issues List</name>
|
||||
<subscribe>issues-subscribe@hugegraph.apache.org</subscribe>
|
||||
<unsubscribe>issues-unsubscribe@hugegraph.apache.org</unsubscribe>
|
||||
<post>issues@hugegraph.apache.org</post>
|
||||
</mailingList>
|
||||
</mailingLists>
|
||||
|
||||
<issueManagement>
|
||||
<system>Github Issues</system>
|
||||
<url>https://github.com/apache/hugegraph-commons/issues</url>
|
||||
<system>Github Issues</system>
|
||||
<url>https://github.com/apache/hugegraph-commons/issues</url>
|
||||
</issueManagement>
|
||||
|
||||
<scm>
|
||||
|
|
@ -171,12 +172,8 @@
|
|||
<archive>
|
||||
<index>true</index>
|
||||
<manifest>
|
||||
<addDefaultImplementationEntries>
|
||||
false
|
||||
</addDefaultImplementationEntries>
|
||||
<addDefaultSpecificationEntries>
|
||||
true
|
||||
</addDefaultSpecificationEntries>
|
||||
<addDefaultImplementationEntries>false</addDefaultImplementationEntries>
|
||||
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
||||
</manifest>
|
||||
<manifestEntries>
|
||||
<!-- Must be on one line, otherwise the automatic
|
||||
|
|
@ -279,7 +276,7 @@
|
|||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>release</id>
|
||||
<id>apache-release</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
|
@ -306,9 +303,8 @@
|
|||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<additionalOptions>
|
||||
<additionalOption>-Xdoclint:none</additionalOption>
|
||||
</additionalOptions>
|
||||
<doclint>none</doclint>
|
||||
<failOnError>false</failOnError>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
|
|
|
|||
Loading…
Reference in New Issue