This is an automated email from the ASF dual-hosted git repository. rec pushed a commit to branch refactoring/341-Deploy-Eclipse-feature-definitions-to-Maven-repo in repository https://gitbox.apache.org/repos/asf/uima-uimaj.git
commit d06ae960df852e29dacf9bf4794c2724809b4125 Author: Richard Eckart de Castilho <[email protected]> AuthorDate: Thu Aug 10 13:36:53 2023 +0200 Issue #341: Deploy Eclipse feature definitions to Maven repo - Disable quality checking plugins on Jenkins to speed up the build - Try fixing the checksum files for the Eclipse features --- Jenkinsfile | 3 ++- uimaj-eclipse-feature-runtime/pom.xml | 44 +++++++++++++++++++++++++++++++---- uimaj-eclipse-feature-tools/pom.xml | 44 +++++++++++++++++++++++++++++++---- 3 files changed, 80 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1490175ae..60cd449fe 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,5 +18,6 @@ @Library('uima-build-jenkins-shared-library') _ defaultPipeline { - extraMavenArguments = '-Pjacoco,spotbugs,pmd,run-rat-report -Ddisable-rc-auto-staging' + // extraMavenArguments = '-Pjacoco,spotbugs,pmd,run-rat-report -Ddisable-rc-auto-staging' + extraMavenArguments = '-Prun-rat-report -Ddisable-rc-auto-staging' } diff --git a/uimaj-eclipse-feature-runtime/pom.xml b/uimaj-eclipse-feature-runtime/pom.xml index 7935cd71e..35c4a0a31 100644 --- a/uimaj-eclipse-feature-runtime/pom.xml +++ b/uimaj-eclipse-feature-runtime/pom.xml @@ -36,11 +36,6 @@ need UIMA framework code</description> <url>${uimaWebsiteUrl}</url> - <properties> - <!-- https://issues.apache.org/jira/browse/UIMA-6462 --> - <maven.deploy.skip>true</maven.deploy.skip> - </properties> - <dependencies> <dependency> <groupId>org.apache.uima</groupId> @@ -48,4 +43,43 @@ <version>3.5.0-SNAPSHOT</version> </dependency> </dependencies> + + <profiles> + <profile> + <id>apache-release</id> + <build> + <plugins> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <!-- https://issues.apache.org/jira/browse/UIMA-6462 --> + <id>artifacts-checksum-fix</id> + <phase>verify</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <skip>${gpg.skip}</skip> + <target> + <echo message="Generating checksums for p2content.xml" /> + <property name="p2content-path" location="${project.build.directory}/${project.artifactId}-${project.version}-p2metadata.xml" /> + <copy file="${project.build.directory}/p2content.xml" tofile="${p2content-path}" overwrite="true" verbose="true"/> + <checksum format="MD5SUM" forceoverwrite="yes" algorithm="SHA-512" fileext=".sha512" file="${p2content-path}" /> + <copy file="${p2content-path}.sha512" tofile="${project.build.directory}/p2content.xml.sha512" overwrite="true" verbose="true"/> + + <echo message="Generating checksums for p2artifacts.xml" /> + <property name="p2artifacts-path" location="${project.build.directory}/${project.artifactId}-${project.version}-p2artifacts.xml" /> + <copy file="${project.build.directory}/p2artifacts.xml" tofile="${p2artifacts-path}" overwrite="true" verbose="true"/> + <checksum format="MD5SUM" forceoverwrite="yes" algorithm="SHA-512" fileext=".sha512" file="${p2artifacts-path}" /> + <copy file="${p2artifacts-path}.sha512" tofile="${project.build.directory}/p2artifacts.xml.sha512" overwrite="true" verbose="true"/> + </target> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> \ No newline at end of file diff --git a/uimaj-eclipse-feature-tools/pom.xml b/uimaj-eclipse-feature-tools/pom.xml index 200185725..f968a7d85 100644 --- a/uimaj-eclipse-feature-tools/pom.xml +++ b/uimaj-eclipse-feature-tools/pom.xml @@ -34,11 +34,6 @@ <description>UIMA Eclipse Plugin Feature for base uima tooling</description> <url>${uimaWebsiteUrl}</url> - <properties> - <!-- https://issues.apache.org/jira/browse/UIMA-6462 --> - <maven.deploy.skip>true</maven.deploy.skip> - </properties> - <dependencies> <dependency> <groupId>org.apache.uima</groupId> @@ -81,4 +76,43 @@ <version>3.5.0-SNAPSHOT</version> </dependency> </dependencies> + + <profiles> + <profile> + <id>apache-release</id> + <build> + <plugins> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <!-- https://issues.apache.org/jira/browse/UIMA-6462 --> + <id>artifacts-checksum-fix</id> + <phase>verify</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <skip>${gpg.skip}</skip> + <target> + <echo message="Generating checksums for p2content.xml" /> + <property name="p2content-path" location="${project.build.directory}/${project.artifactId}-${project.version}-p2metadata.xml" /> + <copy file="${project.build.directory}/p2content.xml" tofile="${p2content-path}" overwrite="true" verbose="true"/> + <checksum format="MD5SUM" forceoverwrite="yes" algorithm="SHA-512" fileext=".sha512" file="${p2content-path}" /> + <copy file="${p2content-path}.sha512" tofile="${project.build.directory}/p2content.xml.sha512" overwrite="true" verbose="true"/> + + <echo message="Generating checksums for p2artifacts.xml" /> + <property name="p2artifacts-path" location="${project.build.directory}/${project.artifactId}-${project.version}-p2artifacts.xml" /> + <copy file="${project.build.directory}/p2artifacts.xml" tofile="${p2artifacts-path}" overwrite="true" verbose="true"/> + <checksum format="MD5SUM" forceoverwrite="yes" algorithm="SHA-512" fileext=".sha512" file="${p2artifacts-path}" /> + <copy file="${p2artifacts-path}.sha512" tofile="${project.build.directory}/p2artifacts.xml.sha512" overwrite="true" verbose="true"/> + </target> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> \ No newline at end of file
