http://code.google.com/p/androidannotations/wiki/MavenEclipse
我似乎无法使它工作我继续得到com.sun.codemodel#codemodel; 2.5-FROZen-AA:未找到
到目前为止,我有这个
description = "App"abbreviation = "App"version = '1.0.0.BUILD-SNAPSHOT'buildscript { repositorIEs { mavenRepo name: 'gradle-androID-plugin',urls: 'http://jvoegele.com/maven2/' mavenRepo name: 'androIDannotations',urls: 'http://repository.excilys.com/content/repositorIEs/releases/' } def gradleAndroidpluginVersion = '1.0.0' dependencIEs { classpath "com.jvoegele.gradle.plugins:androID-plugin:$gradleAndroidpluginVersion" }}apply plugin: 'androID'apply plugin: 'eclipse'apply plugin: 'IDea'def compatibilityVersion = 1.6sourceCompatability = compatibilityVersiontargetCompatibility = compatibilityVersionrepositorIEs { mavenCentral() mavenRepo urls: 'http://maven.springframework.org/snapshot' mavenRepo urls: 'http://maven.springframework.org/milestone'}def roboguiceVersion = '1.1.1'def guiceVersion = '2.0-no_aop'def springAndroIDVersion = '1.0.0.M4'def commonshttpClIEntVersion = '3.1'def jacksonMapperVersion = '1.8.5'def androIDAnnotationsversion = '2.1'dependencIEs { compile "org.roboguice:roboguice:$roboguiceVersion" compile "com.Google.inject:guice:$guiceVersion" compile "org.springframework.androID:spring-androID-rest-template:$springAndroIDVersion" compile "commons-httpclIEnt:commons-httpclIEnt:$commonshttpClIEntVersion" compile "org.codehaus.jackson:jackson-mapper-asl:$jacksonMapperVersion" compile "com.Googlecode.androIDannotations:androIDannotations:$androIDAnnotationsversion" compile group: 'com.Googlecode.androIDannotations',name: 'androIDannotations',version: '2.1',classifIEr: 'API' runtime files('lib/server-standalone.jar')}sourceSets { main { java { srcDir 'src' } }}clean { delete 'gen'}IDea { module { downloadJavadoc = true } project { javaVersion = 'AndroID 2.2 Platform' }}androIDProcessResources.dependsOn(clean)eclipse.dependsOn(cleanEclipse)IDea.dependsOn(cleanIDea)defaultTasks 'assemble'解决方法 作为第一个指针,我无法看到托管androIDannotations lib的maven存储库的声明.
你应该添加http://repository.excilys.com/content/repositories/releases作为maven回购:
...repositorIEs { mavenCentral() mavenRepo urls: 'http://maven.springframework.org/snapshot' mavenRepo urls: 'http://maven.springframework.org/milestone' mavenRepo urls: 'http://repository.excilys.com/content/repositorIEs/releases'}...
问候
总结以上是内存溢出为你收集整理的将AndroidAnnotations Maven设置调整为Gradle全部内容,希望文章能够帮你解决将AndroidAnnotations Maven设置调整为Gradle所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)