diff --git a/eclipse/plugin.properties b/eclipse/plugin.properties index dcc4f1e5..1b8649e2 100644 --- a/eclipse/plugin.properties +++ b/eclipse/plugin.properties @@ -26,3 +26,4 @@ maven.eclipse.goals = plugins maven.gen.src=${maven.build.dir}/generated-sources maven.eclipse.src.extension = zip +maven.eclipse.resources.addtoclasspath=false diff --git a/eclipse/src/plugin-resources/templates/classpath.jelly b/eclipse/src/plugin-resources/templates/classpath.jelly index b9938180..4524579e 100644 --- a/eclipse/src/plugin-resources/templates/classpath.jelly +++ b/eclipse/src/plugin-resources/templates/classpath.jelly @@ -59,23 +59,24 @@ - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - + @@ -136,24 +137,26 @@ - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - + - + diff --git a/eclipse/src/plugin-test/maven.xml b/eclipse/src/plugin-test/maven.xml index 3dc12492..dcfc8912 100644 --- a/eclipse/src/plugin-test/maven.xml +++ b/eclipse/src/plugin-test/maven.xml @@ -21,7 +21,7 @@ xmlns:maven="jelly:maven" xmlns:x="jelly:xml"> - + @@ -169,5 +169,22 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse/src/plugin-test/project.properties b/eclipse/src/plugin-test/project.properties index 03ffc4b4..c84e0a5e 100644 --- a/eclipse/src/plugin-test/project.properties +++ b/eclipse/src/plugin-test/project.properties @@ -1,3 +1,4 @@ cactus.src.dir=${basedir}/src/cactus-test maven.jar.override=on maven.jar.commons-dude=${maven.repo.local}/commons-logging/jars/commons-logging-1.0.3.jar +maven.eclipse.resources.addtoclasspath=true \ No newline at end of file diff --git a/eclipse/xdocs/changes.xml b/eclipse/xdocs/changes.xml index 66bd6a47..628aed14 100644 --- a/eclipse/xdocs/changes.xml +++ b/eclipse/xdocs/changes.xml @@ -25,6 +25,7 @@ + Add property maven.eclipse.resources.addtoclasspath to control whether to add pom.resources etc or not. Provide backwards compatiblity. Set proper cactus.src.dir Fixed duplicated source entry issue. add property maven.eclipse.addResources=false to prevent the build resources from breaking old Eclipse builds. diff --git a/eclipse/xdocs/properties.xml b/eclipse/xdocs/properties.xml index 04240888..73f853fd 100644 --- a/eclipse/xdocs/properties.xml +++ b/eclipse/xdocs/properties.xml @@ -81,6 +81,14 @@ the classpath, like src/conf. + + maven.eclipse.resources.addtoclasspath + Yes + + Specify whether to include the resources defined in the POM in the + Eclipse classpath. Defaults to false. + + maven.eclipse.conclasspath Yes