Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resolve class com.javadocmd.simplelatlng.LatLng #10

Open
zoran119 opened this issue Jun 4, 2013 · 4 comments
Open

Unable to resolve class com.javadocmd.simplelatlng.LatLng #10

zoran119 opened this issue Jun 4, 2013 · 4 comments

Comments

@zoran119
Copy link

zoran119 commented Jun 4, 2013

Hi,

I'm getting the following errors when after installing the plugin. Any idea what it could be?

| Error Compilation error: startup failed:
/home/zoran/.grails/2.2.2/projects/play/plugins/geolocation-0.4.1/src/groovy/org/grails/plugin/geolocation/utils/GeoUtils.groovy: 4: unable to resolve class com.javadocmd.simplelatlng.LatLng
 @ line 4, column 1.
   import com.javadocmd.simplelatlng.LatLng;
   ^

/home/zoran/.grails/2.2.2/projects/play/plugins/geolocation-0.4.1/src/groovy/org/grails/plugin/geolocation/utils/GeoUtils.groovy: 9: unable to resolve class com.javadocmd.simplelatlng.LatLng 
 @ line 9, column 2.
        static LatLng  convertGeopositionToLatLng(GeoPosition geoposition){
    ^

/home/zoran/.grails/2.2.2/projects/play/plugins/geolocation-0.4.1/grails-app/services/org/grails/plugin/geolocation/GeolocationService.groovy: 5: unable to resolve class com.javadocmd.simplelatlng.util.LatLngConfig
 @ line 5, column 1.
   import com.javadocmd.simplelatlng.util.LatLngConfig;
   ^

/home/zoran/.grails/2.2.2/projects/play/plugins/geolocation-0.4.1/grails-app/services/org/grails/plugin/geolocation/GeolocationService.groovy: 6: unable to resolve class com.javadocmd.simplelatlng.util.LengthUnit
 @ line 6, column 1.
   import com.javadocmd.simplelatlng.util.LengthUnit;
   ^

/home/zoran/.grails/2.2.2/projects/play/plugins/geolocation-0.4.1/grails-app/services/org/grails/plugin/geolocation/GeolocationService.groovy: 4: unable to resolve class com.javadocmd.simplelatlng.LatLngTool
 @ line 4, column 1.
   import com.javadocmd.simplelatlng.LatLngTool;
   ^

/home/zoran/.grails/2.2.2/projects/play/plugins/geolocation-0.4.1/grails-app/services/org/grails/plugin/geolocation/GeolocationService.groovy: 20: unable to resolve class com.javadocmd.simplelatlng.util.LengthUnit 
 @ line 20, column 2.
        private LengthUnit getLengthUnit(){
    ^

6 errors
@gauravchauhan
Copy link
Collaborator

I am not sure if this plugin has been tested on 2.2.2. It works on 1.3.7 and 2.0.0 for me. Sorry for not being of any help here.

@zoran119
Copy link
Author

I did some more research and it turns out that the plugin works if I specify legacyResolve = true in my BuildConfig.groovy. The user guide says that maybe the plugin dependencies should be declared with a different scope... more info at http://grails.org/doc/2.2.1/guide/upgradingFromPreviousVersionsOfGrails.html (under 'Dependency resolution' heading).

I added runtime 'com.javadocmd:simplelatlng:1.0.0' as a dependency in my project (in addition to installing the plugin). Also seems to work...

@aldrinm
Copy link

aldrinm commented Nov 24, 2013

I guess this plugin should be republished as a Maven artifact with the dependencies in the POM?

@grodriguezg
Copy link

zoran119 your comment solved my problem........thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants