Hi
Upgrading my Maven and trying from scratch again.
The building tool has 3 headers in the target file
<module name="Header">
<!-- the `header-java` is replaced during build -->
<property name="header" value="/**\n * Licensed to the Apache
Software Foundation (ASF) under one or more\n * contributor license
agreements. See the NOTICE file distributed with\n * this work for
additional information regarding copyright ownership.\n * The ASF
licenses this file to You under the Apache License, Version 2.0\n *
(the "License"); you may not use this file except in
compliance with\n * the License. You may obtain a copy of the License
at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n *
Unless required by applicable law or agreed to in writing, software\n
* distributed under the License is distributed on an "AS IS"
BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express or implied.\n * See the License for the specific language
governing permissions and\n * limitations under the License.\n */\n"/>
<property name="fileExtensions" value="java,groovy,scala"/>
</module>
<module name="Header">
<!-- the `header-properties` is replaced during build -->
<property name="header" value="##
---------------------------------------------------------------------------\n##
Licensed to the Apache Software Foundation (ASF) under one or more\n##
contributor license agreements. See the NOTICE file distributed
with\n## this work for additional information regarding copyright
ownership.\n## The ASF licenses this file to You under the Apache
License, Version 2.0\n## (the "License"); you may not use
this file except in compliance with\n## the License. You may obtain a
copy of the License at\n##\n##
http://www.apache.org/licenses/LICENSE-2.0\n##\n## Unless required by
applicable law or agreed to in writing, software\n## distributed under
the License is distributed on an "AS IS" BASIS,\n## WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n##
See the License for the specific language governing permissions
and\n## limitations under the License.\n##
---------------------------------------------------------------------------\n"/>
<property name="fileExtensions" value="properties"/>
</module>
<module name="RegexpHeader">
<!-- the `header-xml` is replaced during build -->
<property name="header"
value="^<\?xml.*>\n^\Q<!--\E$\n^\Q\E$\n^\Q Licensed to the
Apache Software Foundation (ASF) under one or more\E$\n^\Q
contributor license agreements. See the NOTICE file distributed
with\E$\n^\Q this work for additional information regarding
copyright ownership.\E$\n^\Q The ASF licenses this file to You
under the Apache License, Version 2.0\E$\n^\Q (the
"License"); you may not use this file except in compliance
with\E$\n^\Q the License. You may obtain a copy of the License
at\E$\n^\Q\E$\n^\Q
http://www.apache.org/licenses/LICENSE-2.0\E$\n^\Q\E$\n^\Q Unless
required by applicable law or agreed to in writing, software\E$\n^\Q
distributed under the License is distributed on an "AS IS"
BASIS,\E$\n^\Q WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express or implied.\E$\n^\Q See the License for the specific
language governing permissions and\E$\n^\Q limitations under the
License.\E$\n^\Q\E$\n^\Q-->\E$\n"/>
<property name="fileExtensions" value="xml,xsd"/>
</module>
On Mon, May 8, 2017 at 12:26 PM, Claus Ibsen <[email protected]> wrote:
> Hi
>
> Okay so the problem is that camel-spring-boot-generator-bom is a pom
> packaging but it has source code in src/main/resources which fools the
> checkstyle plugin.
>
> Removing that so there is no src folder can fix this.
>
> But we have the same problem now in the following projects
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-checkstyle-plugin:2.17:checkstyle
> (default-cli) on project camel-core-starter: An error has occurred in
> Checkstyle report generation. Failed during checkstyle execution:
> Failed during checkstyle configuration: unable to parse configuration
> stream: Property ${header-java} has not been set -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR] mvn <goals> -rf :camel-core-starter
>
>
> Also the CI servers cannot build the trunk notest job, due
> similar/related issues I assume.
>
> We need to find a solution or revert this.
>
>
>
> On Mon, May 8, 2017 at 11:59 AM, Zoran Regvart <[email protected]> wrote:
>> Hi Claus,
>> no I've removed everything under org/apache/camel in my local Maven
>> repository and built the master with `mvn -Pfastinstall clean
>> install`, Maven version differences? I use 3.3.9?
>>
>> Can you try to install just the camel-buildtools, does
>> target/classes/camel-checkstyle.xml have three embeded header rules?
>>
>> zoran
>>
>> On Mon, May 8, 2017 at 11:54 AM, Claus Ibsen <[email protected]> wrote:
>>>
>>> Any luck with this?
>>>
>>> I just tried again with my m2 repo deleted for org/apache/camel and it
>>> still failed.
>>
>>
>>
>>
>> --
>> Zoran Regvart
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2