Skip to content

Commit 35aa042

Browse files
committed
Use CI friendly version, setup repositories
1 parent 3794911 commit 35aa042

1 file changed

Lines changed: 65 additions & 7 deletions

File tree

pom.xml

Lines changed: 65 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@
66

77
<groupId>com.goebl</groupId>
88
<artifactId>simplify</artifactId>
9-
<version>1.0.1-SNAPSHOT</version>
9+
<version>${revision}</version>
1010
<packaging>jar</packaging>
1111

1212
<name>simplify-java</name>
1313
<description>2D/3D polyline simplification</description>
1414
<url>https://github.com/hgoebl/simplify-java</url>
1515

1616
<properties>
17+
<revision>1.0.1-SNAPSHOT</revision>
1718
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1819
<maven.compiler.release>17</maven.compiler.release>
20+
<additionalDeploymentRepositoryId>additional-deployment-repository</additionalDeploymentRepositoryId>
1921
</properties>
2022

2123
<dependencies>
@@ -51,14 +53,12 @@
5153

5254
<distributionManagement>
5355
<snapshotRepository>
54-
<id>sonatype-nexus-snapshots</id>
55-
<name>Sonatype Nexus snapshot repository</name>
56-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
56+
<id>ias-snapshots</id>
57+
<url>https://maven.mangoautomation.net/repository/ias-snapshot/</url>
5758
</snapshotRepository>
5859
<repository>
59-
<id>sonatype-nexus-staging</id>
60-
<name>Sonatype Nexus release repository</name>
61-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
60+
<id>ias-releases</id>
61+
<url>https://maven.mangoautomation.net/repository/ias-release/</url>
6262
</repository>
6363
</distributionManagement>
6464

@@ -74,6 +74,11 @@
7474
<artifactId>maven-compiler-plugin</artifactId>
7575
<version>3.14.0</version>
7676
</plugin>
77+
<plugin>
78+
<groupId>org.apache.maven.plugins</groupId>
79+
<artifactId>maven-deploy-plugin</artifactId>
80+
<version>3.1.4</version>
81+
</plugin>
7782
<plugin>
7883
<groupId>org.apache.maven.plugins</groupId>
7984
<artifactId>maven-source-plugin</artifactId>
@@ -107,6 +112,32 @@
107112
</execution>
108113
</executions>
109114
</plugin>
115+
<plugin>
116+
<groupId>org.codehaus.mojo</groupId>
117+
<artifactId>flatten-maven-plugin</artifactId>
118+
<version>1.7.0</version>
119+
<configuration>
120+
<updatePomFile>true</updatePomFile>
121+
<flattenMode>resolveCiFriendliesOnly</flattenMode>
122+
<outputDirectory>${project.build.directory}</outputDirectory>
123+
</configuration>
124+
<executions>
125+
<execution>
126+
<id>flatten</id>
127+
<phase>process-resources</phase>
128+
<goals>
129+
<goal>flatten</goal>
130+
</goals>
131+
</execution>
132+
<execution>
133+
<id>flatten.clean</id>
134+
<phase>clean</phase>
135+
<goals>
136+
<goal>clean</goal>
137+
</goals>
138+
</execution>
139+
</executions>
140+
</plugin>
110141
</plugins>
111142
</build>
112143

@@ -137,6 +168,33 @@
137168
</plugins>
138169
</build>
139170
</profile>
171+
<profile>
172+
<id>additional-deployment-repository</id>
173+
<activation>
174+
<property>
175+
<name>additionalDeploymentRepositoryUrl</name>
176+
</property>
177+
</activation>
178+
<build>
179+
<plugins>
180+
<plugin>
181+
<groupId>org.apache.maven.plugins</groupId>
182+
<artifactId>maven-deploy-plugin</artifactId>
183+
<executions>
184+
<execution>
185+
<id>additional-deployment-repository</id>
186+
<goals>
187+
<goal>deploy</goal>
188+
</goals>
189+
<configuration>
190+
<altDeploymentRepository>${additionalDeploymentRepositoryId}::${additionalDeploymentRepositoryUrl}</altDeploymentRepository>
191+
</configuration>
192+
</execution>
193+
</executions>
194+
</plugin>
195+
</plugins>
196+
</build>
197+
</profile>
140198
</profiles>
141199

142200
</project>

0 commit comments

Comments
 (0)