grails / grails-core

The Grails Web Application Framework
http://grails.org
Apache License 2.0
2.78k stars 950 forks source link

GRAILS-9783: Grails webflow plugin cannot be installed (Failed to resolve dependencies) #5462

Closed graemerocher closed 9 years ago

graemerocher commented 11 years ago

Original Reporter: duh Environment: Mac OS X Mountain Lion, Grails 2.2.0, WebFlow 2.2.0 Version: 2.2 Migrated From: http://jira.grails.org/browse/GRAILS-9783

Webflow plugin dependency cannot be found. Similar to (or the same as) GRAILS-9781.

Steps to reproduce:

  1. clean / remove your ivy and maven cache: {code} mv ~/.grails ~/.grails-orig mv ~/.m2 ~/.m2-orig {code}
  2. create a clean grails project using Grails 2.2.0 {code} grails create-app dummy {code}
  3. add a compile time dependency for webflow and set the loglevel to warn in your grails-app/conf/BuildConfig.groovy: {code:java} grails.project.dependency.resolution = { ... log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
...

plugins {
    ...
    compile ":webflow:$grailsVersion"
}

{code}

  1. compile the project {code} grails compile {code}

The compilation will fail as the webflow plugin cannot be found, even though it [does exist|http://www.versioneye.com/package/org~grails--grails-webflow/version/2~2~0].

If you look at the maven central error, you see that Grails is actually looking in the wrong place. It uses the following URL: {code} ==== mavenCentral: tried http://repo1.maven.org/maven2/org/grails/plugins/webflow/2.2.0/webflow-2.2.0.pom -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: http://repo1.maven.org/maven2/org/grails/plugins/webflow/2.2.0/webflow-2.2.0.zip {code}

While in fact the plugin is located at (grails-webflow instead of plugins/grails/webflow): {code} http://repo1.maven.org/maven2/org/grails/grails-webflow/2.2.0/ {code}

The same goes for all [other maven repositories|http://mvnrepository.com/artifact/org.grails/grails-webflow] that contain the webflow plugin. Everywhere grails-webflow is used instead of plugins/grails/webflow causing grails to fail in finding the plugin...

The complete output of the dependency resolve errors are as follows: {code} jeroen@ripcurl ~/Desktop/dummy $ grails compile Downloading: liquibase-core-2.0.5.jar :: problems summary :: :::: WARNINGS module not found: org.grails.plugins#webflow;2.2.0 ==== grailsPlugins: tried -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /Users/jeroen/Desktop/dummy/lib/webflow-2.2.0.zip ==== grailsHome: tried /opt/local/share/java/grails/lib/org.grails.plugins/webflow/ivy-2.2.0.xml -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /opt/local/share/java/grails/lib/org.grails.plugins/webflow/jars/webflow-2.2.0.zip /opt/local/share/java/grails/lib/org.grails.plugins/webflow/bundles/webflow-2.2.0.zip ==== grailsHome: tried /opt/local/share/java/grails/src/libs/webflow-2.2.0.xml -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /opt/local/share/java/grails/src/libs/webflow-2.2.0.zip ==== grailsHome: tried /opt/local/share/java/grails/dist/webflow-2.2.0.xml -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /opt/local/share/java/grails/dist/webflow-2.2.0.zip ==== grailsHome: tried /Users/jeroen/.grails/2.2.0/cached-installed-plugins/webflow-2.2.0.xml -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /Users/jeroen/.grails/2.2.0/cached-installed-plugins/webflow-2.2.0.zip ==== grailsHome: tried /opt/local/share/java/grails/plugins/webflow-2.2.0.pom -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /opt/local/share/java/grails/plugins/webflow-2.2.0.zip ==== grailsCentral: tried http://grails.org/plugins/grails-webflow/tags/RELEASE_2.2.0/webflow-2.2.0.pom -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: http://grails.org/plugins/grails-webflow/tags/RELEASE_2.2.0/grails-webflow-2.2.0.zip ==== localMavenResolver: tried /Users/jeroen/.m2/repository/org/grails/plugins/webflow/2.2.0/webflow-2.2.0.pom -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /Users/jeroen/.m2/repository/org/grails/plugins/webflow/2.2.0/webflow-2.2.0.zip ==== mavenCentral: tried http://repo1.maven.org/maven2/org/grails/plugins/webflow/2.2.0/webflow-2.2.0.pom -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: http://repo1.maven.org/maven2/org/grails/plugins/webflow/2.2.0/webflow-2.2.0.zip
    ::          UNRESOLVED DEPENDENCIES         ::
    ::::::::::::::::::::::::::::::::::::::::::::::
    :: org.grails.plugins#webflow;2.2.0: not found
    ::::::::::::::::::::::::::::::::::::::::::::::

:: problems summary :: :::: WARNINGS module not found: org.grails.plugins#webflow;2.2.0 ==== grailsPlugins: tried -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /Users/jeroen/Desktop/dummy/lib/webflow-2.2.0.zip ==== grailsHome: tried /opt/local/share/java/grails/lib/org.grails.plugins/webflow/ivy-2.2.0.xml -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /opt/local/share/java/grails/lib/org.grails.plugins/webflow/jars/webflow-2.2.0.zip /opt/local/share/java/grails/lib/org.grails.plugins/webflow/bundles/webflow-2.2.0.zip ==== grailsHome: tried /opt/local/share/java/grails/src/libs/webflow-2.2.0.xml -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /opt/local/share/java/grails/src/libs/webflow-2.2.0.zip ==== grailsHome: tried /opt/local/share/java/grails/dist/webflow-2.2.0.xml -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /opt/local/share/java/grails/dist/webflow-2.2.0.zip ==== grailsHome: tried /Users/jeroen/.grails/2.2.0/cached-installed-plugins/webflow-2.2.0.xml -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /Users/jeroen/.grails/2.2.0/cached-installed-plugins/webflow-2.2.0.zip ==== grailsHome: tried /opt/local/share/java/grails/plugins/webflow-2.2.0.pom -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /opt/local/share/java/grails/plugins/webflow-2.2.0.zip ==== grailsCentral: tried http://grails.org/plugins/grails-webflow/tags/RELEASE_2.2.0/webflow-2.2.0.pom -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: http://grails.org/plugins/grails-webflow/tags/RELEASE_2.2.0/grails-webflow-2.2.0.zip ==== localMavenResolver: tried /Users/jeroen/.m2/repository/org/grails/plugins/webflow/2.2.0/webflow-2.2.0.pom -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /Users/jeroen/.m2/repository/org/grails/plugins/webflow/2.2.0/webflow-2.2.0.zip ==== mavenCentral: tried http://repo1.maven.org/maven2/org/grails/plugins/webflow/2.2.0/webflow-2.2.0.pom -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: http://repo1.maven.org/maven2/org/grails/plugins/webflow/2.2.0/webflow-2.2.0.zip :::::::::::::::::::::::::::::::::::::::::::::: :: UNRESOLVED DEPENDENCIES :: :::::::::::::::::::::::::::::::::::::::::::::: :: org.grails.plugins#webflow;2.2.0: not found ::::::::::::::::::::::::::::::::::::::::::::::

:: problems summary :: :::: WARNINGS module not found: org.grails.plugins#webflow;2.2.0 ==== grailsPlugins: tried -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /Users/jeroen/Desktop/dummy/lib/webflow-2.2.0.zip ==== grailsHome: tried /opt/local/share/java/grails/lib/org.grails.plugins/webflow/ivy-2.2.0.xml -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /opt/local/share/java/grails/lib/org.grails.plugins/webflow/jars/webflow-2.2.0.zip /opt/local/share/java/grails/lib/org.grails.plugins/webflow/bundles/webflow-2.2.0.zip ==== grailsHome: tried /opt/local/share/java/grails/src/libs/webflow-2.2.0.xml -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /opt/local/share/java/grails/src/libs/webflow-2.2.0.zip ==== grailsHome: tried /opt/local/share/java/grails/dist/webflow-2.2.0.xml -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /opt/local/share/java/grails/dist/webflow-2.2.0.zip ==== grailsHome: tried /Users/jeroen/.grails/2.2.0/cached-installed-plugins/webflow-2.2.0.xml -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /Users/jeroen/.grails/2.2.0/cached-installed-plugins/webflow-2.2.0.zip ==== grailsHome: tried /opt/local/share/java/grails/plugins/webflow-2.2.0.pom -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /opt/local/share/java/grails/plugins/webflow-2.2.0.zip ==== grailsCentral: tried http://grails.org/plugins/grails-webflow/tags/RELEASE_2.2.0/webflow-2.2.0.pom -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: http://grails.org/plugins/grails-webflow/tags/RELEASE_2.2.0/grails-webflow-2.2.0.zip ==== localMavenResolver: tried /Users/jeroen/.m2/repository/org/grails/plugins/webflow/2.2.0/webflow-2.2.0.pom -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: /Users/jeroen/.m2/repository/org/grails/plugins/webflow/2.2.0/webflow-2.2.0.zip ==== mavenCentral: tried http://repo1.maven.org/maven2/org/grails/plugins/webflow/2.2.0/webflow-2.2.0.pom -- artifact org.grails.plugins#webflow;2.2.0!webflow.zip: http://repo1.maven.org/maven2/org/grails/plugins/webflow/2.2.0/webflow-2.2.0.zip :::::::::::::::::::::::::::::::::::::::::::::: :: UNRESOLVED DEPENDENCIES :: :::::::::::::::::::::::::::::::::::::::::::::: :: org.grails.plugins#webflow;2.2.0: not found ::::::::::::::::::::::::::::::::::::::::::::::

| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

graemerocher commented 11 years ago

graemerocher said: See the comments on GRAILS-9781 for how to install the plugin, this issue is a duplicate

graemerocher commented 11 years ago

duh said: Also note that this issue is reproducible by at least 4 colleagues, as well on a clean Mac Mini...