Configuring dependency POM files that emulate the classpath of specific WebSphere runtime environments
If you plan to use target Project
Object Model (POM) files that emulate the classpath of WebSphere runtime
environments, you can configure your maven project dependencies and
perform the steps required to use those dependencies.
About this task
Target POM files are available that represent the server runtime environment
for compilation purposes. Target POM files are available for the following runtimes, and you can add
a corresponding fragment as a dependency:
![[8.5.5.2 or later]](../images/ng_v8552.gif)
- WebSphere Application Server Version
8.5.5
<dependency> <groupId>com.ibm.tools.target</groupId> <artifactId>was</artifactId> <version>8.5.5</version> <type>pom</type> <scope>provided</scope> </dependency>
- WebSphere Application Server Version
8.5.0.2
<dependency> <groupId>com.ibm.tools.target</groupId> <artifactId>was</artifactId> <version>8.5.0</version> <type>pom</type> <scope>provided</scope> </dependency>
[Liberty] WebSphere Application Server Liberty Version 8.5.x (Includes all 8.5 maintenance releases)
<dependency> <groupId>com.ibm.tools.target</groupId> <artifactId>was-liberty</artifactId> <version>LATEST</version> <type>pom</type> <scope>provided</scope> </dependency>
[Liberty] Optional dependency for compilation against 3rd party implementation libraries, such as Open JPA, Wink, and Jackson
<dependency> <groupId>com.ibm.tools.target</groupId> <artifactId>was-liberty-impl</artifactId> <version>LATEST</version> <type>pom</type> <scope>provided</scope> </dependency>
- WebSphere Portal Version
8.0
<dependency> <groupId>com.ibm.tools.target</groupId> <artifactId>portal</artifactId> <version>8.0.0</version> <type>pom</type> <scope>provided</scope> </dependency>
The dependencies for WebSphere Application Server Liberty Version
8.5.x target POM do not require any further configuration. For all remaining POM targets, you are
required to use launch configuration scripts that copy runtime libraries to the local Maven
repository.
Procedure
What to do next
For example: mvn install -f
"<IBMSharedFolder>\plugins\com.ibm.etools.maven.javaee.core\resources\scripts\WAS
8.5.5 Plugins Installer\pom.xml" -DserverInstallationFolder="C:\Program
Files\IBM\WebSphere\Appserver"