You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Thomas Van de Velde (JIRA)" <ji...@codehaus.org> on 2005/10/05 13:36:11 UTC

[jira] Created: (MNG-1093) Improve Error Handling

Improve Error Handling
----------------------

         Key: MNG-1093
         URL: http://jira.codehaus.org/browse/MNG-1093
     Project: Maven 2
        Type: Improvement
  Components: maven-eclipse-plugin  
    Versions: 2.0-beta-3    
 Reporter: Thomas Van de Velde
    Priority: Minor


When running a goal that doesn't exist (eclipse:clean), you get a non descriptive error:

[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO] -------------------------------------------------------------------------
---
[INFO] Building Project Reference Manager Project
[INFO]    task-segment: [eclipse:clean]
[INFO] -------------------------------------------------------------------------
---
[INFO] -------------------------------------------------------------------------
---
[ERROR] BUILD ERROR
[INFO] -------------------------------------------------------------------------
---
[INFO] Diagnosis: Failed to configure plugin parameters for: org.apache.maven.pl
ugins:maven-eclipse-plugin:2.0-beta-1

Reason: Cannot assign value 'C:\dev\projects\M2P' to fiel
d: org.apache.maven.plugin.eclipse.EclipseCleanMojo.basedir; type: java.io.File
Root Cause: null


[INFO] -------------------------------------------------------------------------
---
[INFO] -------------------------------------------------------------------------
---
[ERROR] BUILD ERROR
[INFO] -------------------------------------------------------------------------
---
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Oct 05 13:27:10 CEST 2005
[INFO] Final Memory: 1M/3M
[INFO] -------------------------------------------------------------------------
---

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1093) Improve Error Handling

Posted by "Edwin Punzalan (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1093?page=all ]

Edwin Punzalan updated MNG-1093:
--------------------------------

    Attachment: MNG-1093-maven-eclipse-plugin.patch

The exception is caused by ${project.basedir}... there is no such expression in m2.

Replaced it with ${basedir}

> Improve Error Handling
> ----------------------
>
>          Key: MNG-1093
>          URL: http://jira.codehaus.org/browse/MNG-1093
>      Project: Maven 2
>         Type: Improvement
>   Components: maven-eclipse-plugin
>     Versions: 2.0-beta-3
>     Reporter: Thomas Van de Velde
>     Assignee: Edwin Punzalan
>     Priority: Minor
>      Fix For: 2.0
>  Attachments: MNG-1093-maven-eclipse-plugin.patch
>
>
> When running a goal that doesn't exist (eclipse:clean), you get a non descriptive error:
> [INFO] Searching repository for plugin with prefix: 'eclipse'.
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Building Project Reference Manager Project
> [INFO]    task-segment: [eclipse:clean]
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] BUILD ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Diagnosis: Failed to configure plugin parameters for: org.apache.maven.pl
> ugins:maven-eclipse-plugin:2.0-beta-1
> Reason: Cannot assign value 'C:\dev\projects\M2P' to fiel
> d: org.apache.maven.plugin.eclipse.EclipseCleanMojo.basedir; type: java.io.File
> Root Cause: null
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] BUILD ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Total time: < 1 second
> [INFO] Finished at: Wed Oct 05 13:27:10 CEST 2005
> [INFO] Final Memory: 1M/3M
> [INFO] -------------------------------------------------------------------------
> ---

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1093) Improve Error Handling

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1093?page=comments#action_48407 ] 

John Casey commented on MNG-1093:
---------------------------------

actually, it seems that this mojo (eclipse:clean) does in fact exist. If you run 'eclipse:foo' you will see that it reports the mojo to be non-existent. However, the error handling for eclipse:clean does still need work, as I got a StackOverflowError when I tried to run it just now.

> Improve Error Handling
> ----------------------
>
>          Key: MNG-1093
>          URL: http://jira.codehaus.org/browse/MNG-1093
>      Project: Maven 2
>         Type: Improvement
>   Components: maven-eclipse-plugin
>     Versions: 2.0-beta-3
>     Reporter: Thomas Van de Velde
>     Priority: Minor
>      Fix For: 2.0-beta-4

