You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Gier (JIRA)" <ji...@codehaus.org> on 2007/09/27 00:42:08 UTC

[jira] Created: (MDEP-115) Dependency sort mojo

Dependency sort mojo
--------------------

                 Key: MDEP-115
                 URL: http://jira.codehaus.org/browse/MDEP-115
             Project: Maven 2.x Dependency Plugin
          Issue Type: New Feature
    Affects Versions: 2.0-alpha-4
            Reporter: Paul Gier
            Assignee: Brian Fox
         Attachments: maven-dependency-plugin-r579844.patch

I have a few projects that have a large number of dependencies.  I would like to be able to sort them into alphabetical order for easier readability.  Also sometimes the same dependency gets copied and pasted and there is a duplicate.  I created the sort mojo to sort dependencies in alphabetical order and optionally remove duplicates and group the dependencies by their scope.

-- 
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

        

[jira] Commented: (MDEP-115) Dependency sort mojo

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_109692 ] 

Paul Gier commented on MDEP-115:
--------------------------------

Yeah, a new pom formatting plugin would probably be useful, and a good place for this goal to go.  I just didn't want to spend too much time on this.  I wrote this mojo just so I didn't have to clean up a few of my pom dependencies by hand.

> Dependency sort mojo
> --------------------
>
>                 Key: MDEP-115
>                 URL: http://jira.codehaus.org/browse/MDEP-115
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0-alpha-4
>            Reporter: Paul Gier
>            Assignee: Brian Fox
>             Fix For: 2.0-alpha-5
>
>         Attachments: maven-dependency-plugin-r579844.patch, MDEP-115-maven-dependency-plugin-r580489-with-test-and-doc.patch
>
>
> I have a few projects that have a large number of dependencies.  I would like to be able to sort them into alphabetical order for easier readability.  Also sometimes the same dependency gets copied and pasted and there is a duplicate.  I created the sort mojo to sort dependencies in alphabetical order and optionally remove duplicates and group the dependencies by their scope.

-- 
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

        

[jira] Updated: (MDEP-115) Dependency sort mojo

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEP-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Fox updated MDEP-115:
---------------------------

    Fix Version/s: 2.0-alpha-5

> Dependency sort mojo
> --------------------
>
>                 Key: MDEP-115
>                 URL: http://jira.codehaus.org/browse/MDEP-115
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0-alpha-4
>            Reporter: Paul Gier
>            Assignee: Brian Fox
>             Fix For: 2.0-alpha-5
>
>         Attachments: maven-dependency-plugin-r579844.patch, MDEP-115-maven-dependency-plugin-r580489-with-test-and-doc.patch
>
>
> I have a few projects that have a large number of dependencies.  I would like to be able to sort them into alphabetical order for easier readability.  Also sometimes the same dependency gets copied and pasted and there is a duplicate.  I created the sort mojo to sort dependencies in alphabetical order and optionally remove duplicates and group the dependencies by their scope.

-- 
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

        

[jira] Updated: (MDEP-115) Dependency sort mojo

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEP-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Gier updated MDEP-115:
---------------------------

    Attachment: MDEP-115-maven-dependency-plugin-r580489-with-test-and-doc.patch

Here is a new patch with test and docs, and a couple improvements thanks to the tests ;)

> Dependency sort mojo
> --------------------
>
>                 Key: MDEP-115
>                 URL: http://jira.codehaus.org/browse/MDEP-115
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0-alpha-4
>            Reporter: Paul Gier
>            Assignee: Brian Fox
>         Attachments: maven-dependency-plugin-r579844.patch, MDEP-115-maven-dependency-plugin-r580489-with-test-and-doc.patch
>
>
> I have a few projects that have a large number of dependencies.  I would like to be able to sort them into alphabetical order for easier readability.  Also sometimes the same dependency gets copied and pasted and there is a duplicate.  I created the sort mojo to sort dependencies in alphabetical order and optionally remove duplicates and group the dependencies by their scope.

-- 
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

        

[jira] Commented: (MDEP-115) Dependency sort mojo

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_108374 ] 

Brian Fox commented on MDEP-115:
--------------------------------

Interesting. Can you include some unit tests and site docs? 

> Dependency sort mojo
> --------------------
>
>                 Key: MDEP-115
>                 URL: http://jira.codehaus.org/browse/MDEP-115
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0-alpha-4
>            Reporter: Paul Gier
>            Assignee: Brian Fox
>         Attachments: maven-dependency-plugin-r579844.patch
>
>
> I have a few projects that have a large number of dependencies.  I would like to be able to sort them into alphabetical order for easier readability.  Also sometimes the same dependency gets copied and pasted and there is a duplicate.  I created the sort mojo to sort dependencies in alphabetical order and optionally remove duplicates and group the dependencies by their scope.

-- 
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

        

[jira] Updated: (MDEP-115) Dependency sort mojo

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEP-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Fox updated MDEP-115:
---------------------------

    Fix Version/s:     (was: 2.1)

> Dependency sort mojo
> --------------------
>
>                 Key: MDEP-115
>                 URL: http://jira.codehaus.org/browse/MDEP-115
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0-alpha-4
>            Reporter: Paul Gier
>            Assignee: Brian Fox
>         Attachments: maven-dependency-plugin-r579844.patch, MDEP-115-maven-dependency-plugin-r580489-with-test-and-doc.patch
>
>
> I have a few projects that have a large number of dependencies.  I would like to be able to sort them into alphabetical order for easier readability.  Also sometimes the same dependency gets copied and pasted and there is a duplicate.  I created the sort mojo to sort dependencies in alphabetical order and optionally remove duplicates and group the dependencies by their scope.

-- 
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

        

[jira] Updated: (MDEP-115) Dependency sort mojo

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEP-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Fox updated MDEP-115:
---------------------------

    Fix Version/s:     (was: 2.0)
                   2.1

> Dependency sort mojo
> --------------------
>
>                 Key: MDEP-115
>                 URL: http://jira.codehaus.org/browse/MDEP-115
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0-alpha-4
>            Reporter: Paul Gier
>            Assignee: Brian Fox
>             Fix For: 2.1
>
>         Attachments: maven-dependency-plugin-r579844.patch, MDEP-115-maven-dependency-plugin-r580489-with-test-and-doc.patch
>
>
> I have a few projects that have a large number of dependencies.  I would like to be able to sort them into alphabetical order for easier readability.  Also sometimes the same dependency gets copied and pasted and there is a duplicate.  I created the sort mojo to sort dependencies in alphabetical order and optionally remove duplicates and group the dependencies by their scope.

-- 
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

        

[jira] Closed: (MDEP-115) Dependency sort mojo

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEP-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Gier closed MDEP-115.
--------------------------

    Resolution: Won't Fix

Closing this issue since the patch has been submitted as a new mojo.

> Dependency sort mojo
> --------------------
>
>                 Key: MDEP-115
>                 URL: http://jira.codehaus.org/browse/MDEP-115
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0-alpha-4
>            Reporter: Paul Gier
>            Assignee: Brian Fox
>             Fix For: 2.1
>
>         Attachments: maven-dependency-plugin-r579844.patch, MDEP-115-maven-dependency-plugin-r580489-with-test-and-doc.patch
>
>
> I have a few projects that have a large number of dependencies.  I would like to be able to sort them into alphabetical order for easier readability.  Also sometimes the same dependency gets copied and pasted and there is a duplicate.  I created the sort mojo to sort dependencies in alphabetical order and optionally remove duplicates and group the dependencies by their scope.

-- 
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

        

[jira] Commented: (MDEP-115) Dependency sort mojo

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_109686 ] 

Paul Gier commented on MDEP-115:
--------------------------------

They do sort, but those goals don't give you a format that you can put back into your pom.
This mojo is meant to help make the pom more readable.

> Dependency sort mojo
> --------------------
>
>                 Key: MDEP-115
>                 URL: http://jira.codehaus.org/browse/MDEP-115
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0-alpha-4
>            Reporter: Paul Gier
>            Assignee: Brian Fox
>             Fix For: 2.0-alpha-5
>
>         Attachments: maven-dependency-plugin-r579844.patch, MDEP-115-maven-dependency-plugin-r580489-with-test-and-doc.patch
>
>
> I have a few projects that have a large number of dependencies.  I would like to be able to sort them into alphabetical order for easier readability.  Also sometimes the same dependency gets copied and pasted and there is a duplicate.  I created the sort mojo to sort dependencies in alphabetical order and optionally remove duplicates and group the dependencies by their scope.

