Grails Maven Plugin

mvn clean failed

Details

  • Type: Sub-task Sub-task
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

C:\dev\grailsapp>mvn clean
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - com.hyt:grailsapp:war:1.0-SNAPSHOT
[INFO] task-segment: [clean]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[WARNING] Attempting to build MavenProject instance for Artifact (org.grails:grails-maven-plugin:0.4-20081111.072928-5) of type: m
aven-plugin; constructing POM artifact instead.
[INFO] [grails:maven-clean {execution: default}]
[INFO] Running pre-compiled script
Environment set to development
Warning, target causing name overwriting of name default
log4j:WARN No appenders could be found for logger (org.springframework.core.io.support.PathMatchingResourcePatternResolver).
log4j:WARN Please initialize the log4j system properly.
[INFO] Unable to load script 'Clean' (error: C:\dev\grailsapp\target\grails-lib not found.)
[INFO] Run 'grails help' for a complete list of available scripts.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Grails returned non-zero value.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16 seconds
[INFO] Finished at: Thu Nov 13 12:38:44 EST 2008
[INFO] Final Memory: 17M/127M
[INFO] ------------------------------------------------------------------------

Activity

Hide
George Stathis added a comment -

This same error happens when one uses the grails-maven-archetype to create a grails project, then CDs into that project and runs 'mvn grails:create-app'. The latter generates yet another grails project within the first one. After that, all mvn commands cause this error to occur.

Show
George Stathis added a comment - This same error happens when one uses the grails-maven-archetype to create a grails project, then CDs into that project and runs 'mvn grails:create-app'. The latter generates yet another grails project within the first one. After that, all mvn commands cause this error to occur.
Hide
George Stathis added a comment -

Disregard my last comment. Happens whether one runs the 'mvn grails:create-app' within the app or not.

Show
George Stathis added a comment - Disregard my last comment. Happens whether one runs the 'mvn grails:create-app' within the app or not.
Hide
George Stathis added a comment -

I can no longer reproduce this after the changes made for GRAILS-3699. It might be safe to close this one.

Show
George Stathis added a comment - I can no longer reproduce this after the changes made for GRAILS-3699. It might be safe to close this one.
Hide
Peter Ledbrook added a comment -

Yes, the Grails libraries are no longer copied to the "grails-lib" directory, so this shouldn't be a problem any more.

Show
Peter Ledbrook added a comment - Yes, the Grails libraries are no longer copied to the "grails-lib" directory, so this shouldn't be a problem any more.

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: