Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10475

plugin's apis-jar goal fails for empty jar

    XMLWordPrintableJSON

Details

    Description

      Plugin's apis-jar goal fails when we have empty APIs jar. It fails while writing the source-report.txt.  We can fix this via ensuring that https://github.com/apache/sling-slingfeature-maven-plugin/blob/master/src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java#L425 directory exists before we write sources-report.

      Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to write /Users/admin/git_codebase/sdk-builder/target/apis-prerelease-jars/sdk-builder-sources-report.txt
       at org.apache.sling.feature.maven.mojos.apis.ApisUtil.writeSourceReport (ApisUtil.java:514)
       at org.apache.sling.feature.maven.mojos.ApisJarMojo.onFeature (ApisJarMojo.java:527)
       at org.apache.sling.feature.maven.mojos.ApisJarMojo.execute (ApisJarMojo.java:449)
       at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            darshan.mahor Darshan Mahor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: