Skip to content

Commit

Permalink
Add local build profile to pom.xml
Browse files Browse the repository at this point in the history
A new local build profile has been introduced to the pom.xml file. This profile, when activated via the env.LOCAL_BUILD property, will utilize the maven-shade-plugin and output the built artifact to a specified directory. This change provides flexibility in configuring build environments, streamlining the build process for local development.
  • Loading branch information
SmartGecko44 committed Dec 2, 2023
1 parent 9e15b2a commit 952e9df
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,40 @@
</resources>
</build>

<profiles>
<!-- Local build profile -->
<profile>
<id>local</id>
<activation>
<property>
<name>env.LOCAL_BUILD</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<!-- Adjust the output directory for local builds -->
<outputDirectory>/Users/gecko/Server 1.12.2 Spigot/plugins</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<repositories>
<repository>
<id>spigotmc-repo</id>
Expand Down

0 comments on commit 952e9df

Please sign in to comment.