Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] Copying of resources into target/classes

The resource folders are excluded to avoid conflicts between the Maven and JDT builders. We want Maven to process these folders during a build, by invoking the resources:resources goal.

This is declared in the default lifecycvle mapping [1]. So when embedding m2e, make sure to include the org.eclipse.m2e.lifecyclemapping.defaults bundle.

[1] http://git.eclipse.org/c/m2e/m2e-core.git/tree/org.eclipse.m2e.lifecyclemapping.defaults/lifecycle-mapping-metadata.xml#n17

On Wed, Oct 4, 2017 at 7:41 PM, Tom Schindl <tom.schindl@xxxxxxxxxxxxxxx> wrote:
Hi,

I'm using the m2e core bundles to implement a custom IDE and I've come
across something I don't know why it does not work for me.

If .classpath-File contains:

> <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
>                 <attributes>
>                         <attribute name="maven.pomderived" value="true"/>
>                 </attributes>
>         </classpathentry>

All files/folders in the src/main/resources are not synced to
target/classes which makes sense given the excluding="**" (removing it
makes it work like it does in Eclipse)

How does this work in the Eclipse IDE? Who is syncing target/classes
there? If someone could point me to the location/region in m2e this
would help me very much to diagnose what I'm doing wrong.

Tom

--
Thomas Schindl, CTO
BestSolution.at EDV Systemhaus GmbH
Eduard-Bodem-Gasse 5-7, A-6020 Innsbruck
http://www.bestsolution.at/
Reg. Nr. FN 222302s am Firmenbuchgericht Innsbruck
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-dev



--
"Have you tried turning it off and on again" - The IT Crowd
And if that fails, then http://goo.gl/tnBgH5

Back to the top