Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.0.1
-
None
Description
I have many published artifacts with dependencies that have version ranges, e.g.
<dependency>
<groupId>net.solarnetwork.node</groupId>
<artifactId>net.solarnetwork.node</artifactId>
<version>[1.20,2.0)</version>
<scope>compile</scope>
</dependency>
It seems any dependency specified as a range is causing metadata scanning to fail and cause erratic behavior. I see errors in the log such as
org.apache.jackrabbit.spi.commons.conversion.MalformedPathException: 'net.solarnetwork.node;net.solarnetwork.node-[1.20,2.0).jar' is not a valid path. '?' not a valid name character. at org.apache.jackrabbit.spi.commons.conversion.PathParser.parse(PathParser.java:327) ~[jackrabbit-spi-commons-2.6.5.jar:?] at org.apache.jackrabbit.spi.commons.conversion.PathParser.parse(PathParser.java:122) ~[jackrabbit-spi-commons-2.6.5.jar:?] at org.apache.jackrabbit.spi.commons.conversion.ParsingPathResolver.getQPath(ParsingPathResolver.java:90) ~[jackrabbit-spi-commons-2.6.5.jar:?] at org.apache.jackrabbit.spi.commons.conversion.CachingPathResolver.getQPath(CachingPathResolver.java:98) ~[jackrabbit-spi-commons-2.6.5.jar:?] at org.apache.jackrabbit.spi.commons.conversion.CachingPathResolver.getQPath(CachingPathResolver.java:77) ~[jackrabbit-spi-commons-2.6.5.jar:?] at org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver.getQPath(DefaultNamePathResolver.java:82) ~[jackrabbit-spi-commons-2.6.5.jar:?] at org.apache.jackrabbit.core.SessionImpl.getQPath(SessionImpl.java:648) ~[jackrabbit-core-2.6.5.jar:2.6.5] at org.apache.jackrabbit.core.session.SessionContext.getQPath(SessionContext.java:338) ~[jackrabbit-core-2.6.5.jar:2.6.5] at org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:237) ~[jackrabbit-core-2.6.5.jar:2.6.5] at org.apache.jackrabbit.core.NodeImpl.resolveRelativeNodePath(NodeImpl.java:222) ~[jackrabbit-core-2.6.5.jar:2.6.5] at org.apache.jackrabbit.core.NodeImpl.hasNode(NodeImpl.java:2277) ~[jackrabbit-core-2.6.5.jar:2.6.5] at org.apache.jackrabbit.commons.JcrUtils.getOrAddNode(JcrUtils.java:515) ~[jackrabbit-jcr-commons-2.6.5.jar:?] at org.apache.jackrabbit.commons.JcrUtils.getOrAddNode(JcrUtils.java:493) ~[jackrabbit-jcr-commons-2.6.5.jar:?] at org.apache.archiva.metadata.repository.jcr.JcrMetadataRepository.updateProjectVersion(JcrMetadataRepository.java:310) ~[metadata-store-jcr-2.0.1.jar:?]
and
org.sonatype.aether.resolution.VersionRangeResolutionException: No versions available for net.solarnetwork.node:net.solarnetwork.node:jar:[1.20,2.0) within specified range at org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:376) ~[aether-impl-1.13.1.jar:?] at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:240) ~[aether-impl-1.13.1.jar:?] ... 54 more