[m2e-users] Dependency scope and Eclipse classpath resolution

2011-10-16 Thread Stanimir Stamenkov
I notice the "Maven Dependencies" container resolves "runtime" scope dependencies for compilation which allows one to use them erroneously while writing code in Eclipse. This will reveal the error later, when building from the command-line. Is it possible the "Maven Dependencies" container re

Re: [m2e-users] Dependency scope and Eclipse classpath resolution

2011-10-16 Thread Stanimir Stamenkov
Sun, 16 Oct 2011 21:54:54 +0300, /Stanimir Stamenkov/: I would also like to see an option to resolve only declared dependencies for compilation and not their transitive dependencies, e.g. using the dependency:analyze goal one could get warnings like "Used undeclared dependencies found" - it woul

Re: [m2e-users] Dependency scope and Eclipse classpath resolution

2011-10-16 Thread Stanimir Stamenkov
Sun, 16 Oct 2011 23:21:13 +0300, /Stanimir Stamenkov/: Would it be possible to automatically classify APIs from transitively resolved dependencies as forbidden or discouraged (probably depending on an m2e setting) and then the Java Compiler settings for marking access to those as errors/warnings

Re: [m2e-users] Dependency scope and Eclipse classpath resolution

2011-10-16 Thread Stanimir Stamenkov
Sun, 16 Oct 2011 23:25:16 +0300, /Stanimir Stamenkov/: I've now realized if the above is possible, it could be used to restrict the usage of "runtime" dependencies for compilation, also (marking their APIs as forbidden, but still placing them on the classpath for run configurations). It appear

Re: [m2e-users] Dependency scope and Eclipse classpath resolution

2011-10-16 Thread Igor Fedorenko
This is a limitation of JDT. Eclipse Java project will use single classpath and single set of compiler preferences for all project sources, which in m2e case means both main and test sources. Because of this, m2e needs to use dependencies of all scopes (test scope includes all other scopes) both f

Re: [m2e-users] Dependency scope and Eclipse classpath resolution

2011-10-16 Thread Stanimir Stamenkov
Sun, 16 Oct 2011 17:41:42 -0400, /Igor Fedorenko/: This is a limitation of JDT. Eclipse Java project will use single classpath and single set of compiler preferences for all project sources, which in m2e case means both main and test sources. Because of this, m2e needs to use dependencies of all

Re: [m2e-users] Dependency scope and Eclipse classpath resolution

2011-10-16 Thread Stanimir Stamenkov
Mon, 17 Oct 2011 01:18:09 +0300, /Stanimir Stamenkov/: ... and then (optionally) transitive "compile/provided" scope dependencies are restricted as "discouraged"... To clarify - _transitive_ "compile/provided" dependencies, unless declared as explicit project dependencies. -- Stanimir _

Re: [m2e-users] Dependency scope and Eclipse classpath resolution

2011-10-16 Thread Stanimir Stamenkov
Sun, 16 Oct 2011 17:41:42 -0400, /Igor Fedorenko/: This is a limitation of JDT. Eclipse Java project will use single classpath and single set of compiler preferences for all project sources, which in m2e case means both main and test sources. Because of this, m2e needs to use dependencies of all

[m2e-users] Best practices for includes resources outside of project base directory

2011-10-16 Thread Collin Peters
I have a Maven war project which includes the following for including some resources ../../sql WEB-INF/sql **/*.sql ../../reports WEB-INF/reports **/*.jasper **/*.xslt This has always worked fine in Maven (2 & 3) as well as the old m2eclipse. The new m2e complains with "A

Re: [m2e-users] Best practices for includes resources outside of project base directory

2011-10-16 Thread Fred Bricon
Can you try using ${basedir}/../../sql, this scenario is tested in m2e-wtp : https://github.com/sonatype/m2eclipse-wtp/blob/master/org.maven.ide.eclipse.wtp.tests/projects/WebResourceFiltering/top/mid/web/pom.xml Regards, Fred Bricon 2011/10/17 Collin Peters > I have a Maven war project which