Last active
February 21, 2017 16:26
-
-
Save ssledz/12c3c8b8e3c9d8ba221222a6b1a97642 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# creating uber jar | |
mvn assembly:single -DdescriptorId=jar-with-dependencies | |
# adding main class to manifest | |
echo "Main-Class: pl.bpo.red.model.CliEntryPoint" > manifest.local; | |
jar ufm app.jar manifest.local | |
# generate new project | |
mvn -B archetype:generate \ | |
-DarchetypeGroupId=org.apache.maven.archetypes \ | |
-DgroupId=com.mycompany.app \ | |
-DarchetypeArtifactId=maven-archetype-quickstart \ | |
-DartifactId=my-app | |
# skip tests during installing | |
mvn clean install -DskipTests | |
# update pom versions | |
mvn --batch-mode release:update-versions -DautoVersionSubmodules=true -DdevelopmentVersion=1.2.0-SNAPSHOT | |
# releasing project | |
mvn release:prepare -DdryRun=true -DautoVersionSubmodules=true | |
mvn release:clean | |
mvn release:prepare -DautoVersionSubmodules=true | |
mvn release:perform -Darguments="-DskipTests" | |
# force update deps | |
mvn clean install -U | |
# run only tests mark as FastTests | |
mvn test test -Dgroups=pl.softech.test.FastTests | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment