Maven 1
  1. Maven 1
  2. MAVEN-1280

Support group ID in jar overrides

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.0-rc4
    • Fix Version/s: None
    • Component/s: core, documentation
    • Labels:
      None
    • Number of attachments :
      6

      Description

      Maven should add support for project local dependencies where a jar file is stored in one of the lib folders in the project.

      Currently there is undocumented support for it using maven.jar.<id> however the use of <id> is deprecated and should be removed.

      Another way I can think of is to use the properties project.path and local.path

      project.path == dependency relative to the location of the project.xml file. This ensures that you are on the right file by using getParent of the project.getFile() method.

      local.path == dependency wherever on the system (just like maven.jar)

      This would help speed up migration of ant projects to maven projects.

      1. ArtifactListBuilder.patch
        1 kB
        Archimedes Trajano
      2. ArtifactListBuilder-2.patch
        1 kB
        Archimedes Trajano
      3. ArtifactListBuilder-3.patch
        2 kB
        Archimedes Trajano
      4. eclipse-classpath-jelly.patch
        1 kB
        Archimedes Trajano
      5. project-descriptor.xml
        51 kB
        Archimedes Trajano
      6. user-guide.xml
        63 kB
        Archimedes Trajano

        Activity

        Hide
        Brett Porter added a comment -

        we need to use a proper id for jar overrides and document it in 1.1.

        I'd suggest maven.jar.groupId.artifactId (but also look for just artifactId to be backwards compatible).

        eg
        maven.jar.org.apache.maven.maven = maven.jar

        Show
        Brett Porter added a comment - we need to use a proper id for jar overrides and document it in 1.1. I'd suggest maven.jar.groupId.artifactId (but also look for just artifactId to be backwards compatible). eg maven.jar.org.apache.maven.maven = maven.jar
        Hide
        Archimedes Trajano added a comment -

        Not sure about your example.
        Since you have maven.jar.org.apache.maven.maven should it just be maven.jar.maven.maven ?

        Show
        Archimedes Trajano added a comment - Not sure about your example. Since you have maven.jar.org.apache.maven.maven should it just be maven.jar.maven.maven ?
        Hide
        Carlos Sanchez added a comment -

        Remember to allow other dependency types
        maven.war.[]
        maven.ejb.[]

        Show
        Carlos Sanchez added a comment - Remember to allow other dependency types maven.war.[] maven.ejb.[]
        Hide
        Brett Porter added a comment -

        Archimedas: yes, now it is maven.maven. Sorry, I was thinking in future-tense

        Carlos: good point. To make it more clear, perhaps:
        maven.override.jar.groupId.artifactId = <version | filename>

        I know its long, but it should suffice.

        Show
        Brett Porter added a comment - Archimedas: yes, now it is maven.maven. Sorry, I was thinking in future-tense Carlos: good point. To make it more clear, perhaps: maven.override.jar.groupId.artifactId = <version | filename> I know its long, but it should suffice.
        Hide
        Michael Osipov added a comment -

        Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

        Show
        Michael Osipov added a comment - Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

          People

          • Assignee:
            Unassigned
            Reporter:
            Archimedes Trajano
          • Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: