Testing Maven deployment

This commit is contained in:
Francesco
2023-09-28 09:11:17 +02:00
parent e05b03f0ef
commit d264a5166a
4 changed files with 101 additions and 16 deletions

89
pom.xml
View File

@@ -17,6 +17,67 @@
<properties>
<java.version>17</java.version>
</properties>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.jreleaser</groupId>
<artifactId>jreleaser-maven-plugin</artifactId>
<version>1.3.1</version>
<configuration>
<jreleaser>
<signing>
<active>ALWAYS</active>
<armored>true</armored>
</signing>
<deploy>
<maven>
<nexus2>
<maven-central>
<active>ALWAYS</active>
<url>https://s01.oss.sonatype.org/service/local</url>
<closeRepository>false</closeRepository>
<releaseRepository>false</releaseRepository>
<stagingRepositories>target/staging-deploy</stagingRepositories>
</maven-central>
</nexus2>
</maven>
</deploy>
</jreleaser>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<id>attach-javadoc</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-source</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.atteo/evo-inflector -->
<dependency>
@@ -25,12 +86,12 @@
<version>1.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.tika/tika-parsers -->
<!-- <dependency> -->
<!-- <groupId>org.apache.tika</groupId> -->
<!-- <artifactId>tika-parsers</artifactId> -->
<!-- <version>2.9.0</version> -->
<!-- <type>pom</type> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>org.apache.tika</groupId> -->
<!-- <artifactId>tika-parsers</artifactId> -->
<!-- <version>2.9.0</version> -->
<!-- <type>pom</type> -->
<!-- </dependency> -->
<!-- https://mvnrepository.com/artifact/org.apache.tika/tika-core -->
<dependency>
@@ -88,13 +149,13 @@
</dependency>
</dependencies>
<!-- <build> -->
<!-- <plugins> -->
<!-- <plugin> -->
<!-- <groupId>org.springframework.boot</groupId> -->
<!-- <artifactId>spring-boot-maven-plugin</artifactId> -->
<!-- </plugin> -->
<!-- </plugins> -->
<!-- </build> -->
<!-- <build> -->
<!-- <plugins> -->
<!-- <plugin> -->
<!-- <groupId>org.springframework.boot</groupId> -->
<!-- <artifactId>spring-boot-maven-plugin</artifactId> -->
<!-- </plugin> -->
<!-- </plugins> -->
<!-- </build> -->
</project>