- Support for scala if src/main/scala exists
- Support for kotlin if src/main/kotlin exists
- Support for junit5
- To enable junit5 profile add in your project a file
${basedir}/junit5.enable
- To enable junit5 profile add in your project a file
- Best to enable dependencies via
org.springframework.boot:*
- (!) Enabling profiles cannot be done by defining properties in your pom since they will not influence profile activation.
Include this pom as parent.
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.raisercostin</groupId>
<artifactId>maven-defaults-raisercostin</artifactId>
<version>1.24</version>
</parent>
...
</project>
Also add the repository where this is hosted pom.xml/project/repositories
that points to https://github.com/raisercostin/maven-repo
<repository>
<id>raisercostin-github</id>
<name>Repository at https://github.com/raisercostin/maven-repo</name>
<url>https://raw.githubusercontent.com/raisercostin/maven-repo/master/</url>
</repository>
To have an executable jar add this to your pom.xml/project/build
and a new file ${finalName}-myapp.jar
will be generated.
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>${main.class}</mainClass>
<classifier>myapp</classifier>
</configuration>
</plugin>
- To release
mvn release:prepare release:perform -DskipTests=true -Prelease -Darguments="-DskipTests=true -Prelease"
- To update versions for a profile
mvn versions:update-properties -Pjunit5
- See possible dependency updates
mvn versions:display-dependency-updates