Re: Problems with Karaf build with profiles

2021-01-27 Thread JB Onofré
Hi

I guess it works with mvn url right ?

Regards 
JB

> Le 27 janv. 2021 à 20:10, Geoffrey Seanor 
>  a écrit :
> 
> 
> Hi,
>  
> I have been creating a build based on Karaf v4.3.0 that uses profiles for 
> provisioning and have used the karaf-profile-example sample as a reference.  
> I hit a problem so tried building the examples locally but both the dynamic 
> and static projects failed to build.
>  
> The karaf-profile-example-dynamic build raised the following warnings:
> Ignoring non maven artifact file:etc/bank1.xml
> Ignoring non maven artifact file:etc/bank2.xml
> Ignoring non maven artifact file:etc/loanBroker.xml
> Ignoring non maven artifact file:etc/bank3.xml
>  
> The karaf-profile-example-static artifact build fails during assembly 
> (process-resources).
>  
> These errors are similar to those I have in my own project build.
> I couldn’t find a related Jira, and noticed that the karaf-profile-example 
> module is commented out in the parent pom.  Are the above known issues, and 
> is there a fix in the pipeline?
>  
> Thanks,
>  
> Geoff
> This email including any attachments is confidential and may be subject to 
> legal privilege. Unless otherwise indicated, you may not disclose or 
> distribute this email to any other person.  If you are not the intended 
> recipient of this email, please delete it and notify the sender immediately.
> 
> MUFG Bank, Ltd. (“MUFG Bank”), MUFG Securities EMEA plc ("MUS(EMEA)") and 
> Mitsubishi UFJ Financial Group, Inc. (“MUFG Inc.”) are members of the MUFG 
> group.
> 
> MUFG Bank is a limited liability stock company incorporated in Japan and 
> registered in the Tokyo Legal Affairs Bureau (company no. 0100-01-008846). 
> MUFG Bank’s head office is at 7-1 Marunouchi 2-Chome, Chiyoda-Ku, Tokyo 
> 100-8388, Japan. MUFG Bank’s London branch is at Ropemaker Place, 25 
> Ropemaker Street, London EC2Y 9AN, and is registered as a UK establishment in 
> the UK register of companies (registered no. BR002013).   MUFG Bank is 
> authorised and regulated by the Japanese Financial Services Agency. MUFG 
> Bank’s London branch is authorised by the UK Prudential Regulation Authority 
> (“PRA”) and regulated by the UK Financial Conduct Authority (“FCA”) with 
> limited regulation by the PRA.
> 
> MUS(EMEA) is a limited liability company registered in England (company no. 
> 1698498) with its registered office at Ropemaker Place, 25 Ropemaker Street, 
> London, EC2Y 9AJ.  MUS (EMEA) is authorised by the PRA and regulated by the 
> FCA and PRA in the UK.
> 
> MUFG Inc. is a limited liability stock company incorporated in Japan and 
> registered in the Tokyo Legal Affairs Bureau (company no. 0100-01-073486). 
> MUFG Inc.’s head office is at 7-1 Marunouchi 2-Chome, Chiyoda-Ku, Tokyo 
> 100-8388, Japan.  MUFG Inc.’s London office is at Ropemaker Place, 25 
> Ropemaker Street, London EC2Y 9AN, and is registered as a UK establishment in 
> the UK register of companies (registered no. BR015994).
> 
> Details on how MUFG Bank, London branch and MUS (EMEA) process personal data 
> relating to individuals associated with our clients are on the MUFG EMEA 
> website at: https://www.mufgemea.com/governance/privacy-notice/ 
> 
> Unless specifically indicated, this email should not be regarded as an offer, 
> advice, recommendation, confirmation or valuation in relation to any 
> financial products or services and any views expressed are those of the 
> author only. If information in this email constitutes an investment 
> recommendation provided by MUS(EMEA) as defined in EU (MAR) Regulation 
> 596/2014, additional disclosures are available at 
> https://research.musi.com/MUFGSecDisclaimers.aspx. Information in this email 
> may be subject to change without notice.  Emails cannot be guaranteed to be 
> timely, secure or error or virus-free, and members of the MUFG group accept 
> no liability for such matters. Members of the MUFG group may record and 
> monitor emails and disclose them where relevant in litigation or to 
> regulators.
> 
> 
> 
> This message has been scanned for malware by Websense. www.websense.com


Problems with Karaf build with profiles

2021-01-27 Thread Geoffrey Seanor
Hi,

I have been creating a build based on Karaf v4.3.0 that uses profiles for 
provisioning and have used the karaf-profile-example sample as a reference.  I 
hit a problem so tried building the examples locally but both the dynamic and 
static projects failed to build.

The karaf-profile-example-dynamic build raised the following warnings:
Ignoring non maven artifact file:etc/bank1.xml
Ignoring non maven artifact file:etc/bank2.xml
Ignoring non maven artifact file:etc/loanBroker.xml
Ignoring non maven artifact file:etc/bank3.xml

The karaf-profile-example-static artifact build fails during assembly 
(process-resources).

These errors are similar to those I have in my own project build.
I couldn’t find a related Jira, and noticed that the karaf-profile-example 
module is commented out in the parent pom.  Are the above known issues, and is 
there a fix in the pipeline?

Thanks,

Geoff

This email including any attachments is confidential and may be subject to 
legal privilege. Unless otherwise indicated, you may not disclose or distribute 
this email to any other person.  If you are not the intended recipient of this 
email, please delete it and notify the sender immediately. 

MUFG Bank, Ltd. (“MUFG Bank”), MUFG Securities EMEA plc ("MUS(EMEA)") and 
Mitsubishi UFJ Financial Group, Inc. (“MUFG Inc.”) are members of the MUFG 
group.

