[ERROR] Failed to execute goal on project system_datacenter: Could not resolve dependencies for project com.harmony.civilaffairs:system_datacenter:war:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.harmony.hap:hap-mybatis:jar:1.0, com.harmony.hap:attachment-mybatis:jar:1.0, com.harmony.apportal:harmony-common:jar:2.3, com.harmony.apportal:harmony-client:jar:2.3: Failure to find com.harmony.hap:hap-mybatis:jar:1.0 in http://repo.maven.apache.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 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project system_datacenter: Could not resolve dependencies for project com.harmony.civilaffairs:system_datacenter:war:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.harmony.hap:hap-mybatis:jar:1.0, com.harmony.hap:attachment-mybatis:jar:1.0, com.harmony.apportal:harmony-common:jar:2.3, com.harmony.apportal:harmony-client:jar:2.3: Failure to find com.harmony.hap:hap-mybatis:jar:1.0 in http://repo.maven.apache.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 at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) myeclipse8.6 maven 3.0.4 1 找到缺少的包 2 去找相关的人 3 deploy 到maven 私服上 4 package 最简单的方法就是你在你的 maven本地仓库中 新建一个文件夹 将你自定义的包放到里面 就可以在配置文件中引用了 也可以直接指定到你自己的那个包地址上
<dependency> <groupId></groupId> <artifactId></artifactId> <version></version> <scope>system</scope> <systemPath></systemPath> </dependency> 我的解决方案是在Prefernces-->Maven-->user Settings 里面点击Update settings 然后就好了。因为默认你配置settings.xml指向你的类库的时候,可能是没有加载进来吧,所以需要update一下。 你可以试试看这种方法行不行。 如果不行那可能就是jar包不全了
|