https://github.com/dgf/dm4-archetypes
DeepaMehta 4 :: Archetypes
https://github.com/dgf/dm4-archetypes
Last synced: 6 months ago
JSON representation
DeepaMehta 4 :: Archetypes
- Host: GitHub
- URL: https://github.com/dgf/dm4-archetypes
- Owner: dgf
- Created: 2013-05-10T14:26:45.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2014-04-15T09:17:51.000Z (about 12 years ago)
- Last Synced: 2025-01-23T06:11:29.869Z (over 1 year ago)
- Language: Java
- Size: 211 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DeepaMehta 4 Archetypes
A collection of archetypes to create
[DeepaMehta 4](http://github.com/jri/deepamehta)
specific [Maven](http://maven.apache.org) plugins.
## Requirements
only Maven 3.0.5 or higher
## Usage
### interactive artifact creation
The interactive mode just requires the catalog URL to start.
```sh
# start interactive creation mode
mvn archetype:generate -DarchetypeCatalog=http://m2.deepamehta.de
```
### create a plugin artifact from an archetype
In general you have to specify all required Maven artifact properties and the archetype to use.
```sh
# create artifact
mvn archetype:generate \
-DgroupId= \
-DartifactId= \
-Dversion= \
-DarchetypeCatalog=http://m2.deepamehta.de \
-DarchetypeGroupId=de.deepamehta.archetypes \
-DarchetypeArtifactId= \
-DarchetypeVersion=4.2 \
-DinteractiveMode=false
```
You can find a concrete example in each sub-module documentation.
### run DeepaMehta from within your artifact directory
Each plugin that is created from an archetype inherits the OSGi configuration of the DeepaMehta plugin parent.
This includes the complete setup of Pax Runner that enables your to start it directly
in the project with a single Maven call.
```sh
# locally install your plugin
cd
mvn install
# start a fresh DeepaMehta instance
mvn pax:run
```
To get a hot-deploy environment please have a look at the
[SetupforHot-Deployment](https://trac.deepamehta.de/wiki/PluginDevelopmentGuide#SetupforHot-Deployment)
section of the [PluginDevelopmentGuide](https://trac.deepamehta.de/wiki/PluginDevelopmentGuide)