dependencies - Maven - System Jar provoded by Websphere Library -


i have 2 questions regarding dependencies:

q1: have j2ee.jar on unix box (provided websphere library). how refer in ant:

<path id="was.lib">  <fileset dir="${was.home}/lib">   <include name="**/j2ee.jar" />  </fileset> </path> <property name="was.lib" refid="was.lib" /> <path id="myproj.lib">  <!-- path project's jar's --> </path> <property name="myproj.lib" refid="myproj.lib" /> <path id="myproj.classpath">  <path refid="myproj.lib" />  <path refid="was.lib" /> </path> 

i not sure, how define dependency in maven refers system path?

q2: have jar castor-1.3.1.jar , castor-1.3.1-core.jar in project. when define dependency both of them, maven picks one, since version different. want both of them included. how have defined them:

<dependency>   <groupid>org.codehaus.castor</groupid>   <artifactid>castor</artifactid>   <version>1.3.1</version> </dependency> <dependency>   <groupid>org.codehaus.castor</groupid>   <artifactid>castor</artifactid>   <version>1.3.1-core</version> </dependency> 

please me regarding same.

for j2ee.jar, have 2 options. 1 install jar local repository using mvn install:install-file. other specify system dependency.

as castor-core, can add classifier tag

<dependency>   <groupid>org.codehaus.castor</groupid>   <artifactid>castor</artifactid>   <version>1.3.1</version>   <classifier>core</classifier> </dependency> 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -