Skip to main content

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

Thanks for the quick response Fred!  I'm glad it turned out to be
something so simple.  I found the reference to the old element name on
a maven-war-plugin page
(http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html),
so I've opened a minor issue to get the example updated:
http://jira.codehaus.org/browse/MWAR-291

Thanks again,
Paul

On Mon, Sep 17, 2012 at 4:07 PM, Fred Bricon <fbricon@xxxxxxxxx> wrote:
> m2e-wtp only supports <defaultLibBundleDir>. See
> http://stackoverflow.com/questions/4145021/has-maven-changed-ear-element-from-defaultjavabundledir-to-defaultlibbundledi
>
> Regards
>
> Fred Bricon
>
> On Mon, Sep 17, 2012 at 8:48 PM, Paul Vonnahme <vonnahme@xxxxxxxxx> wrote:
>>
>> 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
>> _______________________________________________
>> m2e-users mailing list
>> m2e-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>
>
>
>
> --
> "Have you tried turning it off and on again" - The IT Crowd
>
> _______________________________________________
> m2e-users mailing list
> m2e-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/m2e-users
>


Back to the top