karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-599) Archetypes CommandArchetypeTest unit test fails
Date Thu, 05 May 2011 10:38:04 GMT

    [ https://issues.apache.org/jira/browse/KARAF-599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029270#comment-13029270
] 

Jean-Baptiste Onofré commented on KARAF-599:
--------------------------------------------

I build on VirtualBox Windows XP (mvn 2.2.1/JDK Sun 1.5.0) and it works fine.

So it seems that the issue is really on Linux or at least on Unix system. I'm launching a
build on Solaris to see how it behaves.

> Archetypes CommandArchetypeTest unit test fails
> -----------------------------------------------
>
>                 Key: KARAF-599
>                 URL: https://issues.apache.org/jira/browse/KARAF-599
>             Project: Karaf
>          Issue Type: Bug
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.1
>
>
> The archetypes CommandArchetypeTest unit test fails:
> -------------------------------------------------------------------------------
> Test set: org.apache.karaf.archetypes.CommandArchetypeTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 11.439 sec <<<
FAILURE!
> testCommand(org.apache.karaf.archetypes.CommandArchetypeTest)  Time elapsed: 11.399 sec
 <<< ERROR!
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to read local copy of
metadata: Cannot read metadata from '/home/onofreje/.m2/repository/org/apache/karaf/jaas/org.apache.karaf.jaas.modules/2.2.1-SNAPSHOT/maven-metadata-apache-snapshots.xml':
expected START_TAG or END_TAG not TEXT (position: TEXT seen ...<extension>jar</...
@14:25) 
>   org.apache.karaf.jaas:org.apache.karaf.jaas.modules:jar:2.2.1-SNAPSHOT
> Path to dependency: 
>         1) org.apache.karaf.archetypes:archetypes-command:bundle:2.2.1-SNAPSHOT
>         2) org.apache.karaf.shell:org.apache.karaf.shell.console:jar:2.2.1-SNAPSHOT
>         3) org.apache.karaf.jaas:org.apache.karaf.jaas.modules:jar:2.2.1-SNAPSHOT
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:575)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>         at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
>         at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
>         at org.apache.karaf.archetypes.AbstractArchetypeTest.testArchetype(AbstractArchetypeTest.java:138)
>         at org.apache.karaf.archetypes.AbstractArchetypeTest.testKarafArchetype(AbstractArchetypeTest.java:90)
>         at org.apache.karaf.archetypes.CommandArchetypeTest.testCommand(CommandArchetypeTest.java:32)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at junit.framework.TestCase.runTest(TestCase.java:168)
>         at junit.framework.TestCase.runBare(TestCase.java:134)
>         at junit.framework.TestResult$1.protect(TestResult.java:110)
>         at junit.framework.TestResult.runProtected(TestResult.java:128)
>         at junit.framework.TestResult.run(TestResult.java:113)
>         at junit.framework.TestCase.run(TestCase.java:124)
>         at junit.framework.TestSuite.runTest(TestSuite.java:232)
>         at junit.framework.TestSuite.run(TestSuite.java:227)
>         at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
>         at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:261)
>         at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:875)
> Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Unable to
read local copy of metadata: Cannot read metadata from '/home/onofreje/.m2/repository/org/apache/karaf/jaas/org.apache.karaf.jaas.modules/2.2.1-SNAPSHOT/maven-metadata-apache-snapshots.xml':
expected START_TAG or END_TAG not TEXT (position: TEXT seen ...<extension>jar</...
@14:25) 
>   org.apache.karaf.jaas:org.apache.karaf.jaas.modules:jar:2.2.1-SNAPSHOT
> Path to dependency: 
>         1) org.apache.karaf.archetypes:archetypes-command:bundle:2.2.1-SNAPSHOT
>         2) org.apache.karaf.shell:org.apache.karaf.shell.console:jar:2.2.1-SNAPSHOT
>         3) org.apache.karaf.jaas:org.apache.karaf.jaas.modules:jar:2.2.1-SNAPSHOT
>         at org.apache.maven.artifact.transform.SnapshotTransformation.transformForResolve(SnapshotTransformation.java:68)
>         at org.apache.maven.artifact.transform.DefaultArtifactTransformationManager.transformForResolve(DefaultArtifactTransformationManager.java:57)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:129)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:311)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:288)
>         at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1415)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:405)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>         ... 33 more
> Caused by: org.apache.maven.artifact.repository.metadata.RepositoryMetadataResolutionException:
Unable to read local copy of metadata: Cannot read metadata from '/home/onofreje/.m2/repository/org/apache/karaf/jaas/org.apache.karaf.jaas.modules/2.2.1-SNAPSHOT/maven-metadata-apache-snapshots.xml':
expected START_TAG or END_TAG not TEXT (position: TEXT seen ...<extension>jar</...
@14:25) 
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(DefaultRepositoryMetadataManager.java:175)
>         at org.apache.maven.artifact.transform.AbstractVersionTransformation.resolveVersion(AbstractVersionTransformation.java:65)
>         at org.apache.maven.artifact.transform.SnapshotTransformation.transformForResolve(SnapshotTransformation.java:63)
>         ... 41 more
> Caused by: org.apache.maven.artifact.repository.metadata.RepositoryMetadataReadException:
Cannot read metadata from '/home/onofreje/.m2/repository/org/apache/karaf/jaas/org.apache.karaf.jaas.modules/2.2.1-SNAPSHOT/maven-metadata-apache-snapshots.xml':
expected START_TAG or END_TAG not TEXT (position: TEXT seen ...<extension>jar</...
@14:25) 
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.readMetadata(DefaultRepositoryMetadataManager.java:324)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.loadMetadata(DefaultRepositoryMetadataManager.java:276)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.mergeMetadata(DefaultRepositoryMetadataManager.java:198)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(DefaultRepositoryMetadataManager.java:166)
>         ... 43 more
> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: expected START_TAG
or END_TAG not TEXT (position: TEXT seen ...<extension>jar</... @14:25) 
>         at org.codehaus.plexus.util.xml.pull.MXParser.nextTag(MXParser.java:1083)
>         at org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader.parseVersioning(MetadataXpp3Reader.java:513)
>         at org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader.parseMetadata(MetadataXpp3Reader.java:352)
>         at org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader.read(MetadataXpp3Reader.java:866)
>         at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.readMetadata(DefaultRepositoryMetadataManager.java:311)
>         ... 46 more
> It has to be fixed before release cut off.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message