Details

      Description

      In order to be able to test, debug and develop AMPs, we need to be able to deploy and run them in our nur Maven Development Environment.
      The Module Management Tool in 5.1 contains a bug that prevents this.
      This bug also affects the Alfresco SDK that is used by our customers to develop their own customizations.

      Gethin James [X] is already working on a similar problem.

      Background:
      Since 5.1, the MMT is checking the version of Alfresco / Share by looking into the META-INF/MANIFEST.MF file.

      Bug:
      The WarHelperImpl handles null values returned by findManifestAttribute properly. This is required to cope with missing properties in the manifest.
      But if the manifest file itself is missing, it throws an Exception:

      Caused by: org.alfresco.repo.module.tool.ModuleManagementToolException: 09080000 Unabled to read a manifest for the war file: /Users/skopf/Development/share-trunk/share/target/share
      	at org.alfresco.repo.module.tool.WarHelperImpl.findManifestArtibute(WarHelperImpl.java:125)
      	at org.alfresco.repo.module.tool.WarHelperImpl.checkCompatibleVersionUsingManifest(WarHelperImpl.java:76)
      	at org.alfresco.repo.module.tool.WarHelperImpl.checkCompatibleVersion(WarHelperImpl.java:64)
      	at org.alfresco.repo.module.tool.ModuleManagementTool.installModule(ModuleManagementTool.java:237)
      

      In our new Maven Development Environment, we run the Tomcat Maven Plugin on an exploded war. The META-INF/MANIFEST.MF file is created in the process of packing this exploded war into a .war file. Thus, this exploded war does not contain the manifest.

      Proposed fix:
      In findManifestArtibute, catch Exceptions log an info statement and return null.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  skopf Stefan Kopf
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 hour, 50 minutes
                    1h 50m

                      Structure Helper Panel