-   MUFG Bank is a limited liability stock company incorporated in Japan 
and registered in the Tokyo Legal Affairs Bureau (company no. 0100-01-008846). 
MUFG Bank’s head office is at 7-1 Marunouchi 2-Chome, Chiyoda-Ku, Tokyo 
100-8388, Japan. MUFG Bank’s London branch is at Ropemaker Place, 25 Ropemaker 
Street, London EC2Y 9AN, and is registered as a UK establishment in the UK 
register of companies (registered no. BR002013).   MUFG Bank is authorised and 
regulated by the Japanese Financial Services Agency. MUFG Bank’s London branch 
is authorised by the UK Prudential Regulation Authority (“PRA”) and regulated 
by the UK Financial Conduct Authority (“FCA”) with limited regulation by the 
PRA.
-   MUS(EMEA) is a limited liability company registered in England (company 
no. 1698498) with its registered office at Ropemaker Place, 25 Ropemaker 
Street, London, EC2Y 9AJ.  MUS (EMEA) is authorised by the PRA and regulated by 
the FCA and PRA in the UK.
-   MUFG Inc. is a limited liability stock company incorporated in Japan 
and registered in the Tokyo Legal Affairs Bureau (company no. 0100-01-073486). 
MUFG Inc.’s head office is at 7-1 Marunouchi 2-Chome, Chiyoda-Ku, Tokyo 
100-8388, Japan.  MUFG Inc.’s London office is at Ropemaker Place, 25 Ropemaker 
Street, London EC2Y 9AN, and is registered as a UK establishment in the UK 
register of companies (registered no. BR015994).

Details on how MUFG Bank, London branch and MUS (EMEA) process personal data 
relating to individuals associated with our clients are on the MUFG EMEA 
website at: https://www.mufgemea.com/governance/privacy-notice/ 

Unless specifically indicated, this email should not be regarded as an offer, 
advice, recommendation, confirmation or valuation in relation to any financial 
products or services and any views expressed are those of the author only. If 
information in this email constitutes an investment recommendation provided by 
MUS(EMEA) as defined in EU (MAR) Regulation 596/2014, additional disclosures 
are available at https://research.musi.com/MUFGSecDisclaimers.aspx. Information 
in this email may be subject to change without notice.  Emails cannot be 
guaranteed to be timely, secure or error or virus-free, and members of the MUFG 
group accept no liability for such matters. Members of the MUFG group may 
record and monitor emails and disclose them where relevant in litigation or to 
regulators.



This message has been scanned for malware by Websense. www.websense.com


Re: karaf build

2016-10-26 Thread Thomas Termin
Hello,

to come back on this one. At home without a proxy server the build works
fine as you all said. At work behind a proxy server it does not work. As it
works at home it is ok.

Regards,
Thomas

On Fri, Oct 14, 2016 at 4:14 PM, Jean-Baptiste Onofré 
wrote:

> Correct for the branch. I will apply.
>
> But anyway, they should not failed (it doesn't fail).
>
> What's the cause ?
>
> Regards
> JB
>
>
> On 10/14/2016 04:01 PM, Thomas Termin wrote:
>
>> The failing tests are excluded in the current master branch but not in
>> the karaf-4.0.x branch and not in the karaf-4.0.7 tag.
>>
>> Am 14.10.2016 um 15:29 schrieb Jean-Baptiste Onofré :
>>>
>>> By the way, the failing karaf test are excluded by default:
>>>
>>>
>>>test-run/pom.xml
>>>test-assembly/pom.xml
>>> test-check-dependencies-failure/pom.xml
>>> test-assembly-prop-edits/pom.xml
>>>
>>>
>>> So, you are not running a "regular" mvn goal ;)
>>>
>>> Regards
>>> JB
>>>
>>> On 10/14/2016 03:18 PM, Thomas Termin wrote:
 First off all thanks for the quick responses.

 @Benson

 RAT complains about missing apache license header within the files:

 tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/
 tooling/utils/LocalDependency.java
 jaas/modules/src/main/java/org/apache/karaf/jaas/modules/krb
 5/Krb5LoginModule.java
 jaas/modules/src/test/java/org/apache/karaf/jaas/modules/krb
 5/Krb5LoginModuleTest.java

 I added the missing licenses header and that worked. The build is some
 steps further. But I don't understand why the license header issue
 happens just to me and not to you all.

 No the build complains about failed tests within karaf-maven-plugin:


 [INFO] Build Summary:
 [INFO]   Passed: 18, Failed: 5, Errors: 0, Skipped: 0
 [INFO] -
 [ERROR] The following builds failed:
 [ERROR] *  test-run/pom.xml
 [ERROR] *  test-repository-dependencies/pom.xml
 [ERROR] *  test-assembly/pom.xml
 [ERROR] *  test-assembly-prop-edits/pom.xml
 [ERROR] *  test-feature-use-version-range-transfer-properties/pom.xml

 I will try again this evening.

 @Christian
 Yes of course it is a jdk.

 @Jean-Baptiste
 Yes at work I am behind a proxy. But that should not be a problem,
 should it?

 Regards,
 Thomas


 On Fri, Oct 14, 2016 at 2:38 PM, Benson Margulies > wrote:

I suggest that you actually look at the RAT output file and see of
what it complains.

On Fri, Oct 14, 2016 at 8:30 AM, Christian Schneider
> wrote:
> I just ran this with no problems.
>
> git checkout karaf-4.0.7
> mvn clean install -DskipTests
>
> mvn -v
> Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
> 2014-12-14T18:29:23+01:00)
> Maven home: /home/cschneider/java/apache-maven-3.2.5
> Java version: 1.8.0_92, vendor: Oracle Corporation
> Java home: /home/cschneider/java/jdk1.8.0_92/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "4.8.0-22-generic", arch: "amd64",
family: "unix"
>
>
> So you can experiment with a maven 3.2.
> You should also check that you have the jdk not jre and that it is
 the
> oracle one.
>
> Christian
>
>
>
> On 14.10.2016 14:09, Thomas Termin wrote:
>
> @Jean-Baptiste
> mvn clean install -DskipTests results in:
>
> [INFO] BUILD FAILURE
> [INFO]
>
---
 -
> [INFO] Total time: 7.785 s
> [INFO] Finished at: 2016-10-14T14:06:08+02:00
> [INFO] Final Memory: 76M/383M
> [INFO]
>
---
 -
> [ERROR] Failed to execute goal
org.apache.rat:apache-rat-plugin:0.11:check
> (default) on project karaf: Too many files with unapproved
license: 3 See
> RAT report in:
/local/tterm/apache-karaf-4.0.7/target/karaf-4.0.7.rat ->
> [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]
>

Re: karaf build

2016-10-14 Thread Jean-Baptiste Onofré

Correct for the branch. I will apply.

But anyway, they should not failed (it doesn't fail).

What's the cause ?

Regards
JB

On 10/14/2016 04:01 PM, Thomas Termin wrote:

The failing tests are excluded in the current master branch but not in the 
karaf-4.0.x branch and not in the karaf-4.0.7 tag.


Am 14.10.2016 um 15:29 schrieb Jean-Baptiste Onofré :

By the way, the failing karaf test are excluded by default:

   
   test-run/pom.xml
   test-assembly/pom.xml
test-check-dependencies-failure/pom.xml
test-assembly-prop-edits/pom.xml
   

So, you are not running a "regular" mvn goal ;)

