Skip to content

Commit

Permalink
Added required plugins and information to pom
Browse files Browse the repository at this point in the history
  • Loading branch information
dschiese committed May 27, 2024
1 parent d238d6b commit ce92e4e
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: mvn clean install -Dgpg.skip

- name: Deploy and Release artifact
run: mvn clean deploy -Dgpg.keyname=${{ secrets.MAVEN_GPG_KEYNAME }} -pl qanary_commons,qanary_pipeline-template,qanary_component-template
run: mvn clean deploy -Dgpg.keyname=${{ secrets.MAVEN_GPG_KEYNAME }} -pl qanary_commons,qanary_pipeline-template,qanary_component-template,qanary-component-parent
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.OSSRH_PASSWORD }}
Expand Down
119 changes: 119 additions & 0 deletions qanary_component-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,123 @@
</dependencies>
</dependencyManagement>

<!-- START - Setup for deployment to maven repository -->

<!-- Project name, Description, URL; inherited by default -->
<name>${project.groupId}:${project.artifactId}</name> <!-- Assembling name from project and artifact id-->
<description>Qanary component template package</description>
<url>https://github.com/WDAqua/Qanary/</url>

<!-- Set up distribution management (for maven deploy plugin) -->
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<!-- Source-Control-Management information (SCM) -->
<scm>
<connection>scm:git:git://github.com/WDAqua/Qanary.git</connection>
<developerConnection>scm:git:ssh://github.com/WDAqua/Qanary.git</developerConnection>
<url>https://github.com/WDAqua/Qanary</url>
</scm>

<!-- Developer information, inherited by default -->
<developers>
<developer>
<name>Andreas Both</name>
<email>[email protected]</email>
<organization>WDAqua</organization>
<organizationUrl>http://wdaqua.eu/</organizationUrl>
</developer>
</developers>

<!-- Licence information, inherited by default -->
<licenses>
<license>
<name>The Apache License, Version 2.0</name> <!-- Example for Apache2 Licence -->
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> <!-- Example for Apache2 Licence -->
</license>
</licenses>

<!-- -->
<!-- END - Setup for deployment to maven repository -->

<build>
<plugins>
<!-- Deployment/Release related plugins -->
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<tagNameFormat>@{project.artifactId}-@{project.version}</tagNameFormat>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>

<!-- Signing the artifact -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- Required for maven repository deployment -->
<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>
</plugins>
</build>

</project>

0 comments on commit ce92e4e

Please sign in to comment.