Skip to content

Commit

Permalink
Merge pull request #37 from ls1intum/chore/maven-central-deployment
Browse files Browse the repository at this point in the history
`Ares`: Make pom.xml file ready for deployment on Maven Central.
  • Loading branch information
MarkusPaulsen authored Oct 31, 2024
2 parents 973a371 + 97fe7a0 commit 951ddd6
Showing 1 changed file with 74 additions and 27 deletions.
101 changes: 74 additions & 27 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.tum.cit.ase</groupId>
<artifactId>ares</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.0-Beta-1</version>
<properties>
<maven.compiler.source>21</maven.compiler.source>
<arch.unit.version>1.3.0</arch.unit.version>
Expand All @@ -19,9 +19,16 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- if JaCoCo is not executed -->
<argLine></argLine>
<!-- full certificate fingerprint: B58E410970742EF7AD0FDD48D1A045E1DD48B876 -->
<gpg.key.id>D1A045E1DD48B876</gpg.key.id>
<!-- full certificate fingerprint: 23E62BB282A473EE4DDA2F8763EFD39363D21A8D -->
<gpg.key.id>23E62BB282A473EE4DDA2F8763EFD39363D21A8D</gpg.key.id>
<aspectj.version>1.9.22</aspectj.version>

<instrumentation-path>
${project.build.directory}${file.separator}${project.artifactId}-${project.version}-agent.jar
</instrumentation-path>
<aspectj-path>
${user.home}${file.separator}.m2${file.separator}repository${file.separator}org${file.separator}aspectj${file.separator}aspectjrt${file.separator}${aspectj.version}${file.separator}aspectjrt-${aspectj.version}.jar
</aspectj-path>
</properties>
<dependencies>
<!-- Junit frameworks -->
Expand Down Expand Up @@ -189,21 +196,37 @@
<goal>install-file</goal>
</goals>
<configuration>
<file>${project.build.directory}/${project.build.finalName}.jar</file>
<file>${project.build.directory}${file.separator}${project.build.finalName}.jar</file>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>install-pom</id>
<phase>package</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<file>${basedir}${file.separator}pom.xml
</file> <!-- Ensure this is correctly pointing to your POM file -->
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<packaging>pom</packaging>
</configuration>
</execution>
<execution>
<id>install-javadoc-jar</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<file>${project.build.directory}/${project.build.finalName}-javadoc.jar</file>
<file>${project.build.directory}${file.separator}${project.build.finalName}-javadoc.jar
</file>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
Expand All @@ -218,7 +241,8 @@
<goal>install-file</goal>
</goals>
<configuration>
<file>${project.build.directory}/${project.build.finalName}-sources.jar</file>
<file>${project.build.directory}${file.separator}${project.build.finalName}-sources.jar
</file>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
Expand Down Expand Up @@ -348,11 +372,15 @@
<rules>
<requireFilesDontExist>
<files>
<!-- Required for de.tum.cit.ase.ares.api.security.ArtemisSecurityConfigurationTest -->
<!-- <file>${project.build.outputDirectory}/abc/def/</file> -->
<file>${project.build.outputDirectory}/ch/qos/logback/</file>
<file>${project.build.outputDirectory}/com/github/javaparser/</file>
<file>${project.build.outputDirectory}/com/intellij/</file>
<file>${project.build.outputDirectory}/com/sun/</file>
<!-- We cannot fulfill this one because we are building those classes here
<file>${project.build.outputDirectory}/de/tum/cit/ase/ares/api/</file> -->
<file>${project.build.outputDirectory}/de/tum/in/test/api/</file>
<file>${project.build.outputDirectory}/java/</file>
<file>${project.build.outputDirectory}/javax/</file>
<file>${project.build.outputDirectory}/jdk/</file>
Expand All @@ -365,9 +393,6 @@
<file>${project.build.outputDirectory}/org/junit/</file>
<file>${project.build.outputDirectory}/org/opentest4j/</file>
<file>${project.build.outputDirectory}/sun/</file>
<file>${project.build.outputDirectory}/com/github/javaparser/</file>
<!-- Required for de.tum.cit.ase.ares.api.security.ArtemisSecurityConfigurationTest -->
<!-- <file>${project.build.outputDirectory}/abc/def/</file> -->
<file>${project.build.outputDirectory}/org/gradle/</file>
<file>${project.build.outputDirectory}/worker/org/gradle/</file>
</files>
Expand Down Expand Up @@ -401,11 +426,12 @@
<java>
<removeUnusedImports/>
<importOrder>
<file>${basedir}/.settings/eclipse-rules.importorder</file>
<file>${basedir}${file.separator}.settings${file.separator}eclipse-rules.importorder</file>
</importOrder>
<eclipse>
<version>4.17.0</version>
<file>${basedir}/.settings/eclipse-formatter-rules.xml</file>
<file>${basedir}${file.separator}.settings${file.separator}eclipse-formatter-rules.xml
</file>
</eclipse>
</java>
</configuration>
Expand Down Expand Up @@ -446,7 +472,7 @@
<version>3.5.1</version>
<configuration>
<forkCount>1</forkCount>
<argLine>-javaagent:${project.build.directory}${file.separator}ares-2.0.0-SNAPSHOT-agent.jar -Xbootclasspath/a:${user.home}${file.separator}.m2${file.separator}repository${file.separator}org${file.separator}aspectj${file.separator}aspectjrt${file.separator}${aspectj.version}${file.separator}aspectjrt-${aspectj.version}.jar</argLine>
<argLine>-javaagent:${instrumentation-path} -Xbootclasspath/a:${aspectj-path}</argLine>
</configuration>
</plugin>
<!-- Shade Plugin to package the agent JAR -->
Expand Down Expand Up @@ -514,7 +540,35 @@
</organization>
<organizationUrl>https://ase.cit.tum.de/</organizationUrl>
<roles>
<role>scientific researcher</role>
<role>Scientific Researcher</role>
</roles>
<timezone>Europe/Berlin</timezone>
</developer>
<developer>
<id>SarpSahinalp</id>
<name>Sarp Sahinalp</name>
<email>[email protected]</email>
<url>https://ase.cit.tum.de/people/paulsen/</url>
<organization>Technical University of Munich, School of Computation, Information and Technology , Research
Group Applied Software Engineering
</organization>
<organizationUrl>https://ase.cit.tum.de/</organizationUrl>
<roles>
<role>Thesis Student</role>
</roles>
<timezone>Europe/Berlin</timezone>
</developer>
<developer>
<id>AnirudhZaveri</id>
<name>Anirudh Zaveri</name>
<email>[email protected]</email>
<url>https://ase.cit.tum.de/people/paulsen/</url>
<organization>Technical University of Munich, School of Computation, Information and Technology , Research
Group Applied Software Engineering
</organization>
<organizationUrl>https://ase.cit.tum.de/</organizationUrl>
<roles>
<role>Thesis Student</role>
</roles>
<timezone>Europe/Berlin</timezone>
</developer>
Expand Down Expand Up @@ -576,7 +630,7 @@
<!-- GitHub cannot handle snapshots correctly now, so we do nothing -->
<snapshotRepository>
<id>internal</id>
<url>file://${project.build.directory}/mvn-repo</url>
<url>file://${project.build.directory}${file.separator}mvn-repo</url>
</snapshotRepository>
</distributionManagement>
</profile>
Expand All @@ -591,7 +645,7 @@
<version>3.3.0</version>
<configuration>
<forkCount>1</forkCount>
<argLine>-javaagent:/home/sarps/IdeaProjects/Ares2/target/ares-2.0.0-SNAPSHOT-agent.jar -Xbootclasspath/a:${user.home}/.m2/repository/org/aspectj/aspectjrt/${aspectj.version}/aspectjrt-${aspectj.version}.jar</argLine>
<argLine>-javaagent:${instrumentation-path} -Xbootclasspath/a:${aspectj-path}</argLine>
</configuration>
</plugin>
</plugins>
Expand All @@ -600,19 +654,13 @@
<!-- Profile for manually deploying to Maven Central -->
<profile>
<id>ossrh</id>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<build>
<plugins>
<!-- Only sign the plugin if it's built manually for OSSRH -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.1.0</version>
<version>3.2.7</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand All @@ -634,13 +682,12 @@
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.6.0</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<publishingServerId>central</publishingServerId>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit 951ddd6

Please sign in to comment.