Skip to content

Instantly share code, notes, and snippets.

@bh5k
Created May 14, 2022 17:29
Show Gist options
  • Save bh5k/b42cffcbba3e2855a452c292f9258a5a to your computer and use it in GitHub Desktop.
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

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