Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] m2e-wtp question about org.eclipse.wst.common.component

If I create a non-maven ear project, and add an external library to
the ear specifying the deploy directory as /lib, I get an entry in
org.eclipse.wst.common.component that looks like this:

        <dependent-module archiveName="log4j-1.2.14.jar"
deploy-path="/lib"
handle="module:/classpath/lib/C:/Users/.../log4j/log4j/1.2.14/log4j-1.2.14.jar">
            <dependency-type>uses</dependency-type>
        </dependent-module>

If I have a maven project and I add a dependency to the ear, I get:
        <dependent-module archiveName="log4j-1.2.14.jar"
deploy-path="/"
handle="module:/classpath/var/M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar">
            <dependency-type>uses</dependency-type>
        </dependent-module>

Notice the 'deploy-path' is "/" instead of "/lib".  I have my ear pom
set up with:

      <plugin>
        <artifactId>maven-ear-plugin</artifactId>
        <configuration>
          ...
          <defaultJavaBundleDir>lib/</defaultJavaBundleDir>
          <version>5</version>
        </configuration>
      </plugin>

Is there something I'm missing, or is there a reason it works this way?

Thanks,
Paul


Back to the top