Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] external resources - issue?

This almost certainly does not properly work with incremental workspace
build. m2e needs to be able to map between workspace and filesystem and
linked resources require special handling.

--
Regards,
Igor

On 12-02-06 3:28 PM, Rafał Krzewski wrote:
I recently had to perform this kind of equilibristics. I was able to
work around it by creating a linked source folder in Eclipse (Build path
 > link source). This way I got the project to build both in Eclipse/m2e
and command line Maven. m2e preserves classpath entries added by hand so
it worked quite smoothly. The only downside that this configuration is
cumbersome to share through SCM.
Maybe m2e could emulate the manual approach and also create linked
folders, but then again there might be some diffculties with this that I
am not aware of right now.

cheers,
Rafał

On 02/06/2012 08:37 PM, Benoit Billington wrote:
Thanks,

I know it is bad practice but it is possible with mvn so I would have
expected to be comptabible with m2e.

I will try to find a way to get this done in another way as I'm having
some android issue because of this ;)

Thanks for the very quick answer.


Benoit Billington


On Mon, Feb 6, 2012 at 20:07, Igor Fedorenko <igor@xxxxxxxxxxxxxx
<mailto:igor@xxxxxxxxxxxxxx>> wrote:

    This is expected. Resources outside of project basedir are
    considered a
    bad practice and are not supported by m2e. There is an outstanding
    bugreport [1] about this which I plan to address by adding better
    error
    marker.

    [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=361824

    --
    Regards,
    Igor


    On 12-02-06 1:13 PM, Benoit Billington wrote:

        Hello,

        I would like to know if it is normal not to have the external
        resource
        added to my classpath


        pom:
        <build>
        <resources>
        <resource>
        <directory>src/main/resources</directory>
        <includes>
        <include>**</include>
        </includes>
        </resource>
        <resource>
        <directory>${basedir}/../chamarade-endpoint/src/main/resources</directory>
        <includes>
        <include>**/*.properties</include>
        </includes>
        <excludes>
        <exclude>META-INF/**</exclude>
        </excludes>
        </resource>
        </resources>
        ....


        classpath
        <?xml version="1.0" encoding="UTF-8"?>
        <classpath>
        <classpathentry kind="src" output="target/classes"
        path="src/main/java"/>
        <classpathentry excluding="**" kind="src" output="target/classes"
        path="src/main/resources"/>
        <classpathentry kind="src" output="target/test-classes"
        path="src/test/java"/>
        <classpathentry kind="con"
        path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
        <classpathentry kind="con"
        path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
        <classpathentry kind="output" path="target/classes"/>
        </classpath>


        Thanks

        Benoit Billington



        _______________________________________________
        m2e-users mailing list
        m2e-users@xxxxxxxxxxx <mailto:m2e-users@xxxxxxxxxxx>
        https://dev.eclipse.org/mailman/listinfo/m2e-users

    _______________________________________________
    m2e-users mailing list
    m2e-users@xxxxxxxxxxx <mailto:m2e-users@xxxxxxxxxxx>
    https://dev.eclipse.org/mailman/listinfo/m2e-users




_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users



_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top