Skip to content

Instantly share code, notes, and snippets.

@bh5k
Created May 14, 2022 17:29
Show Gist options
  • Select an option

  • Save bh5k/b42cffcbba3e2855a452c292f9258a5a to your computer and use it in GitHub Desktop.

Select an option

Save bh5k/b42cffcbba3e2855a452c292f9258a5a to your computer and use it in GitHub Desktop.
Maven Archetype for JDBC Project Setup
mvn archetype:generate -DarchetypeArtifactId=maven-archetype-simple -DarchetypeGroupId=org.apache.maven.archetypes -DinteractiveMode=false -DgroupId=com.pluralsight -DartifactId=library-app -Dpackage=com.pluralsight
@fae6068
Copy link

fae6068 commented Jul 17, 2023

this does not work, as you can see, it was installed, but we get the bizare error message
PS C:\Program Files\apache-maven-3.9.3> mvn archetype:generate -DarchetypeArtifactId=maven-archetype-simple -DarchetypeGroupId=org.apache.maven.archetypes -DinteractiveMode=false -DgroupId=com.pluralsight -DartifactId=library-app -Dpackage=com.pluralsight
mvn : The term 'mvn' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • mvn archetype:generate -DarchetypeArtifactId=maven-archetype-simple - ...
  •   + CategoryInfo          : ObjectNotFound: (mvn:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    

@bh5k
Copy link
Author

bh5k commented Jul 17, 2023 via email

@MOwed06
Copy link

MOwed06 commented Jan 7, 2026

The mvn archetype:generate command on my system generates sequence not described in the course (see below). Please advise how I should proceed. Thx.

3626: remote -> za.co.absa.hyperdrive:component-archetype_2.11 (-)
3627: remote -> za.co.absa.hyperdrive:component-archetype_2.12 (-)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 2309:
Choose org.apache.maven.archetypes:maven-archetype-quickstart version:
1: 1.0-alpha-1
2: 1.0-alpha-2
3: 1.0-alpha-3
4: 1.0-alpha-4
5: 1.0
6: 1.1
7: 1.3
8: 1.4
9: 1.5
Choose a number: 9: 9
[INFO] Using property: javaCompilerVersion = 17
[INFO] Using property: junitVersion = 5.11.0
Define value for property 'groupId':
Define value for property 'artifactId':
Define value for property 'version' 1.0-SNAPSHOT:
Define value for property 'package' :
[WARNING] Archetype is not fully configured

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment