[xwiki-users] Component with 3rd-party dependency
Hi, I'm writing a component with a dependency on a 3rd-party JAR. I've installed the JAR in my local repository and added the dependency in the component's POM, and everything builds fine. However, when I add the component to my XWiki install (on the same machine) and try to start it up, I get a NoClassDefFound error. What is the standard way to write a component with 3rd-party dependencies? Thanks! ~David -- View this message in context: http://n2.nabble.com/Component-with-3rd-party-dependency-tp3818195p3818195.h... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi David, breeden wrote:
Hi,
I'm writing a component with a dependency on a 3rd-party JAR. I've installed the JAR in my local repository and added the dependency in the component's POM, and everything builds fine. However, when I add the component to my XWiki install (on the same machine) and try to start it up, I get a NoClassDefFound error.
What is the standard way to write a component with 3rd-party dependencies?
Checkout the Maven Assembly Plugin ( http://maven.apache.org/plugins/maven-assembly-plugin/usage.html ) . They say something about a self-contained jar (jar-with-dependencies). Also, search the web, you might have to configure the maven jar plugin to properly generate the classpath in the manifest file. Hope this helps, Marius
Thanks!
~David
On Tue, Oct 13, 2009 at 21:12, breeden <[email protected]> wrote:
Hi,
I'm writing a component with a dependency on a 3rd-party JAR. I've installed the JAR in my local repository and added the dependency in the component's POM, and everything builds fine. However, when I add the component to my XWiki install (on the same machine) and try to start it up, I get a NoClassDefFound error.
What is the standard way to write a component with 3rd-party dependencies?
You are supposed to put the dependencies jar files to the XWiki install also.
Thanks!
~David -- View this message in context: http://n2.nabble.com/Component-with-3rd-party-dependency-tp3818195p3818195.h... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
Got it. Thanks! ~David tmortagne (via Nabble) wrote:
On Tue, Oct 13, 2009 at 21:12, breeden <[hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3818654&i=0>> wrote:
Hi,
I'm writing a component with a dependency on a 3rd-party JAR. I've installed the JAR in my local repository and added the dependency in
the
component's POM, and everything builds fine. However, when I add the component to my XWiki install (on the same machine) and try to start it up, I get a NoClassDefFound error.
What is the standard way to write a component with 3rd-party dependencies?
You are supposed to put the dependencies jar files to the XWiki install also.
Thanks!
~David -- View this message in context:
http://n2.nabble.com/Component-with-3rd-party-dependency-tp3818195p3818195.h...
Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3818654&i=1> http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne _______________________________________________ users mailing list [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3818654&i=2> http://lists.xwiki.org/mailman/listinfo/users
------------------------------------------------------------------------ View message @ http://n2.nabble.com/Component-with-3rd-party-dependency-tp3818195p3818654.h...
To unsubscribe from Component with 3rd-party dependency, click here < (link removed) >.
-- View this message in context: http://n2.nabble.com/Component-with-3rd-party-dependency-tp3818195p3818729.h... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
breeden -
Marius Dumitru Florea -
Thomas Mortagne