Hi All,

I am creating an EJB jar (not EJB-client).
Its supposed to have a dependency jar (ussi.jar) included within it for deployment, but the EJB jar created never contains the ussi.jar. I am using "compile-scope" dependencies. If you do have a few minutes, please take a look at the following -- if needed, I can send the entire POM as well as contents of JAR file.

The ussi.jar is a simple library, and was put into local (~/.m2/repository) using the mvn install command-line.

       mvn install:install-file \
           -Dfile=ussi/dist/ussi.jar \
           -DgroupId=com.uss-infr    \
           -DartifactId=ussi    \
           -Dversion=1.10    \
           -Dpackaging=jar    \
           -DgeneratePom=true

1st relevant portion of the POM for EJB project is:
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.ASUX.CmdLineClients</groupId>
   <artifactId>CronJarTemplate</artifactId>
   <packaging>ejb</packaging>
   <version>2.1</version>

2nd relevant portion of the POM for EJB project is:
   <dependency>
       <groupId>com.uss-infr</groupId>
       <artifactId>ussi</artifactId>
       <version>1.10</version>
       <scope>compile</scope>
<optional>false</optional> <!-- not having this element makes no difference -->
   </dependency>

For compile scope, the build is successful with no warnings or errors.
If I change the scope to "runtime" the built fails (as it should).

# OS name: "linux" version: "2.6.31-20-generic" arch: "amd64" Family: "unix"
# Java version: 1.6.0_18
# Maven version: 2.0.8

Upgrading to Maven 2.2.1 did not make any difference.

Thanks in advance!
Sarma Seetamraju

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to