>
>
> When running a goal that doesn't exist (eclipse:clean), you get a non descriptive error:
> [INFO] Searching repository for plugin with prefix: 'eclipse'.
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Building Project Reference Manager Project
> [INFO]    task-segment: [eclipse:clean]
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] BUILD ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Diagnosis: Failed to configure plugin parameters for: org.apache.maven.pl
> ugins:maven-eclipse-plugin:2.0-beta-1
> Reason: Cannot assign value 'C:\dev\projects\M2P' to fiel
> d: org.apache.maven.plugin.eclipse.EclipseCleanMojo.basedir; type: java.io.File
> Root Cause: null
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] BUILD ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Total time: < 1 second
> [INFO] Finished at: Wed Oct 05 13:27:10 CEST 2005
> [INFO] Final Memory: 1M/3M
> [INFO] -------------------------------------------------------------------------
> ---

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-1093) Improve Error Handling

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1093?page=all ]
     
Brett Porter closed MNG-1093:
-----------------------------

    Resolution: Fixed

this was unnecessary in 2.0 due to improved error handling, but I've applied the change anyway for consistency.

> Improve Error Handling
> ----------------------
>
>          Key: MNG-1093
>          URL: http://jira.codehaus.org/browse/MNG-1093
>      Project: Maven 2
>         Type: Improvement
>   Components: maven-eclipse-plugin
>     Versions: 2.0-beta-3
>     Reporter: Thomas Van de Velde
>     Assignee: Edwin Punzalan
>     Priority: Minor
>      Fix For: 2.0.1
>  Attachments: MNG-1093-maven-eclipse-plugin.patch
>
>
> When running a goal that doesn't exist (eclipse:clean), you get a non descriptive error:
> [INFO] Searching repository for plugin with prefix: 'eclipse'.
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Building Project Reference Manager Project
> [INFO]    task-segment: [eclipse:clean]
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] BUILD ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Diagnosis: Failed to configure plugin parameters for: org.apache.maven.pl
> ugins:maven-eclipse-plugin:2.0-beta-1
> Reason: Cannot assign value 'C:\dev\projects\M2P' to fiel
> d: org.apache.maven.plugin.eclipse.EclipseCleanMojo.basedir; type: java.io.File
> Root Cause: null
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] BUILD ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Total time: < 1 second
> [INFO] Finished at: Wed Oct 05 13:27:10 CEST 2005
> [INFO] Final Memory: 1M/3M
> [INFO] -------------------------------------------------------------------------
> ---

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1093) Improve Error Handling

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1093?page=all ]

Brett Porter updated MNG-1093:
------------------------------

    Fix Version: 2.0-beta-4

> Improve Error Handling
> ----------------------
>
>          Key: MNG-1093
>          URL: http://jira.codehaus.org/browse/MNG-1093
>      Project: Maven 2
>         Type: Improvement
>   Components: maven-eclipse-plugin
>     Versions: 2.0-beta-3
>     Reporter: Thomas Van de Velde
>     Priority: Minor
>      Fix For: 2.0-beta-4

>
>
> When running a goal that doesn't exist (eclipse:clean), you get a non descriptive error:
> [INFO] Searching repository for plugin with prefix: 'eclipse'.
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Building Project Reference Manager Project
> [INFO]    task-segment: [eclipse:clean]
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] BUILD ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Diagnosis: Failed to configure plugin parameters for: org.apache.maven.pl
> ugins:maven-eclipse-plugin:2.0-beta-1
> Reason: Cannot assign value 'C:\dev\projects\M2P' to fiel
> d: org.apache.maven.plugin.eclipse.EclipseCleanMojo.basedir; type: java.io.File
> Root Cause: null
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] BUILD ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Total time: < 1 second
> [INFO] Finished at: Wed Oct 05 13:27:10 CEST 2005
> [INFO] Final Memory: 1M/3M
> [INFO] -------------------------------------------------------------------------
> ---

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org