Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-86

Maven2OsgiConverter calculates a wrong symbolic name if artifact.getFile() returns a directory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: maven-osgi (RETIRED)
    • Labels:
      None

      Description

      The method

      getBundleSymbolicName( Artifact artifact )

      of the

      DefaultMaven2OsgiConverter

      assumes that if

      ( artifact.getFile() != null ) && artifact.getFile().exists()

      is true the returned file is a jar. This may be a directory hence

      JarFile jar = new JarFile( artifact.getFile(), false );

      may throw an exception.

      This may be fixed using a simple check around line 87 ff (svn revision 661727).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jdsalchow Jan-David Salchow
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: