Hi,

I have a dependency with scope <system> for generating my EAR. Right now the
dependency jar xml-apis.jar is bundled with the EAR but the path doesnot
appear in the Manifest due to system scope.

1. I want only the non system scope jars to be bundled with the EAR and not
the system scope jars to be included
2. I want only the path of the system scope jars to be included in the
manifest

How can this be done?

Parts of my EAR pom.xml below.

 </dependencies>

  <dependency>
   <groupId>gcfs.fgen</groupId>
   <artifactId>ContentManager</artifactId>
   <version>1.0</version>
   <type>ejb</type>
  </dependency>

  <dependency>
   <groupId>xml-apis</groupId>
   <artifactId>xml-apis</artifactId>
   <version>1.0</version>
   <scope>system</scope>
   <systemPath>c:/commonjars/xml-apis.jar</systemPath>
  </dependency>
 </dependencies>

 <build>
  <plugins>
   <plugin>
   <artifactId>maven-ear-plugin</artifactId>
   <version>2.0</version>
   <configuration>
    <archive>
    <manifest>
     <addClasspath>true</addClasspath>
    </manifest>
    </archive>
   </configuration>
   </plugin>
  </plugins>
 </build>

Thanks and regards,

Karthik.

Reply via email to