Skip to content

Commit d526177

Browse files
committed
🔧 Mise à jour du pom pour le déploiement
1 parent 31f8119 commit d526177

File tree

1 file changed

+95
-16
lines changed

1 file changed

+95
-16
lines changed

pom.xml

Lines changed: 95 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<modelVersion>4.0.0</modelVersion>
55

66
<groupId>com.github.devlab-umontp</groupId>
7-
<artifactId>api-java-edt</artifactId>
8-
<version>1.0.1</version>
7+
<artifactId>edt-iut-umontp</artifactId>
8+
<version>1.0.0</version>
99
<packaging>jar</packaging>
1010

11-
<name>api-java-edt</name>
11+
<name>emploi du temps IUT Montpellier</name>
1212
<description>Package Java permettant de récupérer l'emploi du temps des cours de l'IUT de Montpellier.</description>
13-
<url>https://github.com/</url>
13+
<url>https://github.com/DevLab-umontp/API-JAVA-EDT</url>
1414

1515
<properties>
1616
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -21,6 +21,18 @@
2121
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
2222
</properties>
2323

24+
<profiles>
25+
<profile>
26+
<id>github-deploy</id>
27+
<repositories>
28+
<repository>
29+
<id>github</id>
30+
<url>http://jarsm2.dyndns.dk</url>
31+
</repository>
32+
</repositories>
33+
</profile>
34+
</profiles>
35+
2436
<dependencyManagement>
2537
<dependencies>
2638
<dependency>
@@ -47,11 +59,36 @@
4759
</dependency>
4860
</dependencies>
4961

62+
<developers>
63+
<developer>
64+
<name>Emerick BIRON</name>
65+
<email>emerick.biron@gmail.com</email>
66+
<organization>com.github.devlab-umontp</organization>
67+
<organizationUrl>https://github.com/DevLab-umontp</organizationUrl>
68+
</developer>
69+
<developer>
70+
<name>Mathieu SOYSAL</name>
71+
<email>Mathieu.Soysal@outlook.fr</email>
72+
<organization>com.github.devlab-umontp</organization>
73+
<organizationUrl>https://github.com/DevLab-umontp</organizationUrl>
74+
</developer>
75+
</developers>
76+
77+
<scm>
78+
<connection>scm:git:git://github.com/DevLab-umontp/API-JAVA-EDT.git</connection>
79+
<developerConnection>scm:git:ssh://github.com:DevLab-umontp/API-JAVA-EDT.git</developerConnection>
80+
<url>http://github.com/DevLab-umontp/API-JAVA-EDT</url>
81+
</scm>
82+
5083
<distributionManagement>
84+
<snapshotRepository>
85+
<id>ossrh</id>
86+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
87+
</snapshotRepository>
5188
<repository>
52-
<id>github</id>
53-
<name>GitHub DevLab-umontp Apache Maven Packages</name>
54-
<url>https://maven.pkg.github.com/DevLab-umontp/API-JAVA-EDT</url>
89+
<id>ossrh</id>
90+
<name>Sonatype</name>
91+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
5592
</repository>
5693
</distributionManagement>
5794

@@ -70,15 +107,6 @@
70107
</includes>
71108
</configuration>
72109
</plugin>
73-
<plugin>
74-
<groupId>org.apache.maven.plugins</groupId>
75-
<artifactId>maven-javadoc-plugin</artifactId>
76-
<version>3.0.0</version>
77-
<configuration>
78-
<source>11</source>
79-
<target>11</target>
80-
</configuration>
81-
</plugin>
82110
<plugin>
83111
<groupId>org.apache.maven.plugins</groupId>
84112
<artifactId>maven-failsafe-plugin</artifactId>
@@ -93,6 +121,57 @@
93121
<target>11</target>
94122
</configuration>
95123
</plugin>
124+
<plugin>
125+
<groupId>org.sonatype.plugins</groupId>
126+
<artifactId>nexus-staging-maven-plugin</artifactId>
127+
<version>1.6.7</version>
128+
<extensions>true</extensions>
129+
<configuration>
130+
<serverId>ossrh</serverId>
131+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
132+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
133+
</configuration>
134+
</plugin>
135+
<plugin>
136+
<groupId>org.apache.maven.plugins</groupId>
137+
<artifactId>maven-source-plugin</artifactId>
138+
<version>2.2.1</version>
139+
<executions>
140+
<execution>
141+
<id>attach-sources</id>
142+
<goals>
143+
<goal>jar-no-fork</goal>
144+
</goals>
145+
</execution>
146+
</executions>
147+
</plugin>
148+
<plugin>
149+
<groupId>org.apache.maven.plugins</groupId>
150+
<artifactId>maven-javadoc-plugin</artifactId>
151+
<version>2.9.1</version>
152+
<executions>
153+
<execution>
154+
<id>attach-javadocs</id>
155+
<goals>
156+
<goal>jar</goal>
157+
</goals>
158+
</execution>
159+
</executions>
160+
</plugin>
161+
<plugin>
162+
<groupId>org.apache.maven.plugins</groupId>
163+
<artifactId>maven-gpg-plugin</artifactId>
164+
<version>1.5</version>
165+
<executions>
166+
<execution>
167+
<id>sign-artifacts</id>
168+
<phase>verify</phase>
169+
<goals>
170+
<goal>sign</goal>
171+
</goals>
172+
</execution>
173+
</executions>
174+
</plugin>
96175
</plugins>
97176
</pluginManagement>
98177
</build>

0 commit comments

Comments
 (0)