Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This project has also been converted into an archetype to make it even easier to use. (NOTE: This is currently not deployed -Brianf 8/8/07)

 Using Using ArchetypeNG To create a sample from the archetype

Wiki Markup
It would be helpful to review the archetypeNG plugin tutorial here: \[insert url of site when it lands at apache\] 

The maven-archetypeng-plugin is currently a snapshot. You will need to add the snapshot repository to your settings to be able to retreive the plugin and the archetype (when it gets deployed).

No Format
<settings>
...
  <profiles>
    <profile>
       <id>maven-snapshots</id> id>
       <repositories> <repositories>
         <repository> <repository>
           <id>Maven Snapshots</id>
	   <url>http://people.apache.org/repo/m2-snapshot-repository</url>
	   <snapshots>
	     <enabled>true</enabled>
	   </snapshots>
	   <releases>
	     <enabled>false</enabled>
            </releases>
	</repository>
      <repositories> <repositories>
    <profile>
  <profile> 
  <profiles> <profiles>
  <!--need to activate my profile unless I want to type 'mvn -Pmaven-snapshots' all the time-->
  <activeProfiles> <activeProfiles>
     <activeProfile>maven-snapshots</activeProfile>
   </activeProfiles>
</activeProfiles> 
</settings> settings>

The archetypeNG plugin maintains a list of known archetype groups for interactive prompting. The next step is to add the IT group:

: 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>
  <ArchetypeGroups>
    <ArchetypeGroup>org.apache.maven.its</ArchetypeGroup>
  </ArchetypeGroups>
</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] ------------------------------------------------------------------------


How you should execute for integration test to validate

How to submit your integration test

...