Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Stardust/Knowledge Base/Build and Change Management/Maven/Basic Setup"

m (Maven Archetype)
Line 1: Line 1:
 
== Maven Archetype  ==
 
== Maven Archetype  ==
  
Starting from version 6.0.3 the ''ipp-releases'' Maven repository ([https://infinity.sungard.com/repository/ipp-releases/ https://infinity.sungard.com/repository/ipp-releases]) contains a Maven archetype<br>  
+
Starting from version 6.0.3 the ''ipp-libs'' Maven repository ([https://infinity.sungard.com/repository/ipp-libs/ https://infinity.sungard.com/repository/ipp-libs]) contains a Maven archetype<br>  
  
 
(https://infinity.sungard.com/repository/ipp-releases/archetype-catalog.xml) that can be use to create the following Maven projects:  
 
(https://infinity.sungard.com/repository/ipp-releases/archetype-catalog.xml) that can be use to create the following Maven projects:  
Line 22: Line 22:
 
-DarchetypeGroupId=com.infinity.bpm.archetypes -DarchetypeArtifactId=ipp-archetype-tc6-ipp-portal-war -DarchetypeVersion=6.0.3  
 
-DarchetypeGroupId=com.infinity.bpm.archetypes -DarchetypeArtifactId=ipp-archetype-tc6-ipp-portal-war -DarchetypeVersion=6.0.3  
 
-DgroupId=org.eclipse.stardust.test -DartifactId=stardust-portal-war -Dversion=1.0-SNAPSHOT -Dgoals=dependency:unpack
 
-DgroupId=org.eclipse.stardust.test -DartifactId=stardust-portal-war -Dversion=1.0-SNAPSHOT -Dgoals=dependency:unpack
</pre>
+
</pre>
 +
==== Repository Configuration  ====
 +
 
 +
Make sure the repository is configured in your Maven settings.xml: <source lang="XML">
 +
<repositories>
 +
...
 +
  <repository>
 +
    <id>ipp-libs</id>
 +
    <url>https://infinity.sungard.com/repository/ipp-libs/</url>
 +
  </repository>
 +
...
 +
</repositories>
 +
</source>
 +
 
 +
and the settings.xml also configures the correct credentials for the repository: <source lang="XML">
 +
...
 +
  <server>
 +
    <id>ipp-libs</id>
 +
    <username>user.name</username>
 +
    <password>clearTextPasswordOrPasswordHashFromRepository</password>
 +
  </server>
 +
...
 +
</servers>
 +
</source>
 +
 
 +
If the repository is not configured in your settings.xml then you have to supply the repository URL as a parameter to the mvn command:
 +
<pre>-DarchetypeRepository=https://infinity.sungard.com/repository/ipp-libs</pre>

Revision as of 06:31, 10 November 2011

Maven Archetype

Starting from version 6.0.3 the ipp-libs Maven repository (https://infinity.sungard.com/repository/ipp-libs) contains a Maven archetype

(https://infinity.sungard.com/repository/ipp-releases/archetype-catalog.xml) that can be use to create the following Maven projects:

  • Engine runtime EAR project for JBOSS 5.1, EJB deplyoment, artefactId=ipp-archetype-jb51-ipp-ear
  • Engine runtime WAR project for JBOSS 5.1, Spring deplyoment, artefactId=ipp-archetype-jb51-ipp-portal-war
  • Reporting runtime WAR project for JBOSS 5.1, artefactId=ipp-archetype-jb51-reporting-war
  • Engine runtime WAR project for Tomcat 6, Spring deployment, artefactId=ipp-archetype-tc6-ipp-portal-war
  • Reporting runtime WAR project for Tomcat 6, artefactId=ipp-archetype-tc6-reporting-war
  • Console command line tool client environment project, Spring client, artefactId=ipp-archetype-console-spring-client
  • Sysconsole command lient tool client environment project (direct database access via JDBC), artefactId=ipp-archetype-sysconsole-client

For other application servers the example project coming closest to the target deployment can be adjusted. Additional archetypes for other deployment scenarios will be added soon.

It is important to execute the goal dependency:unpack  after the project has been created. This can be automated by using the -Dgoals parameter when the project is created.

Example Usage

mvn archetype:generate 
-DarchetypeGroupId=com.infinity.bpm.archetypes -DarchetypeArtifactId=ipp-archetype-tc6-ipp-portal-war -DarchetypeVersion=6.0.3 
-DgroupId=org.eclipse.stardust.test -DartifactId=stardust-portal-war -Dversion=1.0-SNAPSHOT -Dgoals=dependency:unpack

Repository Configuration

Make sure the repository is configured in your Maven settings.xml:
<repositories>
...
  <repository>
    <id>ipp-libs</id>
    <url>https://infinity.sungard.com/repository/ipp-libs/</url>
  </repository>
...
</repositories>
and the settings.xml also configures the correct credentials for the repository:
... 
  <server>
    <id>ipp-libs</id>
    <username>user.name</username>
    <password>clearTextPasswordOrPasswordHashFromRepository</password>
  </server>
...
</servers>

If the repository is not configured in your settings.xml then you have to supply the repository URL as a parameter to the mvn command:

-DarchetypeRepository=https://infinity.sungard.com/repository/ipp-libs

Back to the top