java - Dynamic WebProject import another project and dependencies -
i have dynamic web project call "project a" , regular java project call "project b" in eclipse. have added project b b project going project properties properties -> deployment assembly -> add -> project
. works , adds jar "project b.jar" project a/web-inf/lib folder. external jar files configured on "project b" not included in "project b.jar". additionally have gone project b -> properties -> java build path -> order , export
, have checked required dependencies "project b" , still not include them in jar. how can eclipse include these jars in "project b.jar" file.
if need know i'm using eclipse indigo , not using mavin project 1 jar need. in advance.
you should turn project b faceted form (go project properties, "project facets" -> "convert faceted form..."). facets required "java" , "utility module". if remember correctly, @ point eclipse gives warning additional jar dependencies may missing @ runtime of project a, giving quick fix option add them dependencies. add attributes
element .classpath file of project b each referenced jar file, example this:
<classpathentry exported="true" kind="lib" path="lib/commons-beanutils-1.9.2.jar"> <attributes> <attribute name="org.eclipse.jst.component.dependency" value="../"/> </attributes> </classpathentry>
jars don't have included attribute instead:
<attributes> <attribute name="org.eclipse.jst.component.nondependency" value=""/> </attributes>
if don't said warnings, might able add attributes
element directly. note: eclipse luna, know @ least in kepler worked this.
Comments
Post a Comment