lemonzone2010 / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

Maven not building current version #366

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

had to add this dependency (simply added after jacax.faces):

        <dependency>
            <groupId>javax.interceptor</groupId>
            <artifactId>javax.interceptor-api</artifactId>
            <version>1.2</version>
        </dependency>

against this problem:

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on 
project javamelody-core: Compilation failure: Compilation failure:
[ERROR] bootstrap class path not set in conjunction with -source 1.5
[ERROR] 
/home/xrepository/workspace/javamelody-core/src/main/java/net/bull/javamelody/Mo
nitoringInterceptor.java:[24,24] error: package javax.interceptor does not exist
[ERROR] 
/home/xrepository/workspace/javamelody-core/src/main/java/net/bull/javamelody/Mo
nitoringInterceptor.java:[25,24] error: package javax.interceptor does not exist
[ERROR] 
/home/xrepository/workspace/javamelody-core/src/main/java/net/bull/javamelody/Mo
nitoringInterceptor.java:[62,25] error: cannot find symbol
[ERROR] symbol:   class InvocationContext
[ERROR] location: class MonitoringInterceptor
[ERROR] 
/home/xrepository/workspace/javamelody-core/src/main/java/net/bull/javamelody/Mo
nitoringInterceptor.java:[91,33] error: cannot find symbol

Cheers,
André

Original issue reported on code.google.com by andrePan...@gmail.com on 11 Dec 2013 at 12:22

GoogleCodeExporter commented 9 years ago
Hmm had more problems here, using version 3.1 now and implemented also
TestMonitoringInterceptor.InvokeContext.getTimer()

Maybe it's because i use Eclipse embedded maven together with Open JDK 7

Original comment by andrePan...@gmail.com on 11 Dec 2013 at 12:42

GoogleCodeExporter commented 9 years ago
I do not understand why you have this problem.
Because there is already a dependency on the ejb-api:
        <dependency>
            <groupId>javax.ejb</groupId>
            <artifactId>ejb-api</artifactId>
            <version>3.0</version>
            <scope>provided</scope>
        </dependency>
declared in the pom.xml:
http://code.google.com/p/javamelody/source/browse/trunk/javamelody-core/pom.xml

And the ejb-api already includes javax.interceptor.InvocationContext interface.

Can you try again without javax.interceptor-api?

Original comment by evernat@free.fr on 11 Dec 2013 at 12:45

GoogleCodeExporter commented 9 years ago
I tried it, I got this problem :) But I think I know whats happening here.

I use Eclipse with JBoss Tools with embedded Maven.

This embedded JBossTools-Maven intercepts this ejb-api dependency and creates a 
pseudo POM and directly injects the necessary libs...but forgetting the 
interceptor-api along this line.

So never mind and close...not that many people will use this build setup. I 
only use it in a VM because I was to lazy to install maven seperately ;)

I just changes some stuff to get it working in eclipse for me, like adding the 
dependency and implementing an additional new method.

Original comment by andrePan...@gmail.com on 11 Dec 2013 at 4:29

GoogleCodeExporter commented 9 years ago
ok, thanks

Original comment by evernat@free.fr on 11 Dec 2013 at 9:42