diff --git a/maven-plugin-plugin/pom.xml b/maven-plugin-plugin/pom.xml
index 807d36847..22f988b28 100644
--- a/maven-plugin-plugin/pom.xml
+++ b/maven-plugin-plugin/pom.xml
@@ -99,6 +99,12 @@
org.apache.maven.doxia
doxia-sink-api
${doxiaVersion}
+
+
+ org.codehaus.plexus
+ plexus-container-default
+
+
org.apache.maven.doxia
@@ -120,19 +126,24 @@
org.apache.maven
maven-plugin-api
+
+ compile
org.apache.maven
maven-model
+ provided
org.apache.maven
maven-repository-metadata
${mavenVersion}
+ provided
org.apache.maven
maven-artifact
+ provided
@@ -148,19 +159,13 @@
plexus-utils
- org.sonatype.sisu
- sisu-inject-plexus
- 1.4.2
+ org.eclipse.sisu
+ org.eclipse.sisu.plexus
+ provided
org.codehaus.plexus
plexus-velocity
-
-
- velocity
- velocity
-
-
@@ -169,7 +174,14 @@
plexus-build-api
0.0.7
-
+
+
+
+ junit
+ junit
+ test
+
+
org.apache.maven.plugin-tools
diff --git a/maven-plugin-tools-annotations/pom.xml b/maven-plugin-tools-annotations/pom.xml
index aeb7cb2ae..733eb97cd 100644
--- a/maven-plugin-tools-annotations/pom.xml
+++ b/maven-plugin-tools-annotations/pom.xml
@@ -71,11 +71,6 @@
-
- org.sonatype.sisu
- sisu-inject-plexus
- 1.4.2
-
org.codehaus.plexus
plexus-archiver
diff --git a/maven-plugin-tools-api/pom.xml b/maven-plugin-tools-api/pom.xml
index 36eac5e90..78cffcea6 100644
--- a/maven-plugin-tools-api/pom.xml
+++ b/maven-plugin-tools-api/pom.xml
@@ -61,11 +61,6 @@
org.codehaus.plexus
plexus-utils
-
- org.sonatype.sisu
- sisu-inject-plexus
- 1.4.2
-
diff --git a/maven-plugin-tools-api/src/test/java/org/apache/maven/tools/plugin/util/PluginUtilsTest.java b/maven-plugin-tools-api/src/test/java/org/apache/maven/tools/plugin/util/PluginUtilsTest.java
index a5c740b89..f4d46b17e 100644
--- a/maven-plugin-tools-api/src/test/java/org/apache/maven/tools/plugin/util/PluginUtilsTest.java
+++ b/maven-plugin-tools-api/src/test/java/org/apache/maven/tools/plugin/util/PluginUtilsTest.java
@@ -20,14 +20,16 @@
*/
import org.apache.maven.plugin.descriptor.PluginDescriptor;
-import org.apache.maven.plugin.testing.AbstractMojoTestCase;
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
/**
* @author jdcasey
*/
public class PluginUtilsTest
- extends AbstractMojoTestCase
{
+ @Test
public void testShouldTrimArtifactIdToFindPluginId()
{
assertEquals( "artifactId", PluginDescriptor.getGoalPrefixFromArtifactId( "maven-artifactId-plugin" ) );
@@ -38,6 +40,7 @@ public void testShouldTrimArtifactIdToFindPluginId()
assertEquals( "plugin", PluginDescriptor.getGoalPrefixFromArtifactId( "maven-plugin-plugin" ) );
}
+ @Test
public void testShouldFindTwoScriptsWhenNoExcludesAreGiven()
{
String testScript = "test.txt";
@@ -50,6 +53,7 @@ public void testShouldFindTwoScriptsWhenNoExcludesAreGiven()
assertEquals( 2, files.length );
}
+ @Test
public void testShouldFindOneScriptsWhenAnExcludeIsGiven()
{
String testScript = "test.txt";
diff --git a/maven-plugin-tools-generators/pom.xml b/maven-plugin-tools-generators/pom.xml
index b85412719..e784974a9 100644
--- a/maven-plugin-tools-generators/pom.xml
+++ b/maven-plugin-tools-generators/pom.xml
@@ -62,12 +62,6 @@
org.codehaus.plexus
plexus-velocity
-
-
- velocity
- velocity
-
-
@@ -93,11 +87,22 @@
+
+ junit
+ junit
+ test
+
org.apache.maven.reporting
maven-reporting-impl
- 2.1
+ 3.0.0
test
+
+
+ org.codehaus.plexus
+ plexus-container-default
+
+
org.apache.maven.plugin-testing
diff --git a/maven-plugin-tools-generators/src/test/java/org/apache/maven/tools/plugin/generator/GeneratorUtilsTest.java b/maven-plugin-tools-generators/src/test/java/org/apache/maven/tools/plugin/generator/GeneratorUtilsTest.java
index d8d469ec3..6662aa497 100644
--- a/maven-plugin-tools-generators/src/test/java/org/apache/maven/tools/plugin/generator/GeneratorUtilsTest.java
+++ b/maven-plugin-tools-generators/src/test/java/org/apache/maven/tools/plugin/generator/GeneratorUtilsTest.java
@@ -20,21 +20,25 @@
*/
import org.apache.maven.plugin.descriptor.PluginDescriptor;
-import org.apache.maven.plugin.testing.AbstractMojoTestCase;
import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
import org.codehaus.plexus.component.repository.ComponentDependency;
import org.codehaus.plexus.util.xml.CompactXMLWriter;
import org.codehaus.plexus.util.xml.XMLWriter;
+import org.junit.Test;
import java.io.StringWriter;
import java.util.Collections;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
+
/**
* @author jdcasey
*/
public class GeneratorUtilsTest
- extends AbstractMojoTestCase
{
+ @Test
public void testShouldWriteDependencies()
throws Exception
{
@@ -62,6 +66,7 @@ public void testShouldWriteDependencies()
assertEquals( pattern, output );
}
+ @Test
public void testMakeHtmlValid()
{
String javadoc = null;
@@ -94,6 +99,7 @@ public void testMakeHtmlValid()
assertEquals( javadoc, GeneratorUtils.makeHtmlValid( javadoc ) );
}
+ @Test
public void testDecodeJavadocTags()
{
String javadoc = null;
@@ -148,6 +154,7 @@ public void testDecodeJavadocTags()
assertEquals( "label", GeneratorUtils.decodeJavadocTags( javadoc ) );
}
+ @Test
public void testToText()
throws Exception
{
@@ -179,6 +186,7 @@ public void testToText()
assertEquals( "Generates something for the project.", GeneratorUtils.toText( javadoc ) );
}
+ @Test
public void testIsMavenReport()
throws Exception
{
@@ -194,7 +202,7 @@ public void testIsMavenReport()
String impl = "org.apache.maven.tools.plugin.generator.stubs.MavenReportStub";
MavenProjectStub stub = new MavenProjectStub();
- stub.setCompileSourceRoots( Collections.singletonList( getBasedir() + "/target/classes" ) );
+ stub.setCompileSourceRoots( Collections.singletonList( System.getProperty( "basedir" ) + "/target/classes" ) );
assertTrue( GeneratorUtils.isMavenReport( impl, stub ) );
diff --git a/maven-plugin-tools-java/pom.xml b/maven-plugin-tools-java/pom.xml
index 77b546d7c..442a13b2a 100644
--- a/maven-plugin-tools-java/pom.xml
+++ b/maven-plugin-tools-java/pom.xml
@@ -58,12 +58,6 @@
org.codehaus.plexus
plexus-component-annotations
-
-
- junit
- junit
-
-
@@ -72,6 +66,12 @@
qdox
+
+
+ junit
+ junit
+ test
+
xmlunit
xmlunit
diff --git a/maven-plugin-tools-java/src/test/java/org/apache/maven/tools/plugin/extractor/javadoc/JavaMojoDescriptorExtractorTest.java b/maven-plugin-tools-java/src/test/java/org/apache/maven/tools/plugin/extractor/javadoc/JavaMojoDescriptorExtractorTest.java
index 3f3001fcc..73dfaaaf9 100644
--- a/maven-plugin-tools-java/src/test/java/org/apache/maven/tools/plugin/extractor/javadoc/JavaMojoDescriptorExtractorTest.java
+++ b/maven-plugin-tools-java/src/test/java/org/apache/maven/tools/plugin/extractor/javadoc/JavaMojoDescriptorExtractorTest.java
@@ -222,7 +222,7 @@ public void testAnnotationInPlugin()
{
List results = extract( "source3" );
- assertNull( results );
+ assertTrue( results.isEmpty() );
}
/**
@@ -253,7 +253,7 @@ public void testMethodReferenceInEnumConstructor()
{
List results = extract( "MPLUGIN-320" );
- assertNull( results );
+ assertTrue( results.isEmpty() );
}
@Test
@@ -262,7 +262,7 @@ public void testEnumWithRegexPattern()
{
List results = extract( "MPLUGIN-290" );
- assertNull( results );
+ assertTrue( results.isEmpty() );
}
}
diff --git a/maven-script/maven-plugin-tools-model/pom.xml b/maven-script/maven-plugin-tools-model/pom.xml
index 024f89900..42fde0ffb 100644
--- a/maven-script/maven-plugin-tools-model/pom.xml
+++ b/maven-script/maven-plugin-tools-model/pom.xml
@@ -44,11 +44,6 @@
org.codehaus.plexus
plexus-utils
-
- org.sonatype.sisu
- sisu-inject-plexus
- 1.4.2
-
junit
junit
diff --git a/maven-script/maven-script-ant/pom.xml b/maven-script/maven-script-ant/pom.xml
index eaaebd534..4d7a8421d 100644
--- a/maven-script/maven-script-ant/pom.xml
+++ b/maven-script/maven-script-ant/pom.xml
@@ -50,6 +50,12 @@ under the License.
org.codehaus.plexus
plexus-ant-factory
1.0-alpha-2.1
+
+
+ org.codehaus.plexus
+ plexus-container-default
+
+
org.codehaus.plexus
diff --git a/maven-script/maven-script-beanshell/pom.xml b/maven-script/maven-script-beanshell/pom.xml
index 366d27c71..1e9bce017 100644
--- a/maven-script/maven-script-beanshell/pom.xml
+++ b/maven-script/maven-script-beanshell/pom.xml
@@ -40,6 +40,12 @@ under the License.
org.codehaus.plexus
plexus-bsh-factory
1.0-alpha-7
+
+
+ org.codehaus.plexus
+ plexus-container-default
+
+
bsh
diff --git a/pom.xml b/pom.xml
index cb56dd877..186c11cd5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -92,9 +92,10 @@
2.22.2
7
- 1.3
- 3.2.2
+ 3.3.0
+ 3.2.5
1.7.1
+ 0.3.5
3.2.2
plugin-tools-archives/plugin-tools-LATEST
9.1
@@ -171,6 +172,11 @@
+
+ org.eclipse.sisu
+ org.eclipse.sisu.plexus
+ ${sisuVersion}
+
org.codehaus.plexus
plexus-utils
@@ -196,6 +202,16 @@
org.codehaus.plexus
plexus-velocity
1.2
+
+
+ org.codehaus.plexus
+ plexus-container-default
+
+
+ velocity
+ velocity
+
+
@@ -237,7 +253,7 @@
junit
junit
- 4.13.1
+ 4.13.2
test