rwengr
2014-02-21 00:51:14 UTC
Geronimo 3.0.1, car-maven-plugin 3.0.1, maven 2.2, JDK 1.6_45 (employer
driven)
The basic problem I have is that I cannot get the car-maven-plugin to
generate a CAR file for Geronimo 3.0.1. As far as I can tell the plugin
boots the geronimo kernel to do the packaging. I believe the root cause of
my problem is that the kernel, in this context, cannot resolve dependencies.
*The question is: When initiated by the car-maven-plugin, how does the
dependency manager
[org.apache.geronimo.system.configuration.DependencyManager] resolve
dependencies? How does one correct deficiencies?*
Once I solve this problem, I should be able to solve the other problem which
is the geronimo/car-maven-plugin cannot find the jar file of my module. I
now create my module as a bundle using maven-bundle plugin.
Details:
The first hint of a problem is the following:
[org.apache.geronimo.gbean.runtime.GBeanSingleReference] : Started
geronimo/packaging/fixed/car?j2eeType=GBean,name=DependencyManager
[org.apache.geronimo.system.configuration.DependencyManager] : did not find
geronimo-plugin.xml for bundle org.eclipse.osgi_3.7.1.R37x_v20110808-1106
[0]
[org.apache.geronimo.system.configuration.DependencyManager] : fail to
resovle artifact from the bundle location System Bundle
[org.apache.geronimo.system.configuration.DependencyManager] : did not find
geronimo-plugin.xml for bundle org.eclipse.osgi_3.7.1.R37x_v20110808-1106
[0]
[org.apache.geronimo.gbean.runtime.GBeanInstance] : Registered gbean
geronimo/packaging/fixed/car?j2eeType=GBean,name=DependencyManager as osgi
service under interfaces [org.apache.geronimo.gbean.GBeanLifecycle,
org.apache.geronimo.system.configuration.DependencyManager,
java.lang.Object, org.osgi.framework.BundleListener,
org.osgi.framework.SynchronousBundleListener, java.util.EventListener] with
properties
{osgi.jndi.service.name=geronimo/packaging/GBean/DependencyManager,
org.apache.geronimo.abstractName=geronimo/packaging/fixed/car?j2eeType=GBean,name=DependencyManager}
But, the following in my pom.xml does not fix it. Yes, I tried it without
scope provided. If you look at the error message, there is a "_" instead of
a "-" between version and rest of the bundle name for org.osgi.eclipse.
<dependency>
<groupId>org.eclipse.osgi</groupId>
<artifactId>org.eclipse.osgi</artifactId>
<version>3.7.1.R37x_v20110808_1106</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
Does the maven repository need some "bundle" work? Does car-maven-plugin
only work under Eclipse?
My process (maven) is:
1) Create jar file containing gbean for module.
2) Package this jar file as bundle.
3) Create car file (includes deployment plan) and install it in my local
maven repository.
Then, I should be able to deploy the module.
Thanks in advance.
--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/DependencyManager-and-car-maven-plugin-problem-tp3987646.html
Sent from the Users mailing list archive at Nabble.com.
driven)
The basic problem I have is that I cannot get the car-maven-plugin to
generate a CAR file for Geronimo 3.0.1. As far as I can tell the plugin
boots the geronimo kernel to do the packaging. I believe the root cause of
my problem is that the kernel, in this context, cannot resolve dependencies.
*The question is: When initiated by the car-maven-plugin, how does the
dependency manager
[org.apache.geronimo.system.configuration.DependencyManager] resolve
dependencies? How does one correct deficiencies?*
Once I solve this problem, I should be able to solve the other problem which
is the geronimo/car-maven-plugin cannot find the jar file of my module. I
now create my module as a bundle using maven-bundle plugin.
Details:
The first hint of a problem is the following:
[org.apache.geronimo.gbean.runtime.GBeanSingleReference] : Started
geronimo/packaging/fixed/car?j2eeType=GBean,name=DependencyManager
[org.apache.geronimo.system.configuration.DependencyManager] : did not find
geronimo-plugin.xml for bundle org.eclipse.osgi_3.7.1.R37x_v20110808-1106
[0]
[org.apache.geronimo.system.configuration.DependencyManager] : fail to
resovle artifact from the bundle location System Bundle
[org.apache.geronimo.system.configuration.DependencyManager] : did not find
geronimo-plugin.xml for bundle org.eclipse.osgi_3.7.1.R37x_v20110808-1106
[0]
[org.apache.geronimo.gbean.runtime.GBeanInstance] : Registered gbean
geronimo/packaging/fixed/car?j2eeType=GBean,name=DependencyManager as osgi
service under interfaces [org.apache.geronimo.gbean.GBeanLifecycle,
org.apache.geronimo.system.configuration.DependencyManager,
java.lang.Object, org.osgi.framework.BundleListener,
org.osgi.framework.SynchronousBundleListener, java.util.EventListener] with
properties
{osgi.jndi.service.name=geronimo/packaging/GBean/DependencyManager,
org.apache.geronimo.abstractName=geronimo/packaging/fixed/car?j2eeType=GBean,name=DependencyManager}
But, the following in my pom.xml does not fix it. Yes, I tried it without
scope provided. If you look at the error message, there is a "_" instead of
a "-" between version and rest of the bundle name for org.osgi.eclipse.
<dependency>
<groupId>org.eclipse.osgi</groupId>
<artifactId>org.eclipse.osgi</artifactId>
<version>3.7.1.R37x_v20110808_1106</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
Does the maven repository need some "bundle" work? Does car-maven-plugin
only work under Eclipse?
My process (maven) is:
1) Create jar file containing gbean for module.
2) Package this jar file as bundle.
3) Create car file (includes deployment plan) and install it in my local
maven repository.
Then, I should be able to deploy the module.
Thanks in advance.
--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/DependencyManager-and-car-maven-plugin-problem-tp3987646.html
Sent from the Users mailing list archive at Nabble.com.