Shiro
  1. Shiro
  2. SHIRO-236

Adding <relativePath> to the <parent> element to avoid Maven 3.0.x issue where parent is not in local repo yet.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
      None

      Description

      Add <relativePath> to the <parent> declaration in the pom.xml files to workaround issue with Maven 3.0.x where the parent is not in the local repo (eg when you built from scratch in developer machine) you will get error "Non-resolvable parent POM: Could not find artifact " like this:

      The project org.apache.shiro:shiro-spring:1.2.0-SNAPSHOT (/Users/hsaputra/shiro/trunk/support/spring/pom.xml) has 1 error
      [ERROR] Non-resolvable parent POM: Could not find artifact org.apache.shiro:shiro-root:pom:1.2.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 22, column 13 -> [Help 2]

      Adding relative path element to the parent element seems to fix this.

        Activity

        Hide
        Henry Saputra added a comment -

        Proposed patch.

        Show
        Henry Saputra added a comment - Proposed patch.
        Hide
        Kalle Korhonen added a comment -

        Thanks for the patch!

        Show
        Kalle Korhonen added a comment - Thanks for the patch!
        Hide
        Les Hazlewood added a comment -

        Closing with the 1.2.0 release.

        Show
        Les Hazlewood added a comment - Closing with the 1.2.0 release.

          People

          • Assignee:
            Kalle Korhonen
            Reporter:
            Henry Saputra
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development