jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven 2.x Dependency Plugin
  • Maven 2.x Dependency Plugin
  • MDEP-115

Dependency sort mojo

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 2.0-alpha-4
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch Submitted:
    Yes
  • Number of attachments :
    2

Description

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.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    maven-dependency-plugin-r579844.patch
    26/Sep/07 5:40 PM
    14 kB
    Paul Gier
  2. Text File
    MDEP-115-maven-dependency-plugin-r580489-with-test-and-doc.patch
    28/Sep/07 4:37 PM
    26 kB
    Paul Gier

Issue Links

relates to

New Feature - A new feature of the product, which has yet to be developed. MOJO-928 Create a maven 2 pom plugin

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brian Fox added a comment - 26/Sep/07 5:45 PM

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

Show
Brian Fox added a comment - 26/Sep/07 5:45 PM Interesting. Can you include some unit tests and site docs?
Hide
Permalink
Paul Gier added a comment - 28/Sep/07 4:37 PM

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

Show
Paul Gier added a comment - 28/Sep/07 4:37 PM Here is a new patch with test and docs, and a couple improvements thanks to the tests
Hide
Permalink
Paul Gier added a comment - 09/Oct/07 10:59 AM

Any chance this can go into alpha 5 ?

Show
Paul Gier added a comment - 09/Oct/07 10:59 AM Any chance this can go into alpha 5 ?
Hide
Permalink
Mark Hobson added a comment - 11/Oct/07 4:14 PM

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

Show
Mark Hobson added a comment - 11/Oct/07 4:14 PM Doesn't dependency:resolve / dependency:list already sort the dependencies alphabetically?
Hide
Permalink
Paul Gier added a comment - 11/Oct/07 4:45 PM

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.

Show
Paul Gier added a comment - 11/Oct/07 4:45 PM 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.
Hide
Permalink
Mark Hobson added a comment - 11/Oct/07 4:53 PM

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.

Show
Mark Hobson added a comment - 11/Oct/07 4:53 PM 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.
Hide
Permalink
Paul Gier added a comment - 11/Oct/07 5:37 PM

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.

Show
Paul Gier added a comment - 11/Oct/07 5:37 PM 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.
Hide
Permalink
Mark Hobson added a comment - 12/Oct/07 3:24 AM

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

Show
Mark Hobson added a comment - 12/Oct/07 3:24 AM Could be worth proposing on mojo-dev and see what people think before incorporating this into the dependency plugin.
Hide
Permalink
Paul Gier added a comment - 12/Oct/07 10:48 AM

Ok, I made it into a stand alone plugin. I'm thinking that there could be a generic plugin for reading, analyzing, and writing poms.
I noticed that there is a maven-pom-plugin for maven 1, but I didn't see one for maven 2, so I thought that might be a good name.

Show
Paul Gier added a comment - 12/Oct/07 10:48 AM Ok, I made it into a stand alone plugin. I'm thinking that there could be a generic plugin for reading, analyzing, and writing poms. I noticed that there is a maven-pom-plugin for maven 1, but I didn't see one for maven 2, so I thought that might be a good name.
Hide
Permalink
Paul Gier added a comment - 08/Apr/08 3:48 PM

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

Show
Paul Gier added a comment - 08/Apr/08 3:48 PM Closing this issue since the patch has been submitted as a new mojo.

People

  • Assignee:
    Brian Fox
    Reporter:
    Paul Gier
Vote (0)
Watch (2)

Dates

  • Created:
    26/Sep/07 5:40 PM
    Updated:
    07/Jan/09 9:18 AM
    Resolved:
    08/Apr/08 3:48 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.