Main Page

From Maven Archetypes (inactive) Wiki
Jump to: navigation, search

Contents

Local Installation

  • Check out the archetype's sources from the SVN repository.
  • Install it
mvn install
  • Create an entry in your ~/.m2/archetype-catalog.xml for the archetype.

i.E.

<?xml version="1.0" encoding="UTF-8"?>
<archetype-catalog>
	<archetypes>
		<archetype>
			<groupId>org.evolvis.maven</groupId>
			<artifactId>ejb-junit-archetype</artifactId>
			<version>1.0</version>
			<description>Creates a testable EJB Project</description>
		</archetype>
	</archetypes>
</archetype-catalog>
  • Create a new project by selecting your archetype from the list
mvn archetype:generate -DarchetypeCatalog=local

List of Archetypes

ejb-junit-archetype

This archetype creates a testable environment for EJB3 / JPA projects based on

  • OpenEJB
  • JPA / Hibernate
  • JUnit

Catalog-Entry

<?xml version="1.0" encoding="UTF-8"?>
<archetype-catalog>
	<archetypes>
		<archetype>
			<groupId>org.evolvis.maven</groupId>
			<artifactId>ejb-junit-archetype</artifactId>
			<version>1.0</version>
			<description>Creates a testable EJB Project</description>
		</archetype>
	</archetypes>
</archetype-catalog>

ejb-junit-with-database-archetype

see at EJB3-Junittest

Catalog-Entry

<?xml version="1.0" encoding="UTF-8"?>
<archetype-catalog>
	<archetypes>
		<archetype>
			<groupId>org.evolvis.maven</groupId>
			<artifactId>ejb-junit-with-database-archetype</artifactId>
			<version>1.0</version>
			<description>Creates a testable EJB Project</description>
		</archetype>
	</archetypes>
</archetype-catalog>