Regards
JB


On 10/14/2016 03:18 PM, Thomas Termin wrote:
First off all thanks for the quick responses.

@Benson

RAT complains about missing apache license header within the files:

tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/LocalDependency.java
jaas/modules/src/main/java/org/apache/karaf/jaas/modules/krb5/Krb5LoginModule.java
jaas/modules/src/test/java/org/apache/karaf/jaas/modules/krb5/Krb5LoginModuleTest.java

I added the missing licenses header and that worked. The build is some
steps further. But I don't understand why the license header issue
happens just to me and not to you all.

No the build complains about failed tests within karaf-maven-plugin:


[INFO] Build Summary:
[INFO]   Passed: 18, Failed: 5, Errors: 0, Skipped: 0
[INFO] -
[ERROR] The following builds failed:
[ERROR] *  test-run/pom.xml
[ERROR] *  test-repository-dependencies/pom.xml
[ERROR] *  test-assembly/pom.xml
[ERROR] *  test-assembly-prop-edits/pom.xml
[ERROR] *  test-feature-use-version-range-transfer-properties/pom.xml

I will try again this evening.

@Christian
Yes of course it is a jdk.

@Jean-Baptiste
Yes at work I am behind a proxy. But that should not be a problem,
should it?

Regards,
Thomas


On Fri, Oct 14, 2016 at 2:38 PM, Benson Margulies > wrote:

   I suggest that you actually look at the RAT output file and see of
   what it complains.

   On Fri, Oct 14, 2016 at 8:30 AM, Christian Schneider
   > wrote:
   > I just ran this with no problems.
   >
   > git checkout karaf-4.0.7
   > mvn clean install -DskipTests
   >
   > mvn -v
   > Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
   > 2014-12-14T18:29:23+01:00)
   > Maven home: /home/cschneider/java/apache-maven-3.2.5
   > Java version: 1.8.0_92, vendor: Oracle Corporation
   > Java home: /home/cschneider/java/jdk1.8.0_92/jre
   > Default locale: en_US, platform encoding: UTF-8
   > OS name: "linux", version: "4.8.0-22-generic", arch: "amd64",
   family: "unix"
   >
   >
   > So you can experiment with a maven 3.2.
   > You should also check that you have the jdk not jre and that it is the
   > oracle one.
   >
   > Christian
   >
   >
   >
   > On 14.10.2016 14:09, Thomas Termin wrote:
   >
   > @Jean-Baptiste
   > mvn clean install -DskipTests results in:
   >
   > [INFO] BUILD FAILURE
   > [INFO]
   >
   
   > [INFO] Total time: 7.785 s
   > [INFO] Finished at: 2016-10-14T14:06:08+02:00
   > [INFO] Final Memory: 76M/383M
   > [INFO]
   >
   
   > [ERROR] Failed to execute goal
   org.apache.rat:apache-rat-plugin:0.11:check
   > (default) on project karaf: Too many files with unapproved
   license: 3 See
   > RAT report in:
   /local/tterm/apache-karaf-4.0.7/target/karaf-4.0.7.rat ->
   > [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/MojoFailureException 

   >
   > @Christian
   > Apache Maven 3.3.9
   >
   > java version "1.7.0_65"
   > Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
   > Java HotSpot(TM) Server VM (build 24.65-b04, mixed mode)
   >
   > and
   >
   > java version "1.8.0_40"
   > Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
   > Java HotSpot(TM) Server VM (build 25.40-b25, mixed mode)
   >
   > Regards,
   > Thomas
   >
   >
   > On Fri, Oct 14, 2016 at 1:53 PM, Christian Schneider
   > > wrote:
   >>
   >> What java and maven versions do you use?
   >>
   >> Christian
   >>
   >>
   >> On 14.10.2016 13:47, Thomas Termin wrote:
   >>>
   >>> Hello,
   >>>
   >>> why is it not possible to build the karaf source code? If I
   download the
   >>> 

Re: karaf build

2016-10-14 Thread Thomas Termin
The failing tests are excluded in the current master branch but not in the 
karaf-4.0.x branch and not in the karaf-4.0.7 tag. 

> Am 14.10.2016 um 15:29 schrieb Jean-Baptiste Onofré :
> 
> By the way, the failing karaf test are excluded by default:
> 
>
>test-run/pom.xml
>test-assembly/pom.xml
> test-check-dependencies-failure/pom.xml
> test-assembly-prop-edits/pom.xml
>
> 
> So, you are not running a "regular" mvn goal ;)
> 
> Regards
> JB
> 
>> On 10/14/2016 03:18 PM, Thomas Termin wrote:
>> First off all thanks for the quick responses.
>> 
>> @Benson
>> 
>> RAT complains about missing apache license header within the files:
>> 
>> tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/LocalDependency.java
>> jaas/modules/src/main/java/org/apache/karaf/jaas/modules/krb5/Krb5LoginModule.java
>> jaas/modules/src/test/java/org/apache/karaf/jaas/modules/krb5/Krb5LoginModuleTest.java
>> 
>> I added the missing licenses header and that worked. The build is some
>> steps further. But I don't understand why the license header issue
>> happens just to me and not to you all.
>> 
>> No the build complains about failed tests within karaf-maven-plugin:
>> 
>> 
>> [INFO] Build Summary:
>> [INFO]   Passed: 18, Failed: 5, Errors: 0, Skipped: 0
>> [INFO] -
>> [ERROR] The following builds failed:
>> [ERROR] *  test-run/pom.xml
>> [ERROR] *  test-repository-dependencies/pom.xml
>> [ERROR] *  test-assembly/pom.xml
>> [ERROR] *  test-assembly-prop-edits/pom.xml
>> [ERROR] *  test-feature-use-version-range-transfer-properties/pom.xml
>> 
>> I will try again this evening.
>> 
>> @Christian
>> Yes of course it is a jdk.
>> 
>> @Jean-Baptiste
>> Yes at work I am behind a proxy. But that should not be a problem,
>> should it?
>> 
>> Regards,
>> Thomas
>> 
>> 
>> On Fri, Oct 14, 2016 at 2:38 PM, Benson Margulies > > wrote:
>> 
>>I suggest that you actually look at the RAT output file and see of
>>what it complains.
>> 
>>On Fri, Oct 14, 2016 at 8:30 AM, Christian Schneider
>>> wrote:
>>> I just ran this with no problems.
>>>
>>> git checkout karaf-4.0.7
>>> mvn clean install -DskipTests
>>>
>>> mvn -v
>>> Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
>>> 2014-12-14T18:29:23+01:00)
>>> Maven home: /home/cschneider/java/apache-maven-3.2.5
>>> Java version: 1.8.0_92, vendor: Oracle Corporation
>>> Java home: /home/cschneider/java/jdk1.8.0_92/jre
>>> Default locale: en_US, platform encoding: UTF-8
>>> OS name: "linux", version: "4.8.0-22-generic", arch: "amd64",
>>family: "unix"
>>>
>>>
>>> So you can experiment with a maven 3.2.
>>> You should also check that you have the jdk not jre and that it is the
>>> oracle one.
>>>
>>> Christian
>>>
>>>
>>>
>>> On 14.10.2016 14:09, Thomas Termin wrote:
>>>
>>> @Jean-Baptiste
>>> mvn clean install -DskipTests results in:
>>>
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>>
>>
>>> [INFO] Total time: 7.785 s
>>> [INFO] Finished at: 2016-10-14T14:06:08+02:00
>>> [INFO] Final Memory: 76M/383M
>>> [INFO]
>>>
>>
>>> [ERROR] Failed to execute goal
>>org.apache.rat:apache-rat-plugin:0.11:check
>>> (default) on project karaf: Too many files with unapproved
>>license: 3 See
>>> RAT report in:
>>/local/tterm/apache-karaf-4.0.7/target/karaf-4.0.7.rat ->
>>> [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/MojoFailureException 
>> 
>>>
>>> @Christian
>>> Apache Maven 3.3.9
>>>
>>> java version "1.7.0_65"
>>> Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
>>> Java HotSpot(TM) Server VM (build 24.65-b04, mixed mode)
>>>
>>> and
>>>
>>> java version "1.8.0_40"
>>> Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
>>> Java HotSpot(TM) Server VM (build 25.40-b25, mixed mode)
>>>
>>> Regards,
>>> Thomas
>>>
>>>
>>> On Fri, Oct 14, 2016 at 1:53 PM, Christian Schneider
>>> > wrote:
>>>>
>>   

Re: karaf build

2016-10-14 Thread Jean-Baptiste Onofré

By the way, the failing karaf test are excluded by default:


test-run/pom.xml
test-assembly/pom.xml

test-check-dependencies-failure/pom.xml

test-assembly-prop-edits/pom.xml


So, you are not running a "regular" mvn goal ;)

