diff options
Diffstat (limited to 'pom.xml')
| -rw-r--r-- | pom.xml | 137 |
1 files changed, 136 insertions, 1 deletions
@@ -1,4 +1,23 @@ <?xml version="1.0" encoding="UTF-8"?> + +<!-- + MAVEN COMMAND REFERENCE FOR PERSONAL PROJECTS + + [ DEVELOPMENT ] + - Standard JAR: mvn clean package + - Fat (Shaded) JAR: mvn clean package (Generates *-fat.jar) + - Native Binary: mvn clean package -Pnative + + [ TESTING ] + - Unit Tests: mvn test + - Integration Tests: mvn failsafe:integration-test failsafe:verify + - Full Verification: mvn verify (Runs all tests + coverage reports) + + [ RELEASES & UPDATES ] + - Update version: mvn release:prepare + - Check Updates: mvn versions:display-dependency-updates +--> + <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> @@ -6,12 +25,128 @@ <groupId>no.eliashaugsbakk.kompilator</groupId> <artifactId>kompilator</artifactId> - <version>1.0-SNAPSHOT</version> + <version>0.0.1-SNAPSHOT</version> <properties> <maven.compiler.source>27</maven.compiler.source> <maven.compiler.target>27</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + + + <junit.version>6.1.3</junit.version> + + <maven-compiler.version>3.14.1</maven-compiler.version> + <maven-surefire.version>3.5.4</maven-surefire.version> + <maven-failsafe.version>3.5.6</maven-failsafe.version> + <maven-shade.version>3.6.0</maven-shade.version> + <maven-release.version>3.1.1</maven-release.version> + <versions-maven.version>2.18.0</versions-maven.version> </properties> + <dependencies> + <!-- Testing Frameworks --> + <dependency> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter</artifactId> + <version>${junit.version}</version> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>${maven-compiler.version}</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>${maven-surefire.version}</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-failsafe-plugin</artifactId> + <version>${maven-failsafe.version}</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>${maven-shade.version}</version> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <shadedArtifactAttached>true</shadedArtifactAttached> + <shadedClassifierName>fat</shadedClassifierName> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-release-plugin</artifactId> + <version>${maven-release.version}</version> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>versions-maven-plugin</artifactId> + <version>${versions-maven.version}</version> + </plugin> + </plugins> + </pluginManagement> + + <plugins> + <!-- Java Compiler Setup --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <release>27</release> + <encoding>UTF-8</encoding> + </configuration> + </plugin> + + <!-- Unit Tests (*Test.java) --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + </plugin> + + <!-- Integration Tests (*IT.java) --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-failsafe-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>integration-test</goal> + <goal>verify</goal> + </goals> + </execution> + </executions> + </plugin> + + <!-- Automated Versioning / Git Tagging --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-release-plugin</artifactId> + <configuration> + <tagNameFormat>v@{project.version}</tagNameFormat> + <autoVersionSubmodules>true</autoVersionSubmodules> + </configuration> + </plugin> + + <!-- Dependency Management utility --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>versions-maven-plugin</artifactId> + </plugin> + </plugins> + </build> </project> |
