Commit acfdd10d authored by marceteau's avatar marceteau
Browse files

ajout des blocs scm et distributionManagement

parent 6e537fa1
<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">
<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>fr.cines.archive</groupId>
<artifactId>archive-api</artifactId>
......@@ -52,10 +54,10 @@
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.2</version>
</dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.2</version>
</dependency>
<!-- Tests -->
<dependency>
......@@ -71,14 +73,21 @@
<version>4.12</version>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
<scope>test</scope>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>2.4</version>
</extension>
</extensions>
<finalName>${project.artifactId}-${xsd.namespace}-${project.version}</finalName>
<sourceDirectory>${project.basedir}/target/filtered-sources/java</sourceDirectory>
<resources>
......@@ -93,20 +102,21 @@
<targetPath>${project.basedir}/target/classes</targetPath>
</resource>
<resource>
<!-- les schemas sont intégrés au jar pour une utilisation ultérieure sans passer par une requête HTTP -->
<!-- les schemas sont intégrés au jar pour une utilisation ultérieure
sans passer par une requête HTTP -->
<directory>${project.basedir}/src/main/xsd</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${maven.compile.source}</source>
<target>${maven.compile.target}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${maven.compile.source}</source>
<target>${maven.compile.target}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
......@@ -239,7 +249,8 @@
</goals>
<configuration>
<tasks>
<!-- copy of the episode file, it is not included automatically in the jar, a bug in the plugin ? -->
<!-- copy of the episode file, it is not included automatically in
the jar, a bug in the plugin ? -->
<copy todir="${basedir}/target/classes/META-INF">
<fileset dir="${project.basedir}/src/main/xjc/META-INF" />
</copy>
......@@ -248,29 +259,30 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.basedir}/src/main/xjc</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.basedir}/src/main/xjc</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<!--This plugin's configuration is used to store Eclipse m2e settings
only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
......@@ -326,4 +338,20 @@
</properties>
</profile>
</profiles>
<distributionManagement>
<repository>
<id>cines-repo</id>
<name>cines-repository</name>
<url>sftp://maven.cines.fr/opt/maven/repo</url>
</repository>
</distributionManagement>
<scm>
<url>scm:git:https://dci-gitlab.cines.fr/dad/archive-api.git</url>
<connection>scm:git:https://dci-gitlab.cines.fr/dad/archive-api.git</connection>
<developerConnection>scm:git:https://dci-gitlab.cines.fr/dad/archive-api.git</developerConnection>
<tag>HEAD</tag>
</scm>
</project>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment