Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such property: applicationName for class: org.codehaus.groovy.grails.resolve.maven.aether.AetherDependencyManager #1

Open
lrkwz opened this issue Feb 12, 2014 · 4 comments

Comments

@lrkwz
Copy link

lrkwz commented Feb 12, 2014

Hello I face:

Error executing script DownloadSourcesAndJavadocs: No such property: applicationName for class: org.codehaus.groovy.grails.resolve.maven.aether.AetherDependencyManager (Use --stacktrace to see the full trace)

Steps to reproduce:

grails create-app testapp
cd testapp
(edit grails-app/BuildConfig..groovy)
grails run-app
grails download-sources-and-javadocs

Grails version: 2.3.5

@lhotari
Copy link
Owner

lhotari commented Feb 14, 2014

DownloadSourcesAndJavadocs doesn't work for 2.3.x . In 2.3.x, there is a command in Grails to download the sources.

This is how I've been using the scripts with 2.3.x :

# installing script
cd $GRAILS_HOME/scripts
wget https://github.com/lhotari/grails-eclipse-scripts/raw/master/scripts/StsLinkSourcesAndJavadocs.groovy

# using script
cd ~/my-grails-project
grails integrate-with --eclipse
grails compile
grails refresh-dependencies --include-source --include-javadoc /dev/null
grails sts-link-sources-and-javadocs

@lhotari
Copy link
Owner

lhotari commented Feb 14, 2014

I use this type of shell functions in oh-my-zsh:

function grailsdev_sts_link_script_install {
    (
    if [ -d "$GRAILS_HOME/scripts" ]; then
        cd "$GRAILS_HOME/scripts"
        if [ ! -f StsLinkSourcesAndJavadocs.groovy ]; then 
            wget https://github.com/lhotari/grails-eclipse-scripts/raw/master/scripts/StsLinkSourcesAndJavadocs.groovy
        fi
    fi
    )
}

function grails_eclipse {
    grailsdev_sts_link_script_install
    grails clean --non-interactive
    grails integrate-with --eclipse --non-interactive
    grails compile --non-interactive
    grails refresh-dependencies --non-interactive --include-source --include-javadoc /dev/null
    grails sts-link-sources-and-javadocs --stacktrace
}

by using this I can do "grails_eclipse" in the project directory and it takes care of installing the script if it's missing.

@confile
Copy link

confile commented Feb 20, 2014

+1 I have the save problem. I did not get the source jar in Grails 2.3.6

@confile
Copy link

confile commented Feb 20, 2014

When I do

grails sts-link-sources-and-javadocs

I get this error:

Error |
Error executing script StsLinkSourcesAndJavadocs: groovy.lang.MissingMethodException: No signature of method: StsLinkSourcesAndJavadocs$_run_closure2_closure4.doCall() is applicable for argument types: (org.codehaus.groovy.grails.io.support.FileSystemResource) values: [/Users/mg/Documents/Grails/GGTS3.5M2-Grails2.3.6/buddyis/target/work/plugins/jaxrs-0.10/lib/org.restlet.ext.jaxrs-noruntimedel-2.1.4.jar]
Possible solutions: doCall(org.springframework.core.io.Resource), call(), call([Ljava.lang.Object;), call(java.lang.Object), call(org.springframework.core.io.Resource), findAll() (Use --stacktrace to see the full trace)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants