Hi,
We are in the process of integrating Maven in to Gentoo. Currently, we are
trying to bootstrap maven. Our strategy is to integrate each and every
sub-project of Maven-2.2.1 [1] separately. So, we first transformed these to
an ant projects by generating the build.xml via `mvn ant:ant`. I know that
Maven provides a build.xml in the parent, but we have to integrate each and
every project separately. We will be moving to 3.x after 2.x is complete. We
chose 2.x as it's much stable, and is much popular currently.

So far, we have successfully integrated project up-to maven-core in the
build order. But, we are encountering an issue in maven-core. When invoked
via mvn (mvn install), it passes the tests successfully (obviously!). But
when I invoke the project via ant, a test fails with an ERROR.

I'm sending this to the dev group thinking this error is probably obvious to
you all.

=================================
test:
    [mkdir] Created dir:
/gentoo-sources/maven/maven-2/tags/maven-2.2.1/maven-core-2.2.1/target/test-reports
    [junit] Running org.apache.maven.WagonSelectorTest
    [junit] Testsuite: org.apache.maven.WagonSelectorTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.361 sec
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.361 sec
    [junit]
    [junit] Testcase: testSelectHttpWagonFromDefault took 0.358 sec
    [junit]     Caused an ERROR
    [junit] Error starting container
    [junit] org.codehaus.plexus.PlexusContainerException: Error starting
container
    [junit]     at
org.codehaus.plexus.DefaultPlexusContainer.start(DefaultPlexusContainer.java:795)
    [junit]     at
org.codehaus.plexus.PlexusTestCase.setUp(PlexusTestCase.java:121)
    [junit]     at
org.apache.maven.WagonSelectorTest.setUp(WagonSelectorTest.java:76)
    [junit] Caused by:
org.codehaus.plexus.component.repository.exception.ComponentRepositoryException:
Component descriptor role:
'org.sonatype.plexus.components.sec.dispatcher.SecDispatcher',
implementation:
'org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher', role
hint: 'maven' has a hint, but there are other implementations that don't
    [junit]     at
org.codehaus.plexus.component.repository.DefaultComponentRepository.addComponentDescriptor(DefaultComponentRepository.java:184)
    [junit]     at
org.codehaus.plexus.DefaultPlexusContainer.addComponentDescriptor(DefaultPlexusContainer.java:515)
    [junit]     at
org.codehaus.plexus.DefaultPlexusContainer.discoverComponents(DefaultPlexusContainer.java:738)
    [junit]     at
org.codehaus.plexus.DefaultPlexusContainer.start(DefaultPlexusContainer.java:779)
    [junit]

BUILD FAILED
/gentoo-sources/maven/maven-2/tags/maven-2.2.1/maven-core-2.2.1/maven-build.xml:206:
Test org.apache.maven.WagonSelectorTest failed

=================================

Any clues on getting rid of this error? I'm thinking whether the generated
build.xml has some issue. Much appreciate your help!

The maven-build.xml is at [2]. The full ant output of the test failure is at
[3]. I'm using maven-ant-plugin-2.3 with maven-2.2.1. The test fails with
both ant 1.7.1 and 1.8.1. Please do let me know if any other information is
needed.

[1]
https://svn.apache.org/repos/asf/maven/maven-2/tags/maven-2.2.1/maven-core/
[2] http://pastebin.com/9eWM0xjN
[3] http://pastebin.com/vRC6qVa8

Thanks,
--Kasun

-- 
~~~*******'''''''''''''*******~~~
Kasun Gajasinghe,
University of Moratuwa
Blog: http://kasunbg.blogspot.com
Twitter: http://twitter.com/kasunbg

Reply via email to