Here a message about my last work this night about issues #412 and #672 :)
Here a new "pre-release" version of:
- maven-archetype-restlet-basic
for #412 : Add Maven archetype -
http://restlet.tigris.org/issues/show_bug.cgi?id=412And a plugin for launching Restlet Component :
- restlet-maven-plugin
for #672 : Add better Maven integration -
http://restlet.tigris.org/issues/show_bug.cgi?id=672-----------------------
Step 1
-----------------------
To use them :
unzip restlet-maven-plugin.zip
cd restlet-maven-plugin
mvn install
unzip maven-archetype-restlet-basic.zip
cd maven-archetype-restlet-basic
mvn install
-----------------------
Step 2
-----------------------
When it's done, you can now create a new project in any directory (for
example: "/home/jy/workspace") :
cd /home/jy/workspace
mvn archetype:generate -DarchetypeCatalog=local
Follow the wizard :
- choose "maven-archetype-restlet-basic" archetype
- Define groupId (for example: com.foo)
- Define artifactId (for example: bar)
- Define version (for example: 1.0-SNAPSHOT)
- Define base package name (for example: com.foo)
- Confirm those values
Now, compile the project and launch it
cd bar
mvn install restlet:start
Test in your browser at:
http://localhost/hello-> The result page should display:
hello, world
-----------------------
NB.
-----------------------
When plugin and archetype will be on the "Maven Repository":
- The step 1 will be obsolete
- In Step 2, I think (aka -> to test) : replace
mvn archetype:generate -DarchetypeCatalog=local
by
mvn archetype:generate
There is an issue :
Restlet component doesn't launch with the command
mvn restlet:start
insteed of
mvn install restlet:start
-----------------------
As always, any comments, correction or enhancements are welcomed ! :)
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=2369059