...
A sample project has been created to aid in IT test creation. It can be retrieved using svn hereor viewed with your browser here.
Sample IT Archetype
This project has also been converted into an archetype to make it even easier to use. (NOTE: This is currently not deployed and bugs prevent this from being usable right now. Use the Sample IT project for now and skip this section -Brianf 8/8/07)
Using ArchetypeNG To create a sample from the archetype
...
The archetypeNG plugin maintains a list of known archetype groups for interactive prompting. The next step is to add the IT group:
ARCHETYPE-82: You must manually create archetype.xml in your $HOME/.m2 folder and it must minimally contain the following:
Panel |
---|
<?xml version="1.0" encoding="UTF-8"?><archetype-registry> |
No Format |
---|
mvn archetypeng:add-groups -Dgroups=org.apache.maven.its |
Successful output:
No Format |
---|
E:\svn\Maven\atest>mvn archetypeng:add-groups -Dgroups=org.apache.maven.its Using maven.home=c:\Program Files\maven2\bin\\.. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetypeng'. [INFO] ---------------------------------------------------------------------------- [INFO] Building Maven Default Project [INFO] task-segment: [archetypeng:add-groups] (aggregator-style) [INFO] ---------------------------------------------------------------------------- [INFO] [archetypeng:add-groups] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Wed Aug 08 21:58:57 EDT 2007 [INFO] Final Memory: 5M/10M [INFO] ------------------------------------------------------------------------ |
Now you can create the archetype project:
No Format |
---|
mvn archetype:create
|
ARCHETYPE-83: prevents us from continuing with this story...
How you should execute for integration test to validate
...