Skip to content

Commit

Permalink
Merge pull request #32 from charphi/feature-jars
Browse files Browse the repository at this point in the history
Add copy-jars script
  • Loading branch information
ChristianeHofer authored Jun 7, 2024
2 parents 3bade70 + f8b9941 commit d78acbc
Showing 1 changed file with 129 additions and 0 deletions.
129 changes: 129 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<?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.rjd3highfreq</groupId>
<artifactId>rjd3highfreq</artifactId>
<version>ignore_version</version>
<packaging>pom</packaging>

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

<properties>
<jdplus-incubator.version>2.1.1-SNAPSHOT</jdplus-incubator.version>
</properties>

<dependencies>
<dependency>
<groupId>eu.europa.ec.joinup.sat</groupId>
<artifactId>jdplus-highfreq-base-r</artifactId>
<version>${jdplus-incubator.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>jdplus-toolkit-base-api</artifactId>
</exclusion>
<exclusion>
<groupId>*</groupId>
<artifactId>jdplus-toolkit-base-core</artifactId>
</exclusion>
<exclusion>
<groupId>*</groupId>
<artifactId>jdplus-toolkit-base-r</artifactId>
</exclusion>
<exclusion>
<groupId>*</groupId>
<artifactId>jdplus-advancedsa-base-api</artifactId>
</exclusion>
<exclusion>
<groupId>*</groupId>
<artifactId>jdplus-advancedsa-base-core</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 d78acbc

Please sign in to comment.