views:

276

answers:

1

Hi, I am using maven-ejb-plugin to generate the ejb jar and the client jar. Also I am using archive to generate the manifest file. But the problem is I need the classpath entries in the ejb jar but not in the client jar. Is there any configuration available to addClasspath only in the main jar and in the client jar do not set the class path? Thanks in advance.

A: 

I don't think that's supported. If this is an option, exclude the manifest file from the client jar:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-ejb-plugin</artifactId>
  <version>2.2.1</version>
  <configuration>
    <clientExcludes>
      <clientexclude>META-INF/MANIFEST.MF</clientexclude>
    </clientExcludes>
    ...
  </configuration>
</plugin>

If not, I'm afraid you'll have to do some post processing (to unpack, modify the manifest, repackage the archive) with the antrun plugin.

Pascal Thivent