| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Generates a minimal Maven project for Java with
Change the jdkVersion property to change the JDK version. Default value is currently 25.
Change the javaPreviewFeatures property to no or n if you want to disable preview features. Default value is yes, which means this archetype will generate a pom.xml file that allows you to use the newest preview features of Java.
Change the values of DgroupId, -DartifactId and -Dversion to match your own project details. These properties are required. archetypeGroupId, archetypeArtifactId and archetypeVersion must remain as is.
mvn archetype:generate -DarchetypeGroupId=no.dervis \
-DarchetypeArtifactId=java-starter \
-DarchetypeVersion=1.0.14 \
-DgroupId=org.mygroup \
-DartifactId=demoapp \
-Dversion=1.0.0 \
-DjdkVersion=25 \
-DjavaPreviewFeatures=yes \
-DinteractiveMode=false
https://central.sonatype.com/artifact/no.dervis/java-starter/1.0.14
If a release started with the Maven Release Plugin fails or needs to be reverted, you can run the provided rollback script:
Notes:
You can run the release using the Maven Release Plugin via the provided script:
Dry run runs mvn release:prepare -DdryRun=true so you can verify versions, SCM configuration, and checks without modifying your repository. When it completes successfully, run the script again without --dry-run to perform the actual release.
https://dev.to/selmaguedidi/publishing-your-java-library-to-maven-central-15in
| Back | FazBrowse Home | New Git URL |