Hi Cris,

On Thu, 2020-06-25 at 12:10 -0400, Cris Rockwell wrote:
> I’m trying to build a JCR package using maven. The config below
> builds the package, but I also get an error related to verify-legal-
> files
> 
> [ERROR] Failed to execute goal org.codehaus.mojo:ianal-maven-
> plugin:1.0-alpha-1:verify-legal-files (verify-legal-files) on project
> org.apache.sling.auth.saml2.example: Artifact does not contain any
> legal files: org.apache.sling.auth.saml2.example-0.2.0.zip -> [Help
> 1]
> 
> <plugin>
>   <groupId>org.apache.jackrabbit</groupId>
>   <artifactId>filevault-package-maven-plugin</artifactId>
>   <extensions>true</extensions>
>   <configuration>
>     <name>SAML2 Example Config, User and ACL Package</name>
>     <group>${project.groupId}</group>
>     <version>${project.version}</version>
>     <packageType>mixed</packageType>
>     <filters>
>       <filter>
>         <root>/apps/sling/saml2</root>
>       </filter>
>     </filters>
>   </configuration>
> </plugin>
> 
> How can the license be added to the JCR package?

The plug-in expects that the files names LICENSE and NOTICE are present
in the package. I assume they are not, hence the failure.

One option is to add them manually to the content project by copying
them into whatever directory the plug-in uses for creating the content
package.

If you have a complete build to share, I could look into why they are
not being picked up automatically.

Thanks,
Robert

Reply via email to