On Wed, Jul 18, 2018 at 8:38 AM Asbern <[email protected]> wrote:
> Hi all, > > > > I was trying to create a new extension, while executing using mvn package > am facing license issue, stating *“Failed to execute goal > org.apache.rat:apache-rat-plugin:0.12:check (validate) on project > guacamole-client: Too many files with unapproved license” . *May I know > how to generate a license? > > > You don't need to generate a license, you just need to make sure that your source files include a license header at the top. Take a look and any of the .java and/or .js files that are included with other parts of the Guacamole source, and you'll see the Apache 2.0 License Header at the top of it. You can add your own for however you'd like to license the extension. The other option, for your custom extension, is to disable the RAT plugin - you'd make this modification in the pom.xml file for your particular extension. We use it within the Guacamole project to make sure that our source files comply with ASF requirements, but for something you are developing on your own there's no requirement that you actually run that check against your source code. Look for the rat plugin in the pom.xml and remove that section. If you intend to contribute your code back to the Guacamole project (which we would love!), then you will need to make the RAT plugin happy, though, and license it under the Apache 2.0 license. -Nick
