Closed snigel closed 8 years ago
The tiles plugin does not seem to resolve version ranges correctly when used together with the go-offline goal for the dependency plugin.
I created a pom like this:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>myCompany</groupId> <artifactId>myArtifact</artifactId> <version>1.0.0-SNAPSHOT</version> <packaging>pom</packaging> <build> <plugins> <plugin> <groupId>io.repaint.maven</groupId> <artifactId>tiles-maven-plugin</artifactId> <version>1.8</version> <extensions>true</extensions> </plugin> </plugins> </build> </project>
Then I ran mvn dependency:go-offline
[INFO] Plugin Resolved: tiles-maven-plugin-1.8.jar Downloading: http://my-server/nexus/content/groups/public/org/apache/maven/shared/maven-filtering/%5B1.3,1.3%5D/maven-filtering-%5B1.3,1.3%5D.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.241 s [INFO] Finished at: 2015-10-21T19:57:26+02:00 [INFO] Final Memory: 22M/699M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:resolve-plugins (resolve-plugins) on project myArtifact: Nested: Could not find artifact org.apache.maven.shared:maven-filtering:jar:[1.3,1.3] in central-mirror (http://my-server/nexus/content/groups/public)
Fixed and awaiting review at:
https://review.gerrithub.io/250824 Remove hard locked range on maven-filtering.
The tiles plugin does not seem to resolve version ranges correctly when used together with the go-offline goal for the dependency plugin.
I created a pom like this:
Then I ran mvn dependency:go-offline
[INFO] Plugin Resolved: tiles-maven-plugin-1.8.jar Downloading: http://my-server/nexus/content/groups/public/org/apache/maven/shared/maven-filtering/%5B1.3,1.3%5D/maven-filtering-%5B1.3,1.3%5D.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.241 s [INFO] Finished at: 2015-10-21T19:57:26+02:00 [INFO] Final Memory: 22M/699M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:resolve-plugins (resolve-plugins) on project myArtifact: Nested: Could not find artifact org.apache.maven.shared:maven-filtering:jar:[1.3,1.3] in central-mirror (http://my-server/nexus/content/groups/public)