Regards
JB

On 10/14/2016 03:18 PM, Thomas Termin wrote:

First off all thanks for the quick responses.

@Benson

RAT complains about missing apache license header within the files:

tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/LocalDependency.java
jaas/modules/src/main/java/org/apache/karaf/jaas/modules/krb5/Krb5LoginModule.java
jaas/modules/src/test/java/org/apache/karaf/jaas/modules/krb5/Krb5LoginModuleTest.java

I added the missing licenses header and that worked. The build is some
steps further. But I don't understand why the license header issue
happens just to me and not to you all.

No the build complains about failed tests within karaf-maven-plugin:


[INFO] Build Summary:
[INFO]   Passed: 18, Failed: 5, Errors: 0, Skipped: 0
[INFO] -
[ERROR] The following builds failed:
[ERROR] *  test-run/pom.xml
[ERROR] *  test-repository-dependencies/pom.xml
[ERROR] *  test-assembly/pom.xml
[ERROR] *  test-assembly-prop-edits/pom.xml
[ERROR] *  test-feature-use-version-range-transfer-properties/pom.xml

I will try again this evening.

@Christian
Yes of course it is a jdk.

@Jean-Baptiste
Yes at work I am behind a proxy. But that should not be a problem,
should it?

Regards,
Thomas


On Fri, Oct 14, 2016 at 2:38 PM, Benson Margulies > wrote:

I suggest that you actually look at the RAT output file and see of
what it complains.

On Fri, Oct 14, 2016 at 8:30 AM, Christian Schneider
> wrote:
> I just ran this with no problems.
>
> git checkout karaf-4.0.7
> mvn clean install -DskipTests
>
> mvn -v
> Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
> 2014-12-14T18:29:23+01:00)
> Maven home: /home/cschneider/java/apache-maven-3.2.5
> Java version: 1.8.0_92, vendor: Oracle Corporation
> Java home: /home/cschneider/java/jdk1.8.0_92/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "4.8.0-22-generic", arch: "amd64",
family: "unix"
>
>
> So you can experiment with a maven 3.2.
> You should also check that you have the jdk not jre and that it is the
> oracle one.
>
> Christian
>
>
>
> On 14.10.2016 14:09, Thomas Termin wrote:
>
> @Jean-Baptiste
> mvn clean install -DskipTests results in:
>
> [INFO] BUILD FAILURE
> [INFO]
>

> [INFO] Total time: 7.785 s
> [INFO] Finished at: 2016-10-14T14:06:08+02:00
> [INFO] Final Memory: 76M/383M
> [INFO]
>

> [ERROR] Failed to execute goal
org.apache.rat:apache-rat-plugin:0.11:check
> (default) on project karaf: Too many files with unapproved
license: 3 See
> RAT report in:
/local/tterm/apache-karaf-4.0.7/target/karaf-4.0.7.rat ->
> [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/MojoFailureException 

>
> @Christian
> Apache Maven 3.3.9
>
> java version "1.7.0_65"
> Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
> Java HotSpot(TM) Server VM (build 24.65-b04, mixed mode)
>
> and
>
> java version "1.8.0_40"
> Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
> Java HotSpot(TM) Server VM (build 25.40-b25, mixed mode)
>
> Regards,
> Thomas
>
>
> On Fri, Oct 14, 2016 at 1:53 PM, Christian Schneider
> > wrote:
>>
>> What java and maven versions do you use?
>>
>> Christian
>>
>>
>> On 14.10.2016 13:47, Thomas Termin wrote:
>>>
>>> Hello,
>>>
>>> why is it not possible to build the karaf source code? If I
download the
>>> src for 4.0.7 or checkout the tag and try to build karaf with mvn
>>> -Pfastinstall I always get the output below. It seems that there
are missing
>>> dependencies on apache.commons. What do I wrong?
>>>
>>> Regards,
>>> Thomas
>>>
>>>
>>> 

Re: karaf build

2016-10-14 Thread Jean-Baptiste Onofré

Hi Thomas,

I don't explain:

1. Rat output is correct, but rat is executed only if you build with the 
rat profile, so something like:


mvn clean install -Prat

Do you build with this profile ?

2. You can bypass the maven test (invoker) using -Dinvoker.skip:

mvn clean install -DskipTests -Dinvoker.skip

However, clearly, you don't execute a simple mvn clean install -DskipTests.

Don't you have some implicit profiles or configuration in your 
~/.m2/settings.xml ?


Regards
JB

On 10/14/2016 03:18 PM, Thomas Termin wrote:

First off all thanks for the quick responses.

@Benson

RAT complains about missing apache license header within the files:

tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/LocalDependency.java
jaas/modules/src/main/java/org/apache/karaf/jaas/modules/krb5/Krb5LoginModule.java
jaas/modules/src/test/java/org/apache/karaf/jaas/modules/krb5/Krb5LoginModuleTest.java

I added the missing licenses header and that worked. The build is some
steps further. But I don't understand why the license header issue
happens just to me and not to you all.

No the build complains about failed tests within karaf-maven-plugin:


[INFO] Build Summary:
[INFO]   Passed: 18, Failed: 5, Errors: 0, Skipped: 0
[INFO] -
[ERROR] The following builds failed:
[ERROR] *  test-run/pom.xml
[ERROR] *  test-repository-dependencies/pom.xml
[ERROR] *  test-assembly/pom.xml
[ERROR] *  test-assembly-prop-edits/pom.xml
[ERROR] *  test-feature-use-version-range-transfer-properties/pom.xml

I will try again this evening.

@Christian
Yes of course it is a jdk.

@Jean-Baptiste
Yes at work I am behind a proxy. But that should not be a problem,
should it?

Regards,
Thomas


On Fri, Oct 14, 2016 at 2:38 PM, Benson Margulies > wrote:

I suggest that you actually look at the RAT output file and see of
what it complains.

On Fri, Oct 14, 2016 at 8:30 AM, Christian Schneider
> wrote:
> I just ran this with no problems.
>
> git checkout karaf-4.0.7
> mvn clean install -DskipTests
>
> mvn -v
> Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
> 2014-12-14T18:29:23+01:00)
> Maven home: /home/cschneider/java/apache-maven-3.2.5
> Java version: 1.8.0_92, vendor: Oracle Corporation
> Java home: /home/cschneider/java/jdk1.8.0_92/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "4.8.0-22-generic", arch: "amd64",
family: "unix"
>
>
> So you can experiment with a maven 3.2.
> You should also check that you have the jdk not jre and that it is the
> oracle one.
>
> Christian
>
>
>
> On 14.10.2016 14:09, Thomas Termin wrote:
>
> @Jean-Baptiste
> mvn clean install -DskipTests results in:
>
> [INFO] BUILD FAILURE
> [INFO]
>

> [INFO] Total time: 7.785 s
> [INFO] Finished at: 2016-10-14T14:06:08+02:00
> [INFO] Final Memory: 76M/383M
> [INFO]
>

> [ERROR] Failed to execute goal
org.apache.rat:apache-rat-plugin:0.11:check
> (default) on project karaf: Too many files with unapproved
license: 3 See
> RAT report in:
/local/tterm/apache-karaf-4.0.7/target/karaf-4.0.7.rat ->
> [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/MojoFailureException 

>
> @Christian
> Apache Maven 3.3.9
>
> java version "1.7.0_65"
> Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
> Java HotSpot(TM) Server VM (build 24.65-b04, mixed mode)
>
> and
>
> java version "1.8.0_40"
> Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
> Java HotSpot(TM) Server VM (build 25.40-b25, mixed mode)
>
> Regards,
> Thomas
>
>
> On Fri, Oct 14, 2016 at 1:53 PM, Christian Schneider
> > wrote:
>>
>> What java and maven versions do you use?
>>
>> Christian
>>
>>
>> On 14.10.2016 13:47, Thomas Termin wrote:
>>>
>>> Hello,
>>>
>>> why is it not possible to build the karaf source code? If I
download the
>>> src for 4.0.7 or checkout the tag and try to build karaf with mvn
>>> -Pfastinstall I always get the output below. 

Re: karaf build

2016-10-14 Thread Thomas Termin
First off all thanks for the quick responses.

@Benson

RAT complains about missing apache license header within the files:

tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/LocalDependency.java
jaas/modules/src/main/java/org/apache/karaf/jaas/modules/krb5/Krb5LoginModule.java
jaas/modules/src/test/java/org/apache/karaf/jaas/modules/krb5/Krb5LoginModuleTest.java

I added the missing licenses header and that worked. The build is some
steps further. But I don't understand why the license header issue happens
just to me and not to you all.

No the build complains about failed tests within karaf-maven-plugin:


[INFO] Build Summary:
[INFO]   Passed: 18, Failed: 5, Errors: 0, Skipped: 0
[INFO] -
[ERROR] The following builds failed:
[ERROR] *  test-run/pom.xml
[ERROR] *  test-repository-dependencies/pom.xml
[ERROR] *  test-assembly/pom.xml
[ERROR] *  test-assembly-prop-edits/pom.xml
[ERROR] *  test-feature-use-version-range-transfer-properties/pom.xml

I will try again this evening.

@Christian
Yes of course it is a jdk.

@Jean-Baptiste
Yes at work I am behind a proxy. But that should not be a problem, should
it?

Regards,
Thomas


On Fri, Oct 14, 2016 at 2:38 PM, Benson Margulies 
wrote:

> I suggest that you actually look at the RAT output file and see of
> what it complains.
>
> On Fri, Oct 14, 2016 at 8:30 AM, Christian Schneider
>  wrote:
> > I just ran this with no problems.
> >
> > git checkout karaf-4.0.7
> > mvn clean install -DskipTests
> >
> > mvn -v
> > Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
> > 2014-12-14T18:29:23+01:00)
> > Maven home: /home/cschneider/java/apache-maven-3.2.5
> > Java version: 1.8.0_92, vendor: Oracle Corporation
> > Java home: /home/cschneider/java/jdk1.8.0_92/jre
> > Default locale: en_US, platform encoding: UTF-8
> > OS name: "linux", version: "4.8.0-22-generic", arch: "amd64", family:
> "unix"
> >
> >
> > So you can experiment with a maven 3.2.
> > You should also check that you have the jdk not jre and that it is the
> > oracle one.
> >
> > Christian
> >
> >
> >
> > On 14.10.2016 14:09, Thomas Termin wrote:
> >
> > @Jean-Baptiste
> > mvn clean install -DskipTests results in:
> >
> > [INFO] BUILD FAILURE
> > [INFO]
> > 
> > [INFO] Total time: 7.785 s
> > [INFO] Finished at: 2016-10-14T14:06:08+02:00
> > [INFO] Final Memory: 76M/383M
> > [INFO]
> > 
> > [ERROR] Failed to execute goal org.apache.rat:apache-rat-
> plugin:0.11:check
> > (default) on project karaf: Too many files with unapproved license: 3 See
> > RAT report in: /local/tterm/apache-karaf-4.0.7/target/karaf-4.0.7.rat ->
> > [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/MojoFailureException
> >
> > @Christian
> > Apache Maven 3.3.9
> >
> > java version "1.7.0_65"
> > Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
> > Java HotSpot(TM) Server VM (build 24.65-b04, mixed mode)
> >
> > and
> >
> > java version "1.8.0_40"
> > Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
> > Java HotSpot(TM) Server VM (build 25.40-b25, mixed mode)
> >
> > Regards,
> > Thomas
> >
> >
> > On Fri, Oct 14, 2016 at 1:53 PM, Christian Schneider
> >  wrote:
> >>
> >> What java and maven versions do you use?
> >>
> >> Christian
> >>
> >>
> >> On 14.10.2016 13:47, Thomas Termin wrote:
> >>>
> >>> Hello,
> >>>
> >>> why is it not possible to build the karaf source code? If I download
> the
> >>> src for 4.0.7 or checkout the tag and try to build karaf with mvn
> >>> -Pfastinstall I always get the output below. It seems that there are
> missing
> >>> dependencies on apache.commons. What do I wrong?
> >>>
> >>> Regards,
> >>> Thomas
> >>>
> >>>
> >>> [ERROR] Failed to execute goal
> >>> org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile
> >>> (default-compile) on project karaf-maven-plugin: Compilation failure:
> >>> Compilation failure:
> >>> [ERROR]
> >>> /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/
> src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,
> 46]
> >>> package org.apache.commons.lang.reflect does not exist
> >>> [ERROR]
> >>> /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/
> src/main/java/org/apache/karaf/tooling/utils/
> Dependency30Helper.java:[22,1]
> >>> static import only from classes and interfaces
> >>> [ERROR]
> >>> /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/
> 

