[
https://issues.apache.org/jira/browse/SLING-10475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler resolved SLING-10475.
--------------------------------------
Resolution: Fixed
Fixed in
https://github.com/apache/sling-slingfeature-maven-plugin/commit/1d768e9a226eeb6081f811523ab936bd803a7b58
> 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
> Assignee: Carsten Ziegeler
> Priority: Major
> Fix For: slingfeature-maven-plugin 1.5.6
>
>
> 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.
> {code:java}
> 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){code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)