[
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)