A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Ant, Maven and Other Build Tools
maven packaging is not including dependent jars
Joined: Feb 10, 2011
Apr 17, 2012 10:20:22
MY APPLICATION STRUCTURE :My project (let us say AAA) which has packaging as JAR. project AAA is added dependent for web project BBB and BBB inturn module for CCC which is an EAR.
while doing AAA project
build, maven is not including the dependent jars as part of packaging, and deployment eventually fails when i deploy the ear package.
1) how to make common libraries share among parent and child projects so that avoid duplicates
2) how to include individual project libraries (which is not common) during maven build
Joined: May 14, 2008
Apr 17, 2012 13:23:48
I think that what you are looking for is the Assembly plugin (
). It will create a JAR file that contains all of the classes from dependencies. The Jar plugin only includes classes that the project compiled.
JBoss In Action
I agree. Here's the link:
subject: maven packaging is not including dependent jars
package structure during design
maven / web inf
Weblogic Workshop 9.2 Building EAR
Netbeans 5.x Libraries...
maven: the war directory structure
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014