|
1 | 1 | ci.maven.tools |
2 | 2 | ============== |
3 | 3 |
|
4 | | -Collection of Maven archetypes and target pom's for developing Java EE and OSGi applications targetting the WebSphere Application Server Liberty Profile within the WDT Eclipse IDE. |
| 4 | +ci.maven.tools is a collection of Maven archetypes and target POMs for developing Java EE and OSGi applications targeting WebSphere Application Server Liberty within the WDT Eclipse IDE. |
5 | 5 |
|
6 | | -## Maven Target Pom's |
| 6 | +##Projects |
7 | 7 |
|
8 | | -### liberty-target |
| 8 | +There are provided two different projects to be used in Maven environments: [Maven Target POMs](#maven-target-poms), a set of convenience POMs that groups WebSphere Liberty dependencies; and [Maven archetypes](#archetypes), to create new Maven projects with recommended configurations and dependencies targeting WebSphere Liberty. |
9 | 9 |
|
10 | | -#### Usage: Add the following dependency to your application pom.xml to represent the Liberty and spec API libraries |
| 10 | +### [Maven Target POM's](/docs/target-poms.md) |
11 | 11 |
|
12 | | - <dependency> |
13 | | - <groupId>net.wasdev.maven.tools</groupId> |
14 | | - <artifactId>liberty-target</artifactId> |
15 | | - <version>LATEST</version> |
16 | | - <type>pom</type> |
17 | | - <scope>provided</scope> |
18 | | - </dependency> |
19 | | - |
20 | | -### liberty-target-impl |
| 12 | +Project containing convenience POMs that groups a set of WebSphere Liberty APIs/SPIs, java specifications and third-party dependencies provided by the runtime. |
21 | 13 |
|
22 | | -#### Usage: Add the following dependency to your application pom.xml to represent the Liberty 3rd Party implementation API libraries |
| 14 | +Following are the provided modules for this project: |
23 | 15 |
|
24 | | - <dependency> |
25 | | - <groupId>net.wasdev.maven.tools</groupId> |
26 | | - <artifactId>liberty-target-impl</artifactId> |
27 | | - <version>LATEST</version> |
28 | | - <type>pom</type> |
29 | | - <scope>provided</scope> |
30 | | - </dependency> |
| 16 | +* [liberty-target](/docs/target-poms.md#liberty-target) - Creates a POM that provides references to all modules (APIs/SPIs, java specifications and third-party implementations). |
| 17 | +* [liberty-apis](/docs/target-poms.md#liberty-apis) - Creates a POM with Liberty API dependencies. |
| 18 | +* [liberty-spis](/docs/target-poms.md#liberty-spis) - Creates a POM with Liberty SPI dependencies. |
| 19 | +* [java-specs](/docs/target-poms.md#java-specs) - Creates a POM with Java specification dependencies that a Liberty installation provides in the `dev/api/spec` and `/dev/spi/spec` folders. |
| 20 | +* [third-party](/docs/target-poms.md#third-party) - Creates a POM with third-party dependencies that a Liberty installation provides in the `dev/api/third-party` and `/dev/spi/third-party` folders. |
31 | 21 |
|
32 | | -## Archetypes |
| 22 | +### [Archetypes](/docs/archetypes.md) |
| 23 | + |
| 24 | +Project with Maven archetypes for creating new Java EE and OSGi projects targeting WebSphere Liberty within the WDT Eclipse IDE. |
| 25 | + |
| 26 | +#### Java EE archetypes |
| 27 | + |
| 28 | +Archetype | Project type |
| 29 | +----------------------- | ------------ |
| 30 | +ejb-jee5-liberty | EJB 3.0 project |
| 31 | +ejb-jee6-liberty | EJB 3.1 project |
| 32 | +ejb-jee7-liberty | EJB 3.2 project |
| 33 | +webapp-jee5-liberty | Web 2.5 project |
| 34 | +webapp-jee6-liberty | Web 3.0 project |
| 35 | +webapp-jee7-liberty | Web 3.1 project |
| 36 | + |
| 37 | +#### OSGi Enterprise archetypes |
| 38 | + |
| 39 | +Archetype | Project type |
| 40 | +----------------------- | ------------ |
| 41 | +osgi-ejb30-liberty | OSGi EJB 3.0 project |
| 42 | +osgi-ejb31-liberty | OSGi EJB 3.1 project |
| 43 | +osgi-liberty | OSGi project |
| 44 | +osgi-web25-liberty | OSGi Web 2.5 project |
| 45 | +osgi-web30-liberty | OSGi Web 3.0 project |
| 46 | +osgi-web31-liberty | OSGi Web 3.1 project |
| 47 | + |
| 48 | +##How to build |
| 49 | + |
| 50 | +To build and install the whole project in your local Maven repository, locate in the root folder and then execute one of the following commands in a Maven terminal. |
| 51 | + |
| 52 | +* `mvn install`: installs the archetypes and target POMs into your local Maven repository. |
| 53 | +* `mvn install -DskipTests`: installs the archetypes and target POMs into your local Maven repository without executing testing. |
33 | 54 |
|
34 | | -### liberty-ejb31-archetype - Creates EJB 3.1 Module Project targeting Liberty profile |
35 | | -### liberty-ejb32-archetype - Creates EJB 3.2 Module Project targeting Liberty profile |
36 | | -### liberty-osgi-ejb30-archetype - Creates OSGi with EJB 3.0 Bundle Project targeting Liberty profile |
37 | | -### liberty-osgi-ejb31-archetype - Creates OSGi with EJB 3.1 Bundle Project targeting Liberty profile |
38 | | -### liberty-osgi-web30-archetype - Creates OSGi with Servlet 3.0 Web Application Bundle Project targeting Liberty profile |
39 | | -### liberty-osgi-web31-archetype - Creates OSGi with Servlet 3.1 Web Application Bundle Project targeting Liberty profile |
40 | | -### liberty-web30-archetype - Creates Servlet 3.0 Web Application Module Project targeting Liberty profile |
41 | | -### liberty-web31-archetype - Creates Servlet 3.1 Web Application Module Project targeting Liberty profile |
| 55 | +Notice: |
42 | 56 |
|
| 57 | +* Require of Apache Maven 2.x or later. |
| 58 | +* There's an Apache Maven issue related to archetype testing in Maven 3.3.x versions. You can workaround this, by creating a copy of "mvn.cmd" named "mvn.bat" in MAVEN_HOME/bin. For more details, see: https://issues.apache.org/jira/browse/ARCHETYPE-488 |
0 commit comments