Re: karaf build

2016-10-14 Thread Benson Margulies
I suggest that you actually look at the RAT output file and see of
what it complains.

On Fri, Oct 14, 2016 at 8:30 AM, Christian Schneider
 wrote:
> I just ran this with no problems.
>
> git checkout karaf-4.0.7
> mvn clean install -DskipTests
>
> mvn -v
> Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
> 2014-12-14T18:29:23+01:00)
> Maven home: /home/cschneider/java/apache-maven-3.2.5
> Java version: 1.8.0_92, vendor: Oracle Corporation
> Java home: /home/cschneider/java/jdk1.8.0_92/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "4.8.0-22-generic", arch: "amd64", family: "unix"
>
>
> So you can experiment with a maven 3.2.
> You should also check that you have the jdk not jre and that it is the
> oracle one.
>
> Christian
>
>
>
> On 14.10.2016 14:09, Thomas Termin wrote:
>
> @Jean-Baptiste
> mvn clean install -DskipTests results in:
>
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 7.785 s
> [INFO] Finished at: 2016-10-14T14:06:08+02:00
> [INFO] Final Memory: 76M/383M
> [INFO]
> 
> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check
> (default) on project karaf: Too many files with unapproved license: 3 See
> RAT report in: /local/tterm/apache-karaf-4.0.7/target/karaf-4.0.7.rat ->
> [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/MojoFailureException
>
> @Christian
> Apache Maven 3.3.9
>
> java version "1.7.0_65"
> Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
> Java HotSpot(TM) Server VM (build 24.65-b04, mixed mode)
>
> and
>
> java version "1.8.0_40"
> Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
> Java HotSpot(TM) Server VM (build 25.40-b25, mixed mode)
>
> Regards,
> Thomas
>
>
> On Fri, Oct 14, 2016 at 1:53 PM, Christian Schneider
>  wrote:
>>
>> What java and maven versions do you use?
>>
>> Christian
>>
>>
>> On 14.10.2016 13:47, Thomas Termin wrote:
>>>
>>> Hello,
>>>
>>> why is it not possible to build the karaf source code? If I download the
>>> src for 4.0.7 or checkout the tag and try to build karaf with mvn
>>> -Pfastinstall I always get the output below. It seems that there are missing
>>> dependencies on apache.commons. What do I wrong?
>>>
>>> Regards,
>>> Thomas
>>>
>>>
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile
>>> (default-compile) on project karaf-maven-plugin: Compilation failure:
>>> Compilation failure:
>>> [ERROR]
>>> /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,46]
>>> package org.apache.commons.lang.reflect does not exist
>>> [ERROR]
>>> /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,1]
>>> static import only from classes and interfaces
>>> [ERROR]
>>> /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,46]
>>> package org.apache.commons.lang.reflect does not exist
>>> [ERROR]
>>> /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,1]
>>> static import only from classes and interfaces
>>> [ERROR]
>>> /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,46]
>>> package org.apache.commons.lang.reflect does not exist
>>> [ERROR]
>>> /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,1]
>>> static import only from classes and interfaces
>>> [ERROR]
>>> /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,46]
>>> package org.apache.commons.lang.reflect does not exist
>>> [ERROR]
>>> /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,1]
>>> static import only from classes and interfaces
>>> [ERROR]
>>> /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[95,25]
>>> cannot find symbol
>>> [ERROR] symbol:   method
>>> invokeMethod(org.apache.maven.project.ProjectBuildingRequest,java.lang.String,org.sonatype.aether.RepositorySystemSession)
>>> [ERROR] location: class org.apache.karaf.tooling.utils.Dependency30Helper

Re: karaf build

2016-10-14 Thread Christian Schneider

I just ran this with no problems.

git checkout karaf-4.0.7
mvn clean install -DskipTests

mvn -v
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 
2014-12-14T18:29:23+01:00)

Maven home: /home/cschneider/java/apache-maven-3.2.5
Java version: 1.8.0_92, vendor: Oracle Corporation
Java home: /home/cschneider/java/jdk1.8.0_92/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.8.0-22-generic", arch: "amd64", family: "unix"


So you can experiment with a maven 3.2.
You should also check that you have the jdk not jre and that it is the 
oracle one.


Christian


On 14.10.2016 14:09, Thomas Termin wrote:

@Jean-Baptiste
mvn clean install -DskipTests results in:

