Skip to content

Commit

Permalink
Merge pull request #54 from charphi/feature-jars
Browse files Browse the repository at this point in the history
Add copy-jars script
  • Loading branch information
TanguyBarthelemy authored Jul 12, 2024
2 parents c59cbb5 + 4f81c32 commit 9d93030
Showing 1 changed file with 125 additions and 0 deletions.
125 changes: 125 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.github.rjdverse.rjd3x13</groupId>
<artifactId>rjd3x13</artifactId>
<version>ignore_version</version>
<packaging>pom</packaging>

<description>Usage: mvn -Pcopy-jars</description>

<properties>
<jdplus-main.version>3.2.2</jdplus-main.version>
</properties>

<dependencies>
<dependency>
<groupId>eu.europa.ec.joinup.sat</groupId>
<artifactId>jdplus-x13-base-r</artifactId>
<version>${jdplus-main.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>jdplus-sa-base-api</artifactId>
</exclusion>
<exclusion>
<groupId>*</groupId>
<artifactId>jdplus-sa-base-core</artifactId>
</exclusion>
<exclusion>
<groupId>*</groupId>
<artifactId>jdplus-sa-base-protobuf</artifactId>
</exclusion>
<exclusion>
<groupId>*</groupId>
<artifactId>jdplus-toolkit-base-r</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>

<build>
<directory>${project.basedir}/inst/java</directory>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.simplify4u.plugins</groupId>
<artifactId>pgpverify-maven-plugin</artifactId>
<version>1.17.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.6.1</version>
</plugin>
</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<id>copy-jars</id>
<build>
<defaultGoal>clean package</defaultGoal>
<plugins>
<plugin>
<groupId>org.simplify4u.plugins</groupId>
<artifactId>pgpverify-maven-plugin</artifactId>
<executions>
<execution>
<id>check-signatures</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<verifySnapshots>true</verifySnapshots>
<failWeakSignature>true</failWeakSignature>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-jars</id>
<goals>
<goal>copy-dependencies</goal>
</goals>
<phase>package</phase>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<!-- Custom repositories: order matters! -->
<!-- Maven Central is enforced at top to prevent dependabot to use snapshots as releases -->
<repositories>
<repository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>jdemetra-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</project>

0 comments on commit 9d93030

Please sign in to comment.