You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2003/09/05 01:07:10 UTC

[jira] Created: (MAVEN-783) clarify plugin version loading

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-783


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-783
    Summary: clarify plugin version loading
       Type: Task

     Status: Assigned
   Priority: Major

 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
   Fix Fors:
             1.0-final

   Assignee: Brett Porter
   Reporter: Brett Porter

    Created: Thu, 4 Sep 2003 6:06 PM
    Updated: Thu, 4 Sep 2003 6:06 PM

Description:
verify that:

1) there should only be one plugin of a type loaded at a time (easy to change by having the manager use the artifactId as the name - removing the version)
2) if 1.2 and 1.2-SNAPSHOT are present, use 1.2 (difficult, because we have no concept of version X > version Y since you can use any type of string)
3) if 1.2 and 1.3 are present, use 1.3
4) if a plugin dependency element is present, use that version.

also clarify:
 plugin downloaded via dependency or goal to shared $MAVEN_HOME/plugins will:
1) have correct permissions, 
2) will subsequently be extracted by other users
3) will correctly update the plugin cache

also document:
- that plugins that hook into goals without any property based control are bad form (eg programmatically removing linkcheck from the list of registered reports)
- check maven doesn't include any such plugins

the reason for the above is that one project might depend on a plugin that does that, and could consequently break others. The alternative is a far more complicated set of checks about which plugins should be applied to which projects (possibly levels of install to maven, install to user and install to project via dependency only), but that should be tried at a later date.





---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report 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


RE: [jira] Created: (MAVEN-783) clarify plugin version loading

Posted by Michal Maczka <mm...@raay-cqs.com>.

> -----Original Message-----
> From: jira@codehaus.org [mailto:jira@codehaus.org]
> Sent: Friday, September 05, 2003 1:07 AM
> To: dev@maven.apache.org
> Subject: [jira] Created: (MAVEN-783) clarify plugin version loading
> 
> Message:
> 
>   A new issue has been created in JIRA.
> 
> ---------------------------------------------------------------------
> View the issue:
> 
>   http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-783
> 
> 
> Here is an overview of the issue:
> ---------------------------------------------------------------------
>         Key: MAVEN-783
>     Summary: clarify plugin version loading
>        Type: Task
> 
>      Status: Assigned
>    Priority: Major
> 
>  Time Spent: Unknown
>   Remaining: Unknown
> 
>     Project: maven
>    Fix Fors:
>              1.0-final
> 
>    Assignee: Brett Porter
>    Reporter: Brett Porter
> 
>     Created: Thu, 4 Sep 2003 6:06 PM
>     Updated: Thu, 4 Sep 2003 6:06 PM
> 
> Description:
> verify that:
> 
> 1) there should only be one plugin of a type loaded at a time (easy to
> change by having the manager use the artifactId as the name - removing
the
> version)

I agree that for 1.0 and probably only for 1.0 this is a right
assumption. 

> 2) if 1.2 and 1.2-SNAPSHOT are present, use 1.2 (difficult, because we
> have no concept of version X > version Y since you can use any type of
> string)
> 3) if 1.2 and 1.3 are present, use 1.3

AD 2 & 3 

We can easily use information which we have in POM:

<versions>
    <version>
      <id>b1</id>
      <name>1.0-b1</name>
      <tag>MAVEN_1_0_B1</tag>
    </version>
    <version>
      <id>b2</id>
      <name>1.0-b2</name>
      <tag>MAVEN_1_0_B2</tag>
    </version>
    <version>
      <id>b3</id>
      <name>1.0-b3</name>
      <tag>MAVEN_1_0_B3</tag>
    </version>
    <version>
      <id>b4</id>
      <name>1.0-b4</name>
      <tag>MAVEN_1_0_B4</tag>
    </version>
  <versions>

verion 1.0-b3 is "below" 1.0-b2 so it is higher version.

[..]

Michal





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