Create Java project with Maven archetype hello-world-plugin

Skeleton of a Jenkins plugin with a POM and an example build step.

Create a Java Project by archetype hello-world-plugin with Command Line:

mvn archetype:generate   -DgroupId="com.mycompany.app"   -DartifactId="my-app-id"   -DgroupId="My-groupId"   -Dpackage="My-package"   -DhostOnJenkinsGitHub="My-hostOnJenkinsGitHub"   -DarchetypeGroupId="io.jenkins.archetypes"   -DarchetypeArtifactId="hello-world-plugin"   -DarchetypeVersion="1.8"   -DinteractiveMode=false 

Required parameters for generate java project:

groupId
validationRegex: none
package
validationRegex: none
hostOnJenkinsGitHub
validationRegex: (true|false)

Details about maven archetype hello-world-plugin

GroupId

GroupId

io.jenkins.archetypes
ArtifactId

ArtifactId

hello-world-plugin
Version

Version

1.8
Type

Type

maven-archetype

How to add to project

mvn archetype:generate -DgroupId=<com.mycompany.app> -DartifactId=<my-app>  -DarchetypeGroupId=io.jenkins.archetypes -DarchetypeArtifactId=hello-world-plugin -DarchetypeVersion=1.8 -DinteractiveMode=false