Hi all,
I am working with WebLogic Portal 9.2 and Maven for the first time. I'm looking
at using Maven instead of Ant for the build system as the dependency system is
intriguing however I am having a problem getting my WLP dependencies setup. WLP
has the notion of shared J2EE libraries where an EAR or a WAR contain various
J2EE artifacts that can be referenced at compile and runtime. This system is
described in more detail here
http://e-docs.bea.com/workshop/docs92/ws_platform/ideuserguide/conJARLibraryDependencies.html
I have a small utility jar project I am trying to setup in Maven that uses a
shared j2ee library called p13n-app-lib.ear which contains the jar I need to
compile against. My hope was to simply create a dependency against the ear and
have it work. I tried installing the ear using the mvn install:install-file
command with package set to ear, however when I compile the application the
dependency doesn't seem to be picked up at all from pom.xml and I get compile
errors complaining about the missing WLP classes. Does Maven support shared
j2ee libraries as a dependency for compilation?
I used this command to install the EAR:
mvn install:install-file
-Dfile=%BEA_HOME%\weblogic92\common\deployable-libraries\p13n-app-lib.ear
-DgroupId=weblogic-portal -DartifactId=p13n-app-lib -Dversion=9.2.0
-Dpackaging=ear -DgeneratePom=true
My dependency in pom.xml appears as follows:
<dependency>
<groupId>weblogic-portal</groupId>
<artifactId>p13n-app-lib</artifactId>
<version>9.2.0</version>
<type>ear</type>
<scope>compile</scope>
</dependency>
Thanks,
Gerald