It's a great way to create maven projects from the command line. Archetype is a maven project templating toolkit.Now, let's try to understand what is happening behind the scene of this command. We can skip this using the -DinteractiveMode=false argument. If you look at the output, the maven is confirming project configurations. project created from Old (1.x) Archetype in dir: /Users/pankaj/Desktop/maven-examples/java-app Parameter: basedir, Value: /Users/pankaj/Desktop/maven-examples Using following parameters for creating project from Old (1.x) Archetype: maven-archetype-quickstart:1.0 Using property: artifactId = java-appĭefine value for property 'version' 1.0-SNAPSHOT: : Generating project in Interactive modeĭownloaded from central: (703 B at 1.3 kB/s)ĭownloaded from central: (1.5 kB at 2.8 kB/s)ĭownloaded from central: (1.3 kB at 2.5 kB/s)ĭownloaded from central: (4.3 kB at 7.9 kB/s) maven-archetype-plugin:3.0.1:generate (default-cli) standalone-pom. <<< maven-archetype-plugin:3.0.1:generate (default-cli) < generate-sources standalone-pom <<< > maven-archetype-plugin:3.0.1:generate (default-cli) > generate-sources standalone-pom > $ mvn archetype:generate -DgroupId= -DartifactId=java-app -DarchetypeArtifactId=maven-archetype-quickstart Then, run the following command to create a simple java project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |