Building Camel 2.24.2 fails mysteriously locally

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Building Camel 2.24.2 fails mysteriously locally

omarsmak
Hello guys,

I have a very weird issue with with maven locally, whenever I try to build
camel-2.24.2, my build fails with the following error with no further
information:
[INFO] Camel :: Tooling ................................... SUCCESS [
 0.025 s]
[INFO] Camel :: Maven Plugins ............................. SUCCESS [
 0.127 s]
[INFO] Camel :: Maven Plugins :: BOM Generator ............ FAILURE [
 3.760 s]
[INFO] Camel :: BOM :: Generator .......................... SKIPPED
..
ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile
(default-compile) on project bom-generator-maven-plugin: Compilation
failure -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile
(default-compile) on project bom-generator-maven-plugin: Compilation failure
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)
..
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException:
Compilation failure
    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute
(AbstractCompilerMojo.java:1219)
    at org.apache.maven.plugin.compiler.CompilerMojo.execute
(CompilerMojo.java:188)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:208)
..
I am using  mvn clean install -P fastinstall -e to build it and I
have deleted my local maven repo in order to make sure it doesnt conflict
with 3.X build. However it always fails with the above error with no
further info to debug, any hints what I could do about it?
P/S: I recall I used to build the branch 2.x fine last month but not sure
why it is misbehaving now :/ or maybe I did something wrong somewhere?

P/S: I am using jdk8

Regards,
Omar
Reply | Threaded
Open this post in threaded view
|

Re: Building Camel 2.24.2 fails mysteriously locally

Andrea Cosentino-3
First run a complete installation

mvn clean install -DskipTests

fastinstall on 2.x doesn't work like on master, it's older and it doesn't
have the enhancements done by Guillaume.

So first run should be done normally, then you can try to use the
fastinstall profile.

Il giorno gio 17 ott 2019 alle ore 12:04 Omar Al-Safi <[hidden email]>
ha scritto:

> Hello guys,
>
> I have a very weird issue with with maven locally, whenever I try to build
> camel-2.24.2, my build fails with the following error with no further
> information:
> [INFO] Camel :: Tooling ................................... SUCCESS [
>  0.025 s]
> [INFO] Camel :: Maven Plugins ............................. SUCCESS [
>  0.127 s]
> [INFO] Camel :: Maven Plugins :: BOM Generator ............ FAILURE [
>  3.760 s]
> [INFO] Camel :: BOM :: Generator .......................... SKIPPED
> ..
> ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile
> (default-compile) on project bom-generator-maven-plugin: Compilation
> failure -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile
> (default-compile) on project bom-generator-maven-plugin: Compilation
> failure
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:213)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:154)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:146)
> ..
> Caused by: org.apache.maven.plugin.compiler.CompilationFailureException:
> Compilation failure
>     at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute
> (AbstractCompilerMojo.java:1219)
>     at org.apache.maven.plugin.compiler.CompilerMojo.execute
> (CompilerMojo.java:188)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
> (DefaultBuildPluginManager.java:137)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:208)
> ..
> I am using  mvn clean install -P fastinstall -e to build it and I
> have deleted my local maven repo in order to make sure it doesnt conflict
> with 3.X build. However it always fails with the above error with no
> further info to debug, any hints what I could do about it?
> P/S: I recall I used to build the branch 2.x fine last month but not sure
> why it is misbehaving now :/ or maybe I did something wrong somewhere?
>
> P/S: I am using jdk8
>
> Regards,
> Omar
>
Reply | Threaded
Open this post in threaded view
|

Re: Building Camel 2.24.2 fails mysteriously locally

omarsmak
Hi Andrea,

Thanks for the hint. I tried it but it still fails with the same error
message, I even tried with jdk8-build profile to make sure I am building
against jdk8 but it didn't work :(. Any other suggestions?

Thanks

On Thu, 17 Oct 2019 at 12:06, Andrea Cosentino <[hidden email]> wrote:

> First run a complete installation
>
> mvn clean install -DskipTests
>
> fastinstall on 2.x doesn't work like on master, it's older and it doesn't
> have the enhancements done by Guillaume.
>
> So first run should be done normally, then you can try to use the
> fastinstall profile.
>
> Il giorno gio 17 ott 2019 alle ore 12:04 Omar Al-Safi <[hidden email]>
> ha scritto:
>
> > Hello guys,
> >
> > I have a very weird issue with with maven locally, whenever I try to
> build
> > camel-2.24.2, my build fails with the following error with no further
> > information:
> > [INFO] Camel :: Tooling ................................... SUCCESS [
> >  0.025 s]
> > [INFO] Camel :: Maven Plugins ............................. SUCCESS [
> >  0.127 s]
> > [INFO] Camel :: Maven Plugins :: BOM Generator ............ FAILURE [
> >  3.760 s]
> > [INFO] Camel :: BOM :: Generator .......................... SKIPPED
> > ..
> > ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile
> > (default-compile) on project bom-generator-maven-plugin: Compilation
> > failure -> [Help 1]
> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> > goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile
> > (default-compile) on project bom-generator-maven-plugin: Compilation
> > failure
> >     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:213)
> >     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:154)
> >     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:146)
> > ..
> > Caused by: org.apache.maven.plugin.compiler.CompilationFailureException:
> > Compilation failure
> >     at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute
> > (AbstractCompilerMojo.java:1219)
> >     at org.apache.maven.plugin.compiler.CompilerMojo.execute
> > (CompilerMojo.java:188)
> >     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
> > (DefaultBuildPluginManager.java:137)
> >     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:208)
> > ..
> > I am using  mvn clean install -P fastinstall -e to build it and I
> > have deleted my local maven repo in order to make sure it doesnt conflict
> > with 3.X build. However it always fails with the above error with no
> > further info to debug, any hints what I could do about it?
> > P/S: I recall I used to build the branch 2.x fine last month but not sure
> > why it is misbehaving now :/ or maybe I did something wrong somewhere?
> >
> > P/S: I am using jdk8
> >
> > Regards,
> > Omar
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Building Camel 2.24.2 fails mysteriously locally

Andrea Cosentino-2
I'll try to build locally.
--Andrea Cosentino ----------------------------------Apache Camel PMC ChairApache Karaf CommitterApache Servicemix PMC MemberEmail: [hidden email]: @oscerd2Github: oscerd

    On Thursday, October 17, 2019, 12:35:58 PM GMT+2, Omar Al-Safi <[hidden email]> wrote:  
 
 Hi Andrea,

Thanks for the hint. I tried it but it still fails with the same error
message, I even tried with jdk8-build profile to make sure I am building
against jdk8 but it didn't work :(. Any other suggestions?

Thanks

On Thu, 17 Oct 2019 at 12:06, Andrea Cosentino <[hidden email]> wrote:

> First run a complete installation
>
> mvn clean install -DskipTests
>
> fastinstall on 2.x doesn't work like on master, it's older and it doesn't
> have the enhancements done by Guillaume.
>
> So first run should be done normally, then you can try to use the
> fastinstall profile.
>
> Il giorno gio 17 ott 2019 alle ore 12:04 Omar Al-Safi <[hidden email]>
> ha scritto:
>
> > Hello guys,
> >
> > I have a very weird issue with with maven locally, whenever I try to
> build
> > camel-2.24.2, my build fails with the following error with no further
> > information:
> > [INFO] Camel :: Tooling ................................... SUCCESS [
> >  0.025 s]
> > [INFO] Camel :: Maven Plugins ............................. SUCCESS [
> >  0.127 s]
> > [INFO] Camel :: Maven Plugins :: BOM Generator ............ FAILURE [
> >  3.760 s]
> > [INFO] Camel :: BOM :: Generator .......................... SKIPPED
> > ..
> > ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile
> > (default-compile) on project bom-generator-maven-plugin: Compilation
> > failure -> [Help 1]
> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> > goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile
> > (default-compile) on project bom-generator-maven-plugin: Compilation
> > failure
> >    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:213)
> >    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:154)
> >    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:146)
> > ..
> > Caused by: org.apache.maven.plugin.compiler.CompilationFailureException:
> > Compilation failure
> >    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute
> > (AbstractCompilerMojo.java:1219)
> >    at org.apache.maven.plugin.compiler.CompilerMojo.execute
> > (CompilerMojo.java:188)
> >    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
> > (DefaultBuildPluginManager.java:137)
> >    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:208)
> > ..
> > I am using  mvn clean install -P fastinstall -e to build it and I
> > have deleted my local maven repo in order to make sure it doesnt conflict
> > with 3.X build. However it always fails with the above error with no
> > further info to debug, any hints what I could do about it?
> > P/S: I recall I used to build the branch 2.x fine last month but not sure
> > why it is misbehaving now :/ or maybe I did something wrong somewhere?
> >
> > P/S: I am using jdk8
> >
> > Regards,
> > Omar
> >
>
 
Reply | Threaded
Open this post in threaded view
|

Re: Building Camel 2.24.2 fails mysteriously locally

omarsmak
In reply to this post by omarsmak
Hi Andrea,

An update, apparently when I ran the build with flag -X, I relalized the
JAVA_HOME was set to JDK11 (although when I run java -version, it reports
java 1.8), I am using jenv to manage my Java environments and apparently it
didn't set the JAVA_HOME correctly when I did the switch between Java 8 and
11 and back, although I am still wondering how I was able to build the
master while my JAVA_HOME was set wrongly all this time :D.

Now I fixed the JAVA_HOME and it is building as I'd expect it to.

Thanks a lot!

On Thu, 17 Oct 2019 at 12:18, Omar Al-Safi <[hidden email]> wrote:

> Hi Andrea,
>
> Thanks for the hint. I tried it but it still fails with the same error
> message, I even tried with jdk8-build profile to make sure I am building
> against jdk8 but it didn't work :(. Any other suggestions?
>
> Thanks
>
> On Thu, 17 Oct 2019 at 12:06, Andrea Cosentino <[hidden email]> wrote:
>
>> First run a complete installation
>>
>> mvn clean install -DskipTests
>>
>> fastinstall on 2.x doesn't work like on master, it's older and it doesn't
>> have the enhancements done by Guillaume.
>>
>> So first run should be done normally, then you can try to use the
>> fastinstall profile.
>>
>> Il giorno gio 17 ott 2019 alle ore 12:04 Omar Al-Safi <[hidden email]
>> >
>> ha scritto:
>>
>> > Hello guys,
>> >
>> > I have a very weird issue with with maven locally, whenever I try to
>> build
>> > camel-2.24.2, my build fails with the following error with no further
>> > information:
>> > [INFO] Camel :: Tooling ................................... SUCCESS [
>> >  0.025 s]
>> > [INFO] Camel :: Maven Plugins ............................. SUCCESS [
>> >  0.127 s]
>> > [INFO] Camel :: Maven Plugins :: BOM Generator ............ FAILURE [
>> >  3.760 s]
>> > [INFO] Camel :: BOM :: Generator .......................... SKIPPED
>> > ..
>> > ERROR] Failed to execute goal
>> > org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile
>> > (default-compile) on project bom-generator-maven-plugin: Compilation
>> > failure -> [Help 1]
>> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>> execute
>> > goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile
>> > (default-compile) on project bom-generator-maven-plugin: Compilation
>> > failure
>> >     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
>> > (MojoExecutor.java:213)
>> >     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
>> > (MojoExecutor.java:154)
>> >     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
>> > (MojoExecutor.java:146)
>> > ..
>> > Caused by: org.apache.maven.plugin.compiler.CompilationFailureException:
>> > Compilation failure
>> >     at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute
>> > (AbstractCompilerMojo.java:1219)
>> >     at org.apache.maven.plugin.compiler.CompilerMojo.execute
>> > (CompilerMojo.java:188)
>> >     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
>> > (DefaultBuildPluginManager.java:137)
>> >     at org.apache.maven.lifecycle.internal.MojoExecutor.execute
>> > (MojoExecutor.java:208)
>> > ..
>> > I am using  mvn clean install -P fastinstall -e to build it and I
>> > have deleted my local maven repo in order to make sure it doesnt
>> conflict
>> > with 3.X build. However it always fails with the above error with no
>> > further info to debug, any hints what I could do about it?
>> > P/S: I recall I used to build the branch 2.x fine last month but not
>> sure
>> > why it is misbehaving now :/ or maybe I did something wrong somewhere?
>> >
>> > P/S: I am using jdk8
>> >
>> > Regards,
>> > Omar
>> >
>>
>