Skip to content

Commit b15aef7

Browse files
committed
Fix Maven systemPath warnings: use install plugin instead of system scope for local jars
1 parent 586d487 commit b15aef7

1 file changed

Lines changed: 126 additions & 18 deletions

File tree

core/pom.xml

Lines changed: 126 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
<groupId>cn.superiormc.ultimateshop</groupId>
1717
<artifactId>LegacyCodesCompatibility</artifactId>
1818
<version>1.0.0</version>
19-
<scope>system</scope>
20-
<systemPath>${project.basedir}/lib/LegacyCodesCompatibility.jar</systemPath>
19+
<scope>provided</scope>
2120
</dependency>
2221
<dependency>
2322
<groupId>net.kyori</groupId>
@@ -65,15 +64,13 @@
6564
<groupId>io.lumine</groupId>
6665
<artifactId>MythicLib</artifactId>
6766
<version>1.7.1</version>
68-
<scope>system</scope>
69-
<systemPath>${project.basedir}/lib/MythicLib-dist-1.7.1-20251205.145545-63.jar</systemPath>
67+
<scope>provided</scope>
7068
</dependency>
7169
<dependency>
7270
<groupId>net.Indyuce</groupId>
7371
<artifactId>MMOItems-API</artifactId>
7472
<version>6.10.1-SNAPSHOT</version>
75-
<scope>system</scope>
76-
<systemPath>${project.basedir}/lib/MMOItems-API-6.10.1-20251204.191337-43.jar</systemPath>
73+
<scope>provided</scope>
7774
</dependency>
7875
<dependency>
7976
<groupId>com.github.LoneDev6</groupId>
@@ -103,8 +100,7 @@
103100
<groupId>net.advancedplugins</groupId>
104101
<artifactId>AdvancedEnchantments</artifactId>
105102
<version>1.0.0</version>
106-
<scope>system</scope>
107-
<systemPath>${project.basedir}/lib/AdvancedEnchantmentsAPI.jar</systemPath>
103+
<scope>provided</scope>
108104
</dependency>
109105
<dependency>
110106
<groupId>net.luckperms</groupId>
@@ -206,8 +202,7 @@
206202
<groupId>me.qKing12</groupId>
207203
<artifactId>RoyaleEconomyAPI</artifactId>
208204
<version>1.0.0</version>
209-
<scope>system</scope>
210-
<systemPath>${project.basedir}/lib/RoyaleEconomyAPI.jar</systemPath>
205+
<scope>provided</scope>
211206
</dependency>
212207
<dependency>
213208
<groupId>com.github.Redempt</groupId>
@@ -231,15 +226,13 @@
231226
<groupId>com.ssomar.score</groupId>
232227
<artifactId>SCore</artifactId>
233228
<version>5.24.7.8</version>
234-
<scope>system</scope>
235-
<systemPath>${project.basedir}/lib/SCore-5.24.7.9.jar</systemPath>
229+
<scope>provided</scope>
236230
</dependency>
237231
<dependency>
238232
<groupId>com.ssomar.score</groupId>
239233
<artifactId>ExecutableItems</artifactId>
240234
<version>7.24.7.9</version>
241-
<scope>system</scope>
242-
<systemPath>${project.basedir}/lib/ExecutableItems-7.24.7.9.jar</systemPath>
235+
<scope>provided</scope>
243236
</dependency>
244237
<dependency>
245238
<groupId>org.json</groupId>
@@ -268,8 +261,7 @@
268261
<groupId>com.bekvon.bukkit.residence</groupId>
269262
<artifactId>Residence</artifactId>
270263
<version>5.1.6.2</version>
271-
<scope>system</scope>
272-
<systemPath>${project.basedir}/lib/Residence5.1.6.2.jar</systemPath>
264+
<scope>provided</scope>
273265
</dependency>
274266
<dependency>
275267
<groupId>com.github.GriefPrevention</groupId>
@@ -386,8 +378,7 @@
386378
<groupId>com.github.Zrips</groupId>
387379
<artifactId>CMI-API</artifactId>
388380
<version>9.7.14.3</version>
389-
<scope>system</scope>
390-
<systemPath>${project.basedir}/lib/CMI-API-9.7.14.3.jar</systemPath>
381+
<scope>provided</scope>
391382
</dependency>
392383
<dependency>
393384
<groupId>de.oliver</groupId>
@@ -404,6 +395,123 @@
404395
</dependencies>
405396
<build>
406397
<plugins>
398+
<plugin>
399+
<groupId>org.apache.maven.plugins</groupId>
400+
<artifactId>maven-install-plugin</artifactId>
401+
<version>3.1.2</version>
402+
<executions>
403+
<execution>
404+
<id>install-local-jars</id>
405+
<phase>initialize</phase>
406+
<goals>
407+
<goal>install-file</goal>
408+
</goals>
409+
<configuration>
410+
<file>${project.basedir}/lib/LegacyCodesCompatibility.jar</file>
411+
<groupId>cn.superiormc.ultimateshop</groupId>
412+
<artifactId>LegacyCodesCompatibility</artifactId>
413+
<version>1.0.0</version>
414+
<packaging>jar</packaging>
415+
</configuration>
416+
</execution>
417+
<execution>
418+
<id>install-mythiclib</id>
419+
<phase>initialize</phase>
420+
<goals><goal>install-file</goal></goals>
421+
<configuration>
422+
<file>${project.basedir}/lib/MythicLib-dist-1.7.1-20251205.145545-63.jar</file>
423+
<groupId>io.lumine</groupId>
424+
<artifactId>MythicLib</artifactId>
425+
<version>1.7.1</version>
426+
<packaging>jar</packaging>
427+
</configuration>
428+
</execution>
429+
<execution>
430+
<id>install-mmoitems</id>
431+
<phase>initialize</phase>
432+
<goals><goal>install-file</goal></goals>
433+
<configuration>
434+
<file>${project.basedir}/lib/MMOItems-API-6.10.1-20251204.191337-43.jar</file>
435+
<groupId>net.Indyuce</groupId>
436+
<artifactId>MMOItems-API</artifactId>
437+
<version>6.10.1-SNAPSHOT</version>
438+
<packaging>jar</packaging>
439+
</configuration>
440+
</execution>
441+
<execution>
442+
<id>install-advancedenchantments</id>
443+
<phase>initialize</phase>
444+
<goals><goal>install-file</goal></goals>
445+
<configuration>
446+
<file>${project.basedir}/lib/AdvancedEnchantmentsAPI.jar</file>
447+
<groupId>net.advancedplugins</groupId>
448+
<artifactId>AdvancedEnchantments</artifactId>
449+
<version>1.0.0</version>
450+
<packaging>jar</packaging>
451+
</configuration>
452+
</execution>
453+
<execution>
454+
<id>install-royaleeconomy</id>
455+
<phase>initialize</phase>
456+
<goals><goal>install-file</goal></goals>
457+
<configuration>
458+
<file>${project.basedir}/lib/RoyaleEconomyAPI.jar</file>
459+
<groupId>me.qKing12</groupId>
460+
<artifactId>RoyaleEconomyAPI</artifactId>
461+
<version>1.0.0</version>
462+
<packaging>jar</packaging>
463+
</configuration>
464+
</execution>
465+
<execution>
466+
<id>install-score</id>
467+
<phase>initialize</phase>
468+
<goals><goal>install-file</goal></goals>
469+
<configuration>
470+
<file>${project.basedir}/lib/SCore-5.24.7.9.jar</file>
471+
<groupId>com.ssomar.score</groupId>
472+
<artifactId>SCore</artifactId>
473+
<version>5.24.7.8</version>
474+
<packaging>jar</packaging>
475+
</configuration>
476+
</execution>
477+
<execution>
478+
<id>install-executableitems</id>
479+
<phase>initialize</phase>
480+
<goals><goal>install-file</goal></goals>
481+
<configuration>
482+
<file>${project.basedir}/lib/ExecutableItems-7.24.7.9.jar</file>
483+
<groupId>com.ssomar.score</groupId>
484+
<artifactId>ExecutableItems</artifactId>
485+
<version>7.24.7.9</version>
486+
<packaging>jar</packaging>
487+
</configuration>
488+
</execution>
489+
<execution>
490+
<id>install-residence</id>
491+
<phase>initialize</phase>
492+
<goals><goal>install-file</goal></goals>
493+
<configuration>
494+
<file>${project.basedir}/lib/Residence5.1.6.2.jar</file>
495+
<groupId>com.bekvon.bukkit.residence</groupId>
496+
<artifactId>Residence</artifactId>
497+
<version>5.1.6.2</version>
498+
<packaging>jar</packaging>
499+
</configuration>
500+
</execution>
501+
<execution>
502+
<id>install-cmi-api</id>
503+
<phase>initialize</phase>
504+
<goals><goal>install-file</goal></goals>
505+
<configuration>
506+
<file>${project.basedir}/lib/CMI-API-9.7.14.3.jar</file>
507+
<groupId>com.github.Zrips</groupId>
508+
<artifactId>CMI-API</artifactId>
509+
<version>9.7.14.3</version>
510+
<packaging>jar</packaging>
511+
</configuration>
512+
</execution>
513+
</executions>
514+
</plugin>
407515
<plugin>
408516
<groupId>org.apache.maven.plugins</groupId>
409517
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)