[INFO] BUILD FAILURE
[INFO] 


[INFO] Total time: 7.785 s
[INFO] Finished at: 2016-10-14T14:06:08+02:00
[INFO] Final Memory: 76M/383M
[INFO] 

[ERROR] Failed to execute goal 
org.apache.rat:apache-rat-plugin:0.11:check (default) on project 
karaf: Too many files with unapproved license: 3 See RAT report in: 
/local/tterm/apache-karaf-4.0.7/target/karaf-4.0.7.rat -> [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/MojoFailureException


@Christian
Apache Maven 3.3.9

java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) Server VM (build 24.65-b04, mixed mode)

and

java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) Server VM (build 25.40-b25, mixed mode)

Regards,
Thomas


On Fri, Oct 14, 2016 at 1:53 PM, Christian Schneider 
> wrote:


What java and maven versions do you use?

Christian


On 14.10.2016 13:47, Thomas Termin wrote:

Hello,

why is it not possible to build the karaf source code? If I
download the src for 4.0.7 or checkout the tag and try to
build karaf with mvn -Pfastinstall I always get the output
below. It seems that there are missing dependencies on
apache.commons. What do I wrong?

Regards,
Thomas


[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile
(default-compile) on project karaf-maven-plugin: Compilation
failure: Compilation failure:
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,46]
package org.apache.commons.lang.reflect does not exist
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,1]
static import only from classes and interfaces
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,46]
package org.apache.commons.lang.reflect does not exist
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,1]
static import only from classes and interfaces
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,46]
package org.apache.commons.lang.reflect does not exist
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,1]
static import only from classes and interfaces
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,46]
package org.apache.commons.lang.reflect does not exist
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,1]
static import only from classes and interfaces
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[95,25]
cannot find symbol
[ERROR] symbol:   method

invokeMethod(org.apache.maven.project.ProjectBuildingRequest,java.lang.String,org.sonatype.aether.RepositorySystemSession)
[ERROR] location: class
org.apache.karaf.tooling.utils.Dependency30Helper
[ERROR]


Re: karaf build

2016-10-14 Thread Jean-Baptiste Onofré

Hi Thomas,

you have some "created" file without license, that's why it fails on RAT.

I just tried purging my local ~/.m2/repository/org/apache/karaf and 
~/.m2/repository/commons-*


with Maven 3.3.9 and Java 8.

And it works fine.

Do you have some Maven or HTTP proxy ?

Regards
JB

On 10/14/2016 02:09 PM, Thomas Termin wrote:

@Jean-Baptiste
mvn clean install -DskipTests results in:

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 7.785 s
[INFO] Finished at: 2016-10-14T14:06:08+02:00
[INFO] Final Memory: 76M/383M
[INFO]

[ERROR] Failed to execute goal
org.apache.rat:apache-rat-plugin:0.11:check (default) on project karaf:
Too many files with unapproved license: 3 See RAT report in:
/local/tterm/apache-karaf-4.0.7/target/karaf-4.0.7.rat -> [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/MojoFailureException

@Christian
Apache Maven 3.3.9

java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) Server VM (build 24.65-b04, mixed mode)

and

java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) Server VM (build 25.40-b25, mixed mode)

Regards,
Thomas


On Fri, Oct 14, 2016 at 1:53 PM, Christian Schneider
> wrote:

What java and maven versions do you use?

Christian


On 14.10.2016 13:47, Thomas Termin wrote:

Hello,

why is it not possible to build the karaf source code? If I
download the src for 4.0.7 or checkout the tag and try to build
karaf with mvn -Pfastinstall I always get the output below. It
seems that there are missing dependencies on apache.commons.
What do I wrong?

Regards,
Thomas


[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile
(default-compile) on project karaf-maven-plugin: Compilation
failure: Compilation failure:
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,46]
package org.apache.commons.lang.reflect does not exist
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,1]
static import only from classes and interfaces
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,46]
package org.apache.commons.lang.reflect does not exist
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,1]
static import only from classes and interfaces
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,46]
package org.apache.commons.lang.reflect does not exist
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,1]
static import only from classes and interfaces
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,46]
package org.apache.commons.lang.reflect does not exist
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,1]
static import only from classes and interfaces
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[95,25]
cannot find symbol
[ERROR] symbol:   method

invokeMethod(org.apache.maven.project.ProjectBuildingRequest,java.lang.String,org.sonatype.aether.RepositorySystemSession)
[ERROR] location: class
org.apache.karaf.tooling.utils.Dependency30Helper
[ERROR]

/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[91,25]
cannot find symbol
[ERROR] symbol:   method

invokeMethod(org.apache.maven.project.ProjectBuildingRequest,java.lang.String,org.eclipse.aether.RepositorySystemSession)
[ERROR] location: class

Re: karaf build

2016-10-14 Thread Thomas Termin
@Jean-Baptiste
mvn clean install -DskipTests results in:

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 7.785 s
[INFO] Finished at: 2016-10-14T14:06:08+02:00
[INFO] Final Memory: 76M/383M
[INFO]

[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check
(default) on project karaf: Too many files with unapproved license: 3 See
RAT report in: /local/tterm/apache-karaf-4.0.7/target/karaf-4.0.7.rat ->
[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/MojoFailureException

@Christian
Apache Maven 3.3.9

java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) Server VM (build 24.65-b04, mixed mode)

and

java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) Server VM (build 25.40-b25, mixed mode)

Regards,
Thomas


On Fri, Oct 14, 2016 at 1:53 PM, Christian Schneider <
ch...@die-schneider.net> wrote:

> What java and maven versions do you use?
>
> Christian
>
>
> On 14.10.2016 13:47, Thomas Termin wrote:
>
>> Hello,
>>
>> why is it not possible to build the karaf source code? If I download the
>> src for 4.0.7 or checkout the tag and try to build karaf with mvn
>> -Pfastinstall I always get the output below. It seems that there are
>> missing dependencies on apache.commons. What do I wrong?
>>
>> Regards,
>> Thomas
>>
>>
>> [ERROR] Failed to execute goal 
>> org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile
>> (default-compile) on project karaf-maven-plugin: Compilation failure:
>> Compilation failure:
>> [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/s
>> rc/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,46]
>> package org.apache.commons.lang.reflect does not exist
>> [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/s
>> rc/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,1]
>> static import only from classes and interfaces
>> [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/s
>> rc/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,46]
>> package org.apache.commons.lang.reflect does not exist
>> [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/s
>> rc/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,1]
>> static import only from classes and interfaces
>> [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/s
>> rc/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,46]
>> package org.apache.commons.lang.reflect does not exist
>> [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/s
>> rc/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,1]
>> static import only from classes and interfaces
>> [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/s
>> rc/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,46]
>> package org.apache.commons.lang.reflect does not exist
>> [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/s
>> rc/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,1]
>> static import only from classes and interfaces
>> [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/s
>> rc/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[95,25]
>> cannot find symbol
>> [ERROR] symbol:   method invokeMethod(org.apache.maven.
>> project.ProjectBuildingRequest,java.lang.String,org.
>> sonatype.aether.RepositorySystemSession)
>> [ERROR] location: class org.apache.karaf.tooling.utils.Dependency30Helper
>> [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/s
>> rc/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[91,25]
>> cannot find symbol
>> [ERROR] symbol:   method invokeMethod(org.apache.maven.
>> project.ProjectBuildingRequest,java.lang.String,org.eclipse.
>> aether.RepositorySystemSession)
>> [ERROR] location: class org.apache.karaf.tooling.utils.Dependency31Helper
>> [ERROR] -> [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/conflu
>> ence/display/MAVEN/MojoFailureException
>> [ERROR]
>> [ERROR] After correcting the problems, you can resume the build with the
>> command
>> [ERROR]   mvn  -rf :karaf-maven-plugin
>>
>>
>
> --
> 

Re: karaf build

2016-10-14 Thread Jean-Baptiste Onofré

Hi Thomas,

Can you try mvn clean install -DskipTests ?

Regards
JB

On 10/14/2016 01:47 PM, Thomas Termin wrote:

Hello,

why is it not possible to build the karaf source code? If I download the
src for 4.0.7 or checkout the tag and try to build karaf with mvn
-Pfastinstall I always get the output below. It seems that there are
missing dependencies on apache.commons. What do I wrong?

Regards,
Thomas


[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile
(default-compile) on project karaf-maven-plugin: Compilation failure:
Compilation failure:
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,46]
package org.apache.commons.lang.reflect does not exist
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,1]
static import only from classes and interfaces
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,46]
package org.apache.commons.lang.reflect does not exist
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,1]
static import only from classes and interfaces
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,46]
package org.apache.commons.lang.reflect does not exist
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,1]
static import only from classes and interfaces
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,46]
package org.apache.commons.lang.reflect does not exist
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,1]
static import only from classes and interfaces
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[95,25]
cannot find symbol
[ERROR] symbol:   method
invokeMethod(org.apache.maven.project.ProjectBuildingRequest,java.lang.String,org.sonatype.aether.RepositorySystemSession)
[ERROR] location: class org.apache.karaf.tooling.utils.Dependency30Helper
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[91,25]
cannot find symbol
[ERROR] symbol:   method
invokeMethod(org.apache.maven.project.ProjectBuildingRequest,java.lang.String,org.eclipse.aether.RepositorySystemSession)
[ERROR] location: class org.apache.karaf.tooling.utils.Dependency31Helper
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn  -rf :karaf-maven-plugin



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: karaf build

2016-10-14 Thread Christian Schneider

What java and maven versions do you use?

Christian

On 14.10.2016 13:47, Thomas Termin wrote:

Hello,

why is it not possible to build the karaf source code? If I download 
the src for 4.0.7 or checkout the tag and try to build karaf with mvn 
-Pfastinstall I always get the output below. It seems that there are 
missing dependencies on apache.commons. What do I wrong?


Regards,
Thomas


[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile 
(default-compile) on project karaf-maven-plugin: Compilation failure: 
Compilation failure:
[ERROR] 
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,46] 
package org.apache.commons.lang.reflect does not exist
[ERROR] 
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,1] 
static import only from classes and interfaces
[ERROR] 
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,46] 
package org.apache.commons.lang.reflect does not exist
[ERROR] 
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,1] 
static import only from classes and interfaces
[ERROR] 
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,46] 
package org.apache.commons.lang.reflect does not exist
[ERROR] 
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,1] 
static import only from classes and interfaces
[ERROR] 
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,46] 
package org.apache.commons.lang.reflect does not exist
[ERROR] 
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,1] 
static import only from classes and interfaces
[ERROR] 
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[95,25] 
cannot find symbol
[ERROR] symbol:   method 
invokeMethod(org.apache.maven.project.ProjectBuildingRequest,java.lang.String,org.sonatype.aether.RepositorySystemSession)

[ERROR] location: class org.apache.karaf.tooling.utils.Dependency30Helper
[ERROR] 
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[91,25] 
cannot find symbol
[ERROR] symbol:   method 
invokeMethod(org.apache.maven.project.ProjectBuildingRequest,java.lang.String,org.eclipse.aether.RepositorySystemSession)

[ERROR] location: class org.apache.karaf.tooling.utils.Dependency31Helper
[ERROR] -> [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/MojoFailureException

[ERROR]
[ERROR] After correcting the problems, you can resume the build with 
the command

[ERROR]   mvn  -rf :karaf-maven-plugin




--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com



karaf build

2016-10-14 Thread Thomas Termin
Hello,

why is it not possible to build the karaf source code? If I download the
src for 4.0.7 or checkout the tag and try to build karaf with mvn
-Pfastinstall I always get the output below. It seems that there are
missing dependencies on apache.commons. What do I wrong?

Regards,
Thomas


[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile
(default-compile) on project karaf-maven-plugin: Compilation failure:
Compilation failure:
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,46]
package org.apache.commons.lang.reflect does not exist
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,1]
static import only from classes and interfaces
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,46]
package org.apache.commons.lang.reflect does not exist
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,1]
static import only from classes and interfaces
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,46]
package org.apache.commons.lang.reflect does not exist
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,1]
static import only from classes and interfaces
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,46]
package org.apache.commons.lang.reflect does not exist
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,1]
static import only from classes and interfaces
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[95,25]
cannot find symbol
[ERROR] symbol:   method
invokeMethod(org.apache.maven.project.ProjectBuildingRequest,java.lang.String,org.sonatype.aether.RepositorySystemSession)
[ERROR] location: class org.apache.karaf.tooling.utils.Dependency30Helper
[ERROR]
/local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[91,25]
cannot find symbol
[ERROR] symbol:   method
invokeMethod(org.apache.maven.project.ProjectBuildingRequest,java.lang.String,org.eclipse.aether.RepositorySystemSession)
[ERROR] location: class org.apache.karaf.tooling.utils.Dependency31Helper
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn  -rf :karaf-maven-plugin