-- 
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

        

[jira] Commented: (MDEP-115) Dependency sort mojo

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_109731 ] 

Mark Hobson commented on MDEP-115:
----------------------------------

Could be worth proposing on mojo-dev and see what people think before incorporating this into the dependency plugin.

> Dependency sort mojo
> --------------------
>
>                 Key: MDEP-115
>                 URL: http://jira.codehaus.org/browse/MDEP-115
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0-alpha-4
>            Reporter: Paul Gier
>            Assignee: Brian Fox
>             Fix For: 2.0-alpha-5
>
>         Attachments: maven-dependency-plugin-r579844.patch, MDEP-115-maven-dependency-plugin-r580489-with-test-and-doc.patch
>
>
> I have a few projects that have a large number of dependencies.  I would like to be able to sort them into alphabetical order for easier readability.  Also sometimes the same dependency gets copied and pasted and there is a duplicate.  I created the sort mojo to sort dependencies in alphabetical order and optionally remove duplicates and group the dependencies by their scope.

-- 
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

        

[jira] Commented: (MDEP-115) Dependency sort mojo

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_109688 ] 

Mark Hobson commented on MDEP-115:
----------------------------------

Ah right, I see.  Perhaps a general purpose POM formatter goal would be better?  It could utilise Maven's model readers and writers to give a consistent output.

> Dependency sort mojo
> --------------------
>
>                 Key: MDEP-115
>                 URL: http://jira.codehaus.org/browse/MDEP-115
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0-alpha-4
>            Reporter: Paul Gier
>            Assignee: Brian Fox
>             Fix For: 2.0-alpha-5
>
>         Attachments: maven-dependency-plugin-r579844.patch, MDEP-115-maven-dependency-plugin-r580489-with-test-and-doc.patch
>
>
> I have a few projects that have a large number of dependencies.  I would like to be able to sort them into alphabetical order for easier readability.  Also sometimes the same dependency gets copied and pasted and there is a duplicate.  I created the sort mojo to sort dependencies in alphabetical order and optionally remove duplicates and group the dependencies by their scope.

-- 
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

        

[jira] Commented: (MDEP-115) Dependency sort mojo

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_109685 ] 

Mark Hobson commented on MDEP-115:
----------------------------------

Doesn't dependency:resolve / dependency:list already sort the dependencies alphabetically?

> Dependency sort mojo
> --------------------
>
>                 Key: MDEP-115
>                 URL: http://jira.codehaus.org/browse/MDEP-115
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0-alpha-4
>            Reporter: Paul Gier
>            Assignee: Brian Fox
>             Fix For: 2.0-alpha-5
>
>         Attachments: maven-dependency-plugin-r579844.patch, MDEP-115-maven-dependency-plugin-r580489-with-test-and-doc.patch
>
>
> I have a few projects that have a large number of dependencies.  I would like to be able to sort them into alphabetical order for easier readability.  Also sometimes the same dependency gets copied and pasted and there is a duplicate.  I created the sort mojo to sort dependencies in alphabetical order and optionally remove duplicates and group the dependencies by their scope.

-- 
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

        

[jira] Commented: (MDEP-115) Dependency sort mojo

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_109410 ] 

Paul Gier commented on MDEP-115:
--------------------------------

Any chance this can go into alpha 5 ?

> Dependency sort mojo
> --------------------
>
>                 Key: MDEP-115
>                 URL: http://jira.codehaus.org/browse/MDEP-115
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0-alpha-4
>            Reporter: Paul Gier
>            Assignee: Brian Fox
>         Attachments: maven-dependency-plugin-r579844.patch, MDEP-115-maven-dependency-plugin-r580489-with-test-and-doc.patch
>
>
> I have a few projects that have a large number of dependencies.  I would like to be able to sort them into alphabetical order for easier readability.  Also sometimes the same dependency gets copied and pasted and there is a duplicate.  I created the sort mojo to sort dependencies in alphabetical order and optionally remove duplicates and group the dependencies by their scope.

-- 
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