Skip to content

SpongePowered/sponge-plugin-archetype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sponge Plugin Archetype

This is a simple archetype that generates the basic structure for a Sponge plugin.

The generated pom includes a release profile that generates gpg-signed jars for javadocs, binary, and sources as recommended in the guidelines for submitting projects to Sonatype OSS (However, this option is not currently available for Sponge plugins due to the fact that Sponge API is not currently hosted on Maven Central).

Properties

The archetype plugin accepts a few properties

Property Example value Description
groupId io.github.user The maven groupId, useful more for plugins used as dependencies, but should more or less match your package name
artifactId myproject The project id, also used as plugin id and name of the generated folder
version 1.0-SNAPSHOT The initial version for your plugin. Can (and should) be changed as development progresses
package io.github.user.myproject The package your plugin class will be generated in
githubProject user/repo The github project. If a value is specified that is not user/repo, issue tracking and SCM sections are added to the pom

These can be specified as arguments to Maven in the form -Dproperty=value

Usage

This archetype requires Maven 3 or newer. Invoke maven with the goal archetype:generate. Maven will prompt for any required paramaters, but optional parameters must be specified on the command line. Everything before -DgithubProject... is mandatory.

$ mvn archetype:generate -DarchetypeArtifactId=sponge-plugin-archetype -DarchetypeGroupId=org.spongepowered -DarchetypeRepository=http:https://repo.spongepowered.org/maven -DarchetypeVersion=1.2.1 -DgithubProject=waylon531/spongeparty

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages