This is an automated email from the ASF dual-hosted git repository. hboutemy pushed a commit to branch deploy in repository https://gitbox.apache.org/repos/asf/maven-studies.git
The following commit(s) were added to refs/heads/deploy by this push: new f719cedc5 add description to steps f719cedc5 is described below commit f719cedc56f18535ffd375b855d9d27ac81e3d4d Author: Hervé Boutemy <hbout...@apache.org> AuthorDate: Wed Jul 16 12:54:40 2025 +0200 add description to steps --- README.md | 42 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index bd370af45..d4deee7b5 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,41 @@ -mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-j2ee-simple -DarchetypeVersion=1.5 +# init content -mvn clean deploy -DaltDeploymentRepository=local::file:target/deploy +https://maven.apache.org/archetypes/maven-archetype-j2ee-simple/ -# intentionally SNAPSHOT, no GPG signature and no javadoc + mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-j2ee-simple -DarchetypeVersion=1.5 -mvn clean deploy -DaltDeploymentRepository=local::file:target/deploy -DinstallAtEnd -DdeployAtEnd +# deploy to local directory `target/deploy` -tar cvf deploy-bundle.tar -C target/deploy org -deploy with UI + mvn clean deploy -DaltDeploymentRepository=local::file:target/deploy + # intentionally no GPG signature and no javadoc -mvn clean deploy -Pcentral-publishing +# deploy atEnd -mvn clean deploy -Pnjord -DaltDeploymentRepository=id::njord: + mvn clean deploy -DaltDeploymentRepository=local::file:target/deploy -DinstallAtEnd -DdeployAtEnd + +# manual upload to Maven Central Portal + + tar cvf deploy-bundle.tar -C target/deploy org + +then deploy with UI + +# deploy with Sonatype Maven plugin + +https://central.sonatype.org/publish/publish-portal-maven/ + + mvn clean deploy -Pcentral-publishing + +with a fake server defined in `~/.m2/settings.xml` + + <server> + <id>publish-to-central</id> + <username>fake</username> + <password>fake</password> + </server> + +# deploy with njord extension to Maven Resolver + +https://maveniverse.eu/docs/njord/ + + mvn clean deploy -Pnjord -DaltDeploymentRepository=id::njord: