Hi,
just noticed a strange behaviour ( maven 2.1.0)
I wanted to create a pom (joined) project to reference Websphere Application
Server jars as system dependencies as I'm not completly sure that IBM
license authorize jar share on an artifact manager. (if I was sure about
license, I put all the jars on the Artifact Manager and that's all )
I wanted to put a property for defining the "root" of the websphere
installation in my settings file (activated in a default profile)
<properties>
<was61home>C:/Program Files/IBM/SDP70/runtimes/base_v61</was61home>
</properties>
and each dependency is referenced like that:
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>com.ibm.mqjms</artifactId>
<version>6.1</version>
<scope>system</scope>
<systemPath>${was61home}/lib/WMQ/java/lib/com.ibm.mqjms.jar</systemPath>
</dependency>
mvn install of the pom worked.
When I want to use the pom as a dependency:
like
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>runtime</artifactId>
<version>6.1</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
It doesn't resolve the ${was61home} placeholder even if the profile
containing the property is activated ( mvn help:activeprofiles is my
witness)
But if I add the -Dwas61home=C:/Program Files/IBM/SDP70/runtimes/base_v61 on
the command line it works....
As adding the -Dxxx parameter on the command line is not quite confortable I
wanted to know if it's an issue or a normal behaviour?
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>runtime</artifactId>
<version>6.1</version>
<packaging>pom</packaging>
<description>Library POM for the WebSphere v6.1 runtime. you need a ${was61home} property defined in your settings!!</description>
<dependencies>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>com.ibm.mq</artifactId>
<version>6.1</version>
<scope>system</scope>
<systemPath>${was61home}/lib/WMQ/java/lib/com.ibm.mq.jar</systemPath>
</dependency>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>com.ibm.mqjms</artifactId>
<version>6.1</version>
<scope>system</scope>
<systemPath>${was61home}/lib/WMQ/java/lib/com.ibm.mqjms.jar</systemPath>
</dependency>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>bootstrap</artifactId>
<version>6.1</version>
<scope>system</scope>
<systemPath>${was61home}/lib/bootstrap.jar</systemPath>
</dependency>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>j2ee</artifactId>
<version>6.1</version>
<scope>system</scope>
<systemPath>${was61home}/lib/j2ee.jar</systemPath>
</dependency>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>mail-impl</artifactId>
<version>6.1</version>
<scope>system</scope>
<systemPath>${was61home}/lib/mail-impl.jar</systemPath>
</dependency>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>marshall</artifactId>
<version>6.1</version>
<scope>system</scope>
<systemPath>${was61home}/lib/marshall.jar</systemPath>
</dependency>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>com.ibm.ws.ejbportable_6.1.0</artifactId>
<version>6.1</version>
<scope>system</scope>
<systemPath>${was61home}/plugins/com.ibm.ws.ejbportable_6.1.0.jar</systemPath>
</dependency>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>com.ibm.ws.emf_2.1.0</artifactId>
<version>6.1</version>
<scope>system</scope>
<systemPath>${was61home}/plugins/com.ibm.ws.emf_2.1.0.jar</systemPath>
</dependency>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>com.ibm.ws.portletcontainer_2.0.0</artifactId>
<version>6.1</version>
<scope>system</scope>
<systemPath>${was61home}/plugins/com.ibm.ws.portletcontainer_2.0.0.jar</systemPath>
</dependency>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>com.ibm.ws.runtime.dist_6.1.0</artifactId>
<version>6.1</version>
<scope>system</scope>
<systemPath>${was61home}/plugins/com.ibm.ws.runtime.dist_6.1.0.jar</systemPath>
</dependency>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>com.ibm.ws.runtime_6.1.0</artifactId>
<version>6.1</version>
<scope>system</scope>
<systemPath>${was61home}/plugins/com.ibm.ws.runtime_6.1.0.jar</systemPath>
</dependency>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>com.ibm.ws.sib.server_2.0.0</artifactId>
<version>6.1</version>
<scope>system</scope>
<systemPath>${was61home}/plugins/com.ibm.ws.sib.server_2.0.0.jar</systemPath>
</dependency>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>com.ibm.ws.sip.container_6.1.0</artifactId>
<version>6.1</version>
<scope>system</scope>
<systemPath>${was61home}/plugins/com.ibm.ws.sip.container_6.1.0.jar</systemPath>
</dependency>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>com.ibm.ws.wccm_6.1.0</artifactId>
<version>6.1</version>
<scope>system</scope>
<systemPath>${was61home}/plugins/com.ibm.ws.wccm_6.1.0.jar</systemPath>
</dependency>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>com.ibm.ws.webcontainer_2.0.0</artifactId>
<version>6.1</version>
<scope>system</scope>
<systemPath>${was61home}/plugins/com.ibm.ws.webcontainer_2.0.0.jar</systemPath>
</dependency>
</dependencies>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]