我一直在尝试构建聚合mysql项目。 以下是输入时终端中显示的错误: 'mvn install'在aggregate-mysql目录下。
Failed to execute goal on project aggregate-mysql: Could not resolve dependencies for
project org.opendatakit:aggregate-mysql:war:1.0: The following artifacts could not be
resolved: org.opendatakit:aggregate-src:jar:latest, org.opendatakit:odk-mysql-it-
settings:jar:latest, com.google.gdata:gdata-client-1.0:jar:1.47.1,
com.google.gdata:gdata-client-meta-1.0:jar:1.47.1, com.google.gdata:gdata-core-
1.0:jar:1.47.1, com.google.gdata:gdata-docs-3.0:jar:1.47.1, com.google.gdata:gdata-
docs-meta-3.0:jar:1.47.1, com.google.gdata:gdata-maps-2.0:jar:1.47.1,
google.gdata:gdata-maps-meta-2.0:jar:1.47.1, com.google.gdata:gdata-media-
1.0:jar:1.47.1, com.google.gdata:gdata-spreadsheet-3.0:jar:1.47.1,
com.google.gdata:gdata-spreadsheet-meta-3.0:jar:1.47.1, com.googlecode.gwt-google-
maps-v3:gwt-google-maps-v3:jar:snapshot, com.google.gwt.google-apis:gwt-
visualization:jar:1.1.1, org.javarosa:javarosa-libraries:jar:latest,
org.opendatakit:odk-httpclient-gae:jar:1.1, org.opendatakit:odk-tomcatutil:jar:1.0,
org.openid4java:openid4java-nodeps:jar:0.9.6.662.odk-SNAPSHOT,
org.springframework.security:spring-security-config:jar:3.1.3.odk-SNAPSHOT,
org.springframework.security:spring-security-core:jar:3.1.3.odk-SNAPSHOT,
org.springframework.security:spring-security-crypto:jar:3.1.3.odk-SNAPSHOT,
org.springframework.security:spring-security-openid:jar:3.1.3.odk-SNAPSHOT,
org.springframework.security:spring-security-web:jar:3.1.3.odk-SNAPSHOT: Failure to
find org.opendatakit:aggregate-src:jar:latest in http://repo1.maven.org/maven2 was
cached in the local repository, resolution will not be reattempted until the update
interval of central has elapsed or updates are forced
我已经按照位于/Users/subashbasnet/opendatakit.aggregate/和readme.txt的configure.txt中提到的所有过程进行了操作。 /Users/subashbasnet/opendatakit.aggregate/src/main/libs/readme.txt。 我还启用了所有相关的文件夹读/写。但错误仍然存在。
答案 0 :(得分:1)
gdata库需要在本地安装到Maven中(maven mandubian存储库只能达到1.41.5)。
解压缩并在java / lib目录中执行:
mvn install:install-file -Dfile=gdata-core-1.0.jar -DgroupId=com.google.gdata -DartifactId=gdata-core-1.0 -Dversion=1.47.1 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile=gdata-client-1.0.jar -DgroupId=com.google.gdata -DartifactId=gdata-client-1.0 -Dversion=1.47.1 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile=gdata-client-meta-1.0.jar -DgroupId=com.google.gdata -DartifactId=gdata-client-meta-1.0 -Dversion=1.47.1 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile=gdata-docs-3.0.jar -DgroupId=com.google.gdata -DartifactId=gdata-docs-3.0 -Dversion=1.47.1 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile=gdata-docs-meta-3.0.jar -DgroupId=com.google.gdata -DartifactId=gdata-docs-meta-3.0 -Dversion=1.47.1 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile=gdata-maps-2.0.jar -DgroupId=com.google.gdata -DartifactId=gdata-maps-2.0 -Dversion=1.47.1 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile=gdata-maps-meta-2.0.jar -DgroupId=com.google.gdata -DartifactId=gdata-maps-meta-2.0 -Dversion=1.47.1 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile=gdata-media-1.0.jar -DgroupId=com.google.gdata -DartifactId=gdata-media-1.0 -Dversion=1.47.1 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile=gdata-spreadsheet-3.0.jar -DgroupId=com.google.gdata -DartifactId=gdata-spreadsheet-3.0 -Dversion=1.47.1 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile=gdata-spreadsheet-meta-3.0.jar -DgroupId=com.google.gdata -DartifactId=gdata-spreadsheet-meta-3.0 -Dversion=1.47.1 -Dpackaging=jar -DgeneratePom=true