[
https://issues.apache.org/jira/browse/RAT-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15159720#comment-15159720
]
Philipp Ottlinger commented on RAT-212:
---------------------------------------
Thanks for your report - since RAT scans for license snippets you may use the
following workaround:
* keep https in your pom url-structure
* add a valid license header to your pom.xml such as:
{code}
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<!--
Copyright 2016, WhatSoEver Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<modelVersion>4.0.0</modelVersion>
{code}
This solves the issue.
I was not aware that we perform a scan of the pom's structure. I always thought
we parse for a license snippet instead ....
> pom.xml license failure when url is https
> -----------------------------------------
>
> Key: RAT-212
> URL: https://issues.apache.org/jira/browse/RAT-212
> Project: Apache Rat
> Issue Type: Bug
> Affects Versions: 0.11
> Reporter: Christopher Tubbs
>
> apache-rat-plugin:check fails when the license information in the POM has a
> url of "https://www.apache.org/licenses/LICENSE-2.0", but not when it has a
> url of "http://www.apache.org/licenses/LICENSE-2.0"
> It should probably not fail in the case of https.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)