Skip to content

Instantly share code, notes, and snippets.

@ssledz
Last active February 21, 2017 16:26
Show Gist options
  • Save ssledz/12c3c8b8e3c9d8ba221222a6b1a97642 to your computer and use it in GitHub Desktop.
Save ssledz/12c3c8b8e3c9d8ba221222a6b1a97642 to your computer and use it in GitHub Desktop.
# 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