Create Java project with Maven archetype common-archetype

Archetype that might be used by IT managers in order to create the common packages of custom IT. groupId, artifactId, package, version, companyMainGroupId, companyMainArtifactId, companyMainVersion, company, companyUrl have to be defined in archetype execution. By convention, we recommend to call this module common-"yourcompany".

Create a Java Project by archetype common-archetype with Command Line:

mvn archetype:generate   -DgroupId="com.mycompany.app"   -DartifactId="my-app-id"   -DgroupId="My-groupId"   -DartifactId="My-artifactId"   -Dpackage="My-package"   -Dversion="My-version"   -DcompanyMainGroupId="My-companyMainGroupId"   -DcompanyMainArtifactId="My-companyMainArtifactId"   -DcompanyMainVersion="My-companyMainVersion"   -Dcompany="My-company"   -DcompanyUrl="My-companyUrl"   -DarchetypeGroupId="net.sf.itcb.archetype"   -DarchetypeArtifactId="common-archetype"   -DarchetypeVersion="0.0.1"   -DinteractiveMode=false 

Required parameters for generate java project:

groupId
validationRegex: none
artifactId
validationRegex: none
package
validationRegex: none
version
validationRegex: none
companyMainGroupId
validationRegex: none
companyMainArtifactId
validationRegex: none
companyMainVersion
validationRegex: none
company
validationRegex: none
companyUrl
validationRegex: none

Generated Project modules

  • ${rootArtifactId}-business
  • ${rootArtifactId}-business-impl
  • ${rootArtifactId}-server
  • ${rootArtifactId}-client
  • ${rootArtifactId}-portlet

Details about maven archetype common-archetype

License

License

GroupId

GroupId

net.sf.itcb.archetype
ArtifactId

ArtifactId

common-archetype
Version

Version

0.0.1
Type

Type

maven-archetype
Description

Description

common-archetype
Archetype that might be used by IT managers in order to create the common packages of custom IT. groupId, artifactId, package, version, companyMainGroupId, companyMainArtifactId, companyMainVersion, company, companyUrl have to be defined in archetype execution. By convention, we recommend to call this module common-"yourcompany".
Project URL

Project URL

http://itcb.sourceforge.net
Project Organization

Project Organization

SourceForge ITCB

How to add to project

mvn archetype:generate -DgroupId=<com.mycompany.app> -DartifactId=<my-app>  -DarchetypeGroupId=net.sf.itcb.archetype -DarchetypeArtifactId=common-archetype -DarchetypeVersion=0.0.1 -DinteractiveMode=false

Dependencies

compile (2)

Group / Artifact Type Version
javax.xml.bind : jaxb-api jar 2.0
com.sun.xml.bind : jaxb-impl jar 2.0.3

provided (1)

Group / Artifact Type Version
javax.persistence : persistence-api jar 1.0

test (2)

Group / Artifact Type Version
junit : junit jar 4.7
org.springframework : spring-test jar 3.0.5.RELEASE

Project Modules

There are no modules declared in this project.