Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2
-
Fix Version/s: 1.x
-
Component/s: documentation
-
Labels:None
-
Environment:Hide<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-embedder</artifactId>
<version>2.0.4</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-api</artifactId>
<version>1.2</version>
<scope>test</scope>
<type>jar</type>
</dependency>
Show<dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-embedder</artifactId> <version>2.0.4</version> <type>jar</type> </dependency> <dependency> <groupId>org.apache.maven.scm</groupId> <artifactId>maven-scm-api</artifactId> <version>1.2</version> <scope>test</scope> <type>jar</type> </dependency>
-
Complexity:Intermediate
-
Testcase included:yes
-
Number of attachments :
Description
Trying to use Maven-SCM in my application I have selected the "With Plexus IOC" method as provided on http://maven.apache.org/scm/guide/usage.html.
I have made this to a small unit test (attached to this issue), which failed as:
Testsuite: com.jtstand.TestEmbedder
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
at org.codehaus.plexus.embed.Embedder.lookup(Embedder.java:78)
at com.jtstand.TestEmbedder.<init>(TestEmbedder.java:24)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at junit.framework.TestSuite.createTest(TestSuite.java:54)
at junit.framework.TestSuite.addTestMethod(TestSuite.java:280)
at junit.framework.TestSuite.<init>(TestSuite.java:140)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:481)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1031)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:888)
))
Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.032 sec
Please improve usage doc on http://maven.apache.org/scm/guide/usage.html.
Please provide me help getting started in this direction.
Thx.
don't use the maven embeder but only plexus.