In order to configure GEP to publish Maven dependencies as shared library, you will need to install Maven Integration for Eclipse. To install m2eclipse plugin, follow the instructions at given at http://m2eclipse.codehaus.org/. The configuration steps are illustrated using a web application and adding a dependency on commons-dbcp library.
<br><%= org.apache.commons.dbcp.DriverConnectionFactory.class.getName() %> |
Make sure org.apache.commons.dbcp.DriverConnectionFactory class is resolved with no type not resolved errors. |
In Source tab, a dependency on geronimo/sharedlib//car would be added as below:
This is due to a current bug in Geronimo Deployment Plan Editors. Change <sys:groupId> from geronimo to org.apache.geronimo.configs and press Ctrl + S to save the changes. |
Use the steps below to verify that maven dependency is indeed added as a shared library:
Manifest-Version: 1.0 Class-Path: file:/E:/m2repo/commons-pool/commons-pool/1.3/commons-pool -1.3.jar file:/E:/m2repo/commons-dbcp/commons-dbcp/1.3-SNAPSHOT/commo ns-dbcp-1.3-SNAPSHOT.jar |
The file path used in the manifest Class-Path may differ based on the location of your maven2 repository. |