Skip to content

windndust/Archetype-Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Instructions to use archetype

  • Clone repo to local environment
  • To install archetype project into your local maven repository and archetype catalog, run:
mvn install

Command with placeholders to generate project:

mvn archetype:generate \
-DarchetypeGroupId=org.mneidinger.maven.archetype -DarchetypeArtifactId=Archetype-Discord-Bot -DarchetypeVersion=0.0.1-SNAPSHOT \
-DgroupId=[insert groupId] -DartifactId=[insert artifactId] -Dversion=[insert version] \
-Dgoals=compiler.compile<br/>
  • The "operand" archetype:generate references the archetype plugin and executes the generate goal which uses the archetype project to generate a maven project
  • The second line specifies the archetype project to use and has to key into an entry in the archetype-catalog.xml
  • The third line specifies the information of your project
  • The fourth line will compile the new project after creating it. It's optional and not necessary to create projects from an archetype

Example Command to generate project:

mvn archetype:generate \
-DarchetypeGroupId=org.mneidinger.maven.archetype -DarchetypeArtifactId=Archetype-Discord-Bot -DarchetypeVersion=0.0.1-SNAPSHOT \
-DgroupId=org.discordbot -DartifactId=DiscordBot -Dversion=0.0.1-SNAPSHOT \
-Dgoals=compiler:compile

Notes

This archetype project forces the entered artifactId to all lowercase when injecting into the created project's pom.xml
It does leave the artifactId unmanipulated when injecting the value into the name element of the pom.xml

<groupId>${groupId}</groupId>
<artifactId>${artifactId.toLowerCase()}</artifactId>
<version>${version}</version>
<packaging>jar</packaging>
<name>${artifactId}</name>

About

A maven archetype that generates a bare minimum Discord bot using Spring Boot and Discord4J

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages