Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-94606

initBundle fails if providedModules dependency configuration has multiple entries

    Details

      Description

      If you have the following in your root build.gradle of a workspace project.

      dependencies {
      	providedModules group: "com.fasterxml.jackson.core", name: "jackson-annotations", version: "2.9.8"
      	providedModules group: "com.fasterxml.jackson.core", name: "jackson-core", version: "2.9.8"
      	providedModules group: "com.fasterxml.jackson.core", name: "jackson-databind", version: "2.9.8"
      	providedModules group: "com.fasterxml.jackson.jaxrs", name: "jackson-jaxrs-base", version: "2.9.8"
      	providedModules group: "com.fasterxml.jackson.jaxrs", name: "jackson-jaxrs-json-provider", version: "2.9.8"
      	providedModules group: "com.fasterxml.jackson.module", name: "jackson-module-jaxb-annotations", version: "2.9.8"
      	providedModules group: "org.apache.aries.jax.rs", name: "org.apache.aries.jax.rs.jackson", version: "1.0.2"
      	providedModules group: 'org.apache.cxf', name: 'cxf-rt-rs-json-basic', version: '3.2.5'
      	providedModules group: 'org.apache.cxf', name: 'cxf-rt-rs-extension-providers', version: '3.2.5'
      
      

      And then you do 'gradlew initBundle` in the root of the workspace, you will get the following exception:

      > Task :initBundle
      Exception in thread "main" java.nio.file.FileSystemException: /Users/greg/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-annotations/2.9.8/ba7f0e6f8f1b28d251eeff2a5604bed34c53ff35/jackson-annotations-2.9.8.jar:/Users/greg/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-core/2.9.8/f5a654e4675769c716e5b387830d19b501ca191/jackson-core-2.9.8.jar:/Users/greg/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-databind/2.9.8/11283f21cc480aa86c4df7a0a3243ec508372ed2/jackson-databind-2.9.8.jar:/Users/greg/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.jaxrs/jackson-jaxrs-base/2.9.8/113dc616852ea990255d3a820d1006ac2531ae7/jackson-jaxrs-base-2.9.8.jar:/Users/greg/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.jaxrs/jackson-jaxrs-json-provider/2.9.8/cbfb046b70f764aed65426db19a3b8984482a86e/jackson-jaxrs-json-provider-2.9.8.jar:/Users/greg/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.module/jackson-module-jaxb-annotations/2.9.8/da08815ba1c7f7b435e7df02b7bf98327bad2fd4/jackson-module-jaxb-annotations-2.9.8.jar:/Users/greg/.gradle/caches/modules-2/files-2.1/org.apache.aries.jax.rs/org.apache.aries.jax.rs.jackson/1.0.2/3854786efece5a4944291867baa8d627d03a3502/org.apache.aries.jax.rs.jackson-1.0.2.jar:/Users/greg/.gradle/caches/modules-2/files-2.1/org.apache.cxf/cxf-rt-rs-json-basic/3.2.5/63f36032dcc8c380686406f9b45c3ac37712d3d0/cxf-rt-rs-json-basic-3.2.5.jar:/Users/greg/.gradle/caches/modules-2/files-2.1/org.apache.cxf/cxf-rt-rs-extension-providers/3.2.5/15cee8556f20cb6d972f184d8dde73e301e678ab/cxf-rt-rs-extension-providers-3.2.5.jar: File name too long
              at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
              at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
              at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
              at sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:526)
              at sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:253)
              at java.nio.file.Files.copy(Files.java:1274)
              at com.liferay.portal.tools.bundle.support.internal.util.FileUtil.copyFile(FileUtil.java:104)
              at com.liferay.portal.tools.bundle.support.commands.InitBundleCommand._copyProvidedModules(InitBundleCommand.java:132)
              at com.liferay.portal.tools.bundle.support.commands.InitBundleCommand.execute(InitBundleCommand.java:61)
              at com.liferay.portal.tools.bundle.support.BundleSupport.main(BundleSupport.java:73)
      

        Attachments

          Activity

            People

            Assignee:
            christopher.boyd Christopher Boyd (Inactive)
            Reporter:
            gregory.amerson Gregory Amerson
            Participants of an Issue:
            Recent user:
            Jason Pince
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 32 weeks, 3 days ago

                Packages

                Version Package
                7.3.1 CE GA2
                7.3.10 DXP GA1
                Master