Files
SCM-Manager/docs/howto-create-a-plugin.md

40 lines
1.2 KiB
Markdown
Raw Normal View History

2020-03-31 17:28:30 +02:00
# How to create your own plugin
2020-03-09 08:01:43 +01:00
### Software Requirements
- JDK 1.7 or higher
2020-03-31 17:28:30 +02:00
([download](http://www.oracle.com/technetwork/java/index.html))
- Maven 3 or higher ([download](http://maven.apache.org/))
2020-03-09 08:01:43 +01:00
### Create plugin
2020-03-31 17:28:30 +02:00
```bash
mvn archetype:generate\
-DarchetypeGroupId=sonia.scm.maven\
-DarchetypeArtifactId=scm-plugin-archetype\
-DarchetypeVersion=1.60\
-DarchetypeRepository=http://maven.scm-manager.org/nexus/content/groups/public/
```
2020-03-09 08:01:43 +01:00
### Test the plugin
2020-03-31 17:28:30 +02:00
```bash
mvn scmp:run
```
2020-03-09 08:01:43 +01:00
### Samples
2020-03-31 17:28:30 +02:00
- [Hello World](https://bitbucket.org/sdorra/scm-manager/src/1.x/scm-samples/scm-sample-hello/)
- [Authentication Plugin](https://bitbucket.org/sdorra/scm-manager/src/1.x/scm-samples/scm-sample-auth/)
2020-03-09 08:01:43 +01:00
### Further reading
2020-03-31 17:28:30 +02:00
- [Injection framework - Google Guice](http://code.google.com/p/google-guice/)
- [Restful WebService - Jersey](http://jersey.java.net/nonav/documentation/latest/user-guide.html)
- [ XML transformation - JAXB](http://jaxb.java.net/guide/)
- [User interface - Ext JS](http://www.sencha.com/products/extjs3/)
2020-03-09 08:01:43 +01:00
### Questions/Help
If you have questions or you need help, please write to the mailing
list: <https://groups.google.com/forum/#!forum/scmmanager>