You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Darshan Mahor (Jira)" <ji...@apache.org> on 2021/06/09 09:36:00 UTC
[jira] [Updated] (SLING-10475) plugin's apis-jar goal fails for
empty jar
[ https://issues.apache.org/jira/browse/SLING-10475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Darshan Mahor updated SLING-10475:
----------------------------------
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)
> plugin's apis-jar goal fails for empty jar
> ------------------------------------------
>
> Key: SLING-10475
> URL: https://issues.apache.org/jira/browse/SLING-10475
> Project: Sling
> Issue Type: Bug
> Components: Feature Model, Maven Plugins and Archetypes
> Reporter: Darshan Mahor
> Priority: Major
>
> 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)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)