Skip to content

Commit b1e66d1

Browse files
committed
fix: remove Maven prerequisites and unused release profile
- Replace prerequisites with maven-enforcer-plugin - Remove unused release profile activation - Clean up Maven build warnings
1 parent a253adf commit b1e66d1

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
if: startsWith(github.ref, 'refs/tags/')
2727
- name: Publish to GitHub Packages
2828
if: startsWith(github.ref, 'refs/tags/')
29-
run: mvn --batch-mode deploy -B --no-transfer-progress -DskipTests -P release
29+
run: mvn --batch-mode deploy -B --no-transfer-progress -DskipTests
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3232

pom.xml

+20-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@
4545
</developer>
4646
</developers>
4747

48-
<prerequisites>
49-
<maven>3.3.0</maven>
50-
</prerequisites>
51-
5248
<scm>
5349
<connection>scm:git:[email protected]:graphhopper/jsprit.git</connection>
5450
<developerConnection>scm:git:https://github.com/graphhopper/jsprit.git</developerConnection>
@@ -101,6 +97,26 @@
10197

10298

10399
<plugins>
100+
<plugin>
101+
<groupId>org.apache.maven.plugins</groupId>
102+
<artifactId>maven-enforcer-plugin</artifactId>
103+
<version>3.4.1</version>
104+
<executions>
105+
<execution>
106+
<id>enforce-maven</id>
107+
<goals>
108+
<goal>enforce</goal>
109+
</goals>
110+
<configuration>
111+
<rules>
112+
<requireMavenVersion>
113+
<version>[3.6.0,)</version>
114+
</requireMavenVersion>
115+
</rules>
116+
</configuration>
117+
</execution>
118+
</executions>
119+
</plugin>
104120
<plugin>
105121
<groupId>org.apache.maven.plugins</groupId>
106122
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)