[
https://issues.apache.org/jira/browse/SCM-497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17961798#comment-17961798
]
ASF GitHub Bot commented on SCM-497:
------------------------------------
jira-importer commented on issue #708:
URL: https://github.com/apache/maven-scm/issues/708#issuecomment-2964614344
**[Olivier
Lamy](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=olamy)**
commented
don't use the maven embeder but only plexus.
> Please improve documentation on http://maven.apache.org/scm/guide/usage.html
> ----------------------------------------------------------------------------
>
> Key: SCM-497
> URL: https://issues.apache.org/jira/browse/SCM-497
> Project: Maven SCM (Moved to GitHub Issues)
> Issue Type: Improvement
> Components: documentation
> Affects Versions: 1.2
> Environment: dependencies: org.apache.maven:maven-embedder:2.0.4 and
> org.apache.maven.scm:maven-scm-api:1.2
> Reporter: Albert Kurucz
> Priority: Major
> Attachments: TestEmbedder.java
>
>
> 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:
> {noformat}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{noformat}
> Please improve usage doc on http://maven.apache.org/scm/guide/usage.html.
> Please provide me help getting started in this direction.
> Thx.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)