lemonzone2010 / javamelody

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

Grails plugin: mvn grails:maven-war doesn't work without explicit net.bull.javamelody:javamelody-core dependency #284

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to use grails-melody:1.13 Grails plugin with maven. I have defined 
plugin in pom.xml. 
mvn -Dgrails.env=dev grails:maven-war throws an exception:
GrailsDataSourceBeanPostProcessor.groovy: 3: unable to resolve class 
net.bull.javamelody.JdbcWrapper

I can fix it by adding net.bull.javamelody:javamelody-core explicitly:
        <dependency>
            <groupId>net.bull.javamelody</groupId>
            <artifactId>javamelody-core</artifactId>
            <version>1.36.0</version>
        </dependency>

Why should I add it to pom.xml? 

Attached file contains project with problems. To represent problem run:
mvn -Dgrails.env=dev grails:maven-war

Original issue reported on code.google.com by belov...@gmail.com on 31 Jan 2013 at 8:29

Attachments:

GoogleCodeExporter commented 9 years ago
I do not know the details of dependency resolution in Grails.
But this is an old version of the grails melody plugin and of javamelody.
I suggest to download and install the plugin from:
https://code.google.com/p/javamelody/downloads/list

I do not know how to release this plugin with Grails 2 to publish it at:
http://www.grails.org/plugin/grails-melody

Original comment by evernat@free.fr on 31 Jan 2013 at 10:58

GoogleCodeExporter commented 9 years ago

Original comment by evernat@free.fr on 14 Feb 2013 at 11:45

GoogleCodeExporter commented 9 years ago
Have you tried the new version?
Have you found the cause of this issue?

Original comment by evernat@free.fr on 17 Feb 2013 at 11:34

GoogleCodeExporter commented 9 years ago
I'm experiencing the same issue with the latest version 1.20

Original comment by henry.ch...@gmail.com on 5 Mar 2013 at 4:31

GoogleCodeExporter commented 9 years ago
I'm also experiencing the same issue with version 1.20. I resolved it by adding 
this to my BuildConfig.groovy:

dependencies {
    compile "net.bull.javamelody:javamelody-core:1.43.0"
}

Original comment by benwilso...@gmail.com on 6 Mar 2013 at 4:16

GoogleCodeExporter commented 9 years ago
Issue moved to https://github.com/evernat/grails-melody-plugin/issues/2
Please follow there.

As said in the comments at github, I do not reproduce the issue using the newly 
published version 1.44.
Do you reproduce the issue?

Original comment by evernat@free.fr on 19 May 2013 at 11:54