|
use_archetype_from_eclipse
NOTEThis article imply that , at least, you have already installed eclipse at least 3.4.0 and the Maven Plugin Create a new SWIXML2 project using online archetypeWhat is an archetypesThe Archetype allows the user to create a Maven 2 project from an existing template called an archetype. Archetypes could be included within archetypes catalog that could be local or remote (for futher information see Maven Archetype Plugin. In this article we focused on local archetypes repository that is possible to use from eclipse ( dialog accesible from menu Windows/Preferences ) Create a local Archetypes catalogTo create a Local Archetypes catalog you have simply add the archetype-catalog.xml under the folder ~/.m2/ (i.e. local maven repository ). A catalog is an xml file with such content: <?xml version="1.0" encoding="UTF-8"?> <archetype-catalog> <archetypes> <archetype> [1] <groupId>given_group_id</groupId> [2] <artifactId>given_artifact_id</artifactId> [3] <version>the_version</version> [4] <repository>http://remote_maven_repo_host_name/remote_maven_repo_folder</repository> [5] <description>the_description</description> </archetype> ... </archetypes> </archetype-catalog>
Add Maven SWIXML2 remote archetype to local repositoryIn order to add the Maven GWTEXT archetype we have to add within archetype catalog the content shown below <?xml version="1.0" encoding="UTF-8"?><archetype-catalog>
<archetypes>
<archetype>
<groupId>org.swixml</groupId>
<artifactId>swixml-quickstart-archetype</artifactId>
<version>2.6-SNAPSHOT</version>
<description>Project to define a maven swixml-quickstart archetype</description>
</archetype>
</archetypes>
</archetype-catalog>Use new maven project wizard from eclipseOnce we have configured the SWIXML2 archetype in the local archetype catalog we are ready to create our first project integrated with maven. So let's run eclipse and select the menu File/new/Maven Project and we have to do the following steps
Application generated consists in a frame that contains two panels managed trought a tab.
| |||||