diff --git a/modello-maven-plugin/src/it/dom4j-no-plexus-utils/pom.xml b/modello-maven-plugin/src/it/dom4j-no-plexus-utils/pom.xml
deleted file mode 100644
index 4a0b2f468..000000000
--- a/modello-maven-plugin/src/it/dom4j-no-plexus-utils/pom.xml
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
- 4.0.0
-
- org.codehaus.modello.its
- dom4j-no-plexus-utils
- 0.1-SNAPSHOT
-
- DOM4J IT
-
- Test that the DOM4J based readers/writers do not have a dependency on plexus-utils' Xpp3Dom if the model
- does not use DOM fields.
-
-
-
-
-
- org.dom4j
- dom4j
- 2.1.3
- compile
-
-
-
-
- test
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.14.1
-
- @javaVersion@
- @javaVersion@
-
-
-
- org.apache.maven.plugins
- maven-resources-plugin
- 3.5.0
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
- 3.5.6
-
-
- org.codehaus.modello
- modello-maven-plugin
- @project.version@
-
- 1.0.0
-
- src/main/mdo/thing.mdo
-
-
-
-
- standard
-
- java
- dom4j-reader
- dom4j-writer
-
-
-
-
-
-
-
diff --git a/modello-maven-plugin/src/it/dom4j-no-plexus-utils/verify.groovy b/modello-maven-plugin/src/it/dom4j-no-plexus-utils/verify.groovy
deleted file mode 100644
index 4a91d33a4..000000000
--- a/modello-maven-plugin/src/it/dom4j-no-plexus-utils/verify.groovy
+++ /dev/null
@@ -1,13 +0,0 @@
-import java.io.*;
-
-File readerClass = new File( basedir, "target/classes/test/io/dom4j/ThingDom4jReader.class" );
-if ( !readerClass.isFile() )
-{
- throw new FileNotFoundException( "Missing " + readerClass );
-}
-
-File writerClass = new File( basedir, "target/classes/test/io/dom4j/ThingDom4jWriter.class" );
-if ( !writerClass.isFile() )
-{
- throw new FileNotFoundException( "Missing " + writerClass );
-}
diff --git a/modello-maven-plugin/src/it/jdom-no-plexus-utils/pom.xml b/modello-maven-plugin/src/it/jdom-no-plexus-utils/pom.xml
deleted file mode 100644
index be9238882..000000000
--- a/modello-maven-plugin/src/it/jdom-no-plexus-utils/pom.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
- 4.0.0
-
- org.codehaus.modello.its
- jdom-no-plexus-utils
- 0.1-SNAPSHOT
-
- JDOM IT
-
- Test that the JDOM based readers/writers do not have a dependency on plexus-utils' Xpp3Dom if the model
- does not use DOM fields.
-
-
-
-
-
- org.jdom
- jdom
- @jdom.version@
- compile
-
-
-
-
- test
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.14.1
-
- @javaVersion@
- @javaVersion@
-
-
-
- org.apache.maven.plugins
- maven-resources-plugin
- 3.5.0
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
- 3.5.6
-
-
- org.codehaus.modello
- modello-maven-plugin
- @project.version@
-
- 1.0.0
-
- src/main/mdo/thing.mdo
-
-
-
-
- standard
-
- java
- jdom-writer
-
-
-
-
-
-
-
diff --git a/modello-maven-plugin/src/it/jdom-no-plexus-utils/src/main/mdo/thing.mdo b/modello-maven-plugin/src/it/jdom-no-plexus-utils/src/main/mdo/thing.mdo
deleted file mode 100644
index 4ac21bf8d..000000000
--- a/modello-maven-plugin/src/it/jdom-no-plexus-utils/src/main/mdo/thing.mdo
+++ /dev/null
@@ -1,134 +0,0 @@
-
- thing
- Thing
-
-
- package
- test
-
-
-
-
- SuperThing
- 1.0.0
-
-
- Thing
- SuperThing
- 1.0.0
-
-
-
- someBoolean
- 1.0.0
- boolean
-
-
- someChar
- 1.0.0
- char
-
-
- someByte
- 1.0.0
- byte
-
-
- someShort
- 1.0.0
- short
-
-
- someInt
- 1.0.0
- int
-
-
- someLong
- 1.0.0
- long
-
-
- someFloat
- 1.0.0
- float
-
-
- someDouble
- 1.0.0
- double
-
-
- someString
- 1.0.0
- String
-
-
- someDate
- 1.0.0
- Date
-
-
-
- someProperties
- 1.0.0
- Properties
-
- String
- *
-
-
-
- someStringList
- 1.0.0
- List
-
- String
- *
-
-
-
- someStringSet
- 1.0.0
- Set
-
- String
- *
-
-
-
-
- thingy
- 1.0.0
-
- Thingy
- 1
-
-
-
- thingyList
- 1.0.0
- List
-
- Thingy
- *
-
-
-
- thingySet
- 1.0.0
- Set
-
- Thingy
- *
-
-
-
-
-
- Thingy
- SuperThing
- 1.0.0
-
-
-
diff --git a/modello-maven-plugin/src/it/jdom-no-plexus-utils/verify.groovy b/modello-maven-plugin/src/it/jdom-no-plexus-utils/verify.groovy
deleted file mode 100644
index bf09d038d..000000000
--- a/modello-maven-plugin/src/it/jdom-no-plexus-utils/verify.groovy
+++ /dev/null
@@ -1,7 +0,0 @@
-import java.io.*;
-
-File writerClass = new File( basedir, "target/classes/test/io/jdom/ThingJDOMWriter.class" );
-if ( !writerClass.isFile() )
-{
- throw new FileNotFoundException( "Missing " + writerClass );
-}
diff --git a/modello-maven-plugin/src/it/stax-no-plexus-utils/pom.xml b/modello-maven-plugin/src/it/no-plexus-utils/pom.xml
similarity index 76%
rename from modello-maven-plugin/src/it/stax-no-plexus-utils/pom.xml
rename to modello-maven-plugin/src/it/no-plexus-utils/pom.xml
index 914ebf0d7..095e17421 100644
--- a/modello-maven-plugin/src/it/stax-no-plexus-utils/pom.xml
+++ b/modello-maven-plugin/src/it/no-plexus-utils/pom.xml
@@ -4,17 +4,29 @@
4.0.0
org.codehaus.modello.its
- stax-no-plexus-utils
+ no-plexus-utils
0.1-SNAPSHOT
- StAX IT
+ No plexus-utils IT
- Test that the StAX based readers/writers do not have a dependency on plexus-utils' Xpp3Dom if the model
- does not use DOM fields.
+ Test that the DOM4J, JDOM and StAX based readers/writers do not have a dependency on plexus-utils' Xpp3Dom if
+ the model does not use DOM fields.
+
+ org.dom4j
+ dom4j
+ 2.1.3
+ compile
+
+
+ org.jdom
+ jdom
+ @jdom.version@
+ compile
+
org.codehaus.woodstox
stax2-api
@@ -66,6 +78,9 @@
standard
java
+ dom4j-reader
+ dom4j-writer
+ jdom-writer
stax-reader
stax-writer
diff --git a/modello-maven-plugin/src/it/dom4j-no-plexus-utils/src/main/mdo/thing.mdo b/modello-maven-plugin/src/it/no-plexus-utils/src/main/mdo/thing.mdo
similarity index 100%
rename from modello-maven-plugin/src/it/dom4j-no-plexus-utils/src/main/mdo/thing.mdo
rename to modello-maven-plugin/src/it/no-plexus-utils/src/main/mdo/thing.mdo
diff --git a/modello-maven-plugin/src/it/no-plexus-utils/verify.groovy b/modello-maven-plugin/src/it/no-plexus-utils/verify.groovy
new file mode 100644
index 000000000..2ef2e7831
--- /dev/null
+++ b/modello-maven-plugin/src/it/no-plexus-utils/verify.groovy
@@ -0,0 +1,26 @@
+import java.io.*;
+
+// every generator must have produced its classes, and all of them compile without plexus-utils;
+// the classes of one XML library must not refer to the others, as when a project uses only that library
+def others = [
+ "dom4j" : [ "org/jdom/", "org/codehaus/stax2/", "javax/xml/stream/" ],
+ "jdom" : [ "org/dom4j/", "org/codehaus/stax2/", "javax/xml/stream/" ],
+ "stax" : [ "org/dom4j/", "org/jdom/" ] ]
+for ( String name : [
+ "test/io/dom4j/ThingDom4jReader.class",
+ "test/io/dom4j/ThingDom4jWriter.class",
+ "test/io/jdom/ThingJDOMWriter.class",
+ "test/io/stax/ThingStaxReader.class",
+ "test/io/stax/ThingStaxWriter.class" ] )
+{
+ File clazz = new File( basedir, "target/classes/" + name );
+ if ( !clazz.isFile() )
+ {
+ throw new FileNotFoundException( "Missing " + clazz );
+ }
+ String constants = new String( clazz.bytes, "ISO-8859-1" );
+ for ( String other : others[name.split( "/" )[2]] )
+ {
+ assert !constants.contains( other ) : name + " refers to " + other;
+ }
+}
diff --git a/modello-maven-plugin/src/it/stax-no-plexus-utils/src/main/mdo/thing.mdo b/modello-maven-plugin/src/it/stax-no-plexus-utils/src/main/mdo/thing.mdo
deleted file mode 100644
index 4ac21bf8d..000000000
--- a/modello-maven-plugin/src/it/stax-no-plexus-utils/src/main/mdo/thing.mdo
+++ /dev/null
@@ -1,134 +0,0 @@
-
- thing
- Thing
-
-
- package
- test
-
-
-
-
- SuperThing
- 1.0.0
-
-
- Thing
- SuperThing
- 1.0.0
-
-
-
- someBoolean
- 1.0.0
- boolean
-
-
- someChar
- 1.0.0
- char
-
-
- someByte
- 1.0.0
- byte
-
-
- someShort
- 1.0.0
- short
-
-
- someInt
- 1.0.0
- int
-
-
- someLong
- 1.0.0
- long
-
-
- someFloat
- 1.0.0
- float
-
-
- someDouble
- 1.0.0
- double
-
-
- someString
- 1.0.0
- String
-
-
- someDate
- 1.0.0
- Date
-
-
-
- someProperties
- 1.0.0
- Properties
-
- String
- *
-
-
-
- someStringList
- 1.0.0
- List
-
- String
- *
-
-
-
- someStringSet
- 1.0.0
- Set
-
- String
- *
-
-
-
-
- thingy
- 1.0.0
-
- Thingy
- 1
-
-
-
- thingyList
- 1.0.0
- List
-
- Thingy
- *
-
-
-
- thingySet
- 1.0.0
- Set
-
- Thingy
- *
-
-
-
-
-
- Thingy
- SuperThing
- 1.0.0
-
-
-
diff --git a/modello-maven-plugin/src/it/stax-no-plexus-utils/verify.groovy b/modello-maven-plugin/src/it/stax-no-plexus-utils/verify.groovy
deleted file mode 100644
index 4964471cf..000000000
--- a/modello-maven-plugin/src/it/stax-no-plexus-utils/verify.groovy
+++ /dev/null
@@ -1,13 +0,0 @@
-import java.io.*;
-
-File readerClass = new File( basedir, "target/classes/test/io/stax/ThingStaxReader.class" );
-if ( !readerClass.isFile() )
-{
- throw new FileNotFoundException( "Missing " + readerClass );
-}
-
-File writerClass = new File( basedir, "target/classes/test/io/stax/ThingStaxWriter.class" );
-if ( !writerClass.isFile() )
-{
- throw new FileNotFoundException( "Missing " + writerClass );
-}