求解 啊 java maven项目

问题描述

求解 啊 java maven项目

[INFO] Scanning for projects...
[INFO] Downloading: http://localhost/nexus-2.7.0-06/content/groups/public/org/codehaus/mojo/tomcat-maven-plugin/1.1/tomcat-maven-plugin-1.1.pom
[WARNING] Failed to retrieve plugin descriptor for org.codehaus.mojo:tomcat-maven-plugin:1.1: Plugin org.codehaus.mojo:tomcat-maven-plugin:1.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:tomcat-maven-plugin:jar:1.1
[INFO] Downloading: http://localhost/nexus-2.7.0-06/content/groups/public/org/apache/maven/plugins/maven-release-plugin/2.3.2/maven-release-plugin-2.3.2.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-release-plugin:2.3.2: Plugin org.apache.maven.plugins:maven-release-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-release-plugin:jar:2.3.2
[INFO] Downloading: http://localhost/nexus-2.7.0-06/content/groups/public/org/codehaus/mojo/maven-metadata.xml
[INFO] Downloading: http://localhost/nexus-2.7.0-06/content/groups/public/org/apache/maven/plugins/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to nexus (http://localhost/nexus-2.7.0-06/content/groups/public/): Connection to http://localhost refused
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to nexus (http://localhost/nexus-2.7.0-06/content/groups/public/): Connection to http://localhost refused
[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from http://localhost/nexus-2.7.0-06/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to nexus (http://localhost/nexus-2.7.0-06/content/groups/public/): Connection to http://localhost refused
[WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from http://localhost/nexus-2.7.0-06/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced. Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to nexus (http://localhost/nexus-2.7.0-06/content/groups/public/): Connection to http://localhost refused
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.590s
[INFO] Finished at: Wed Jul 29 22:26:26 CST 2015
[INFO] Final Memory: 9M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'tomcat' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (E:apache-maven-3.1.1
epository), nexus (http://localhost/nexus-2.7.0-06/content/groups/public/)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException

解决方案

把这个加到pom.xml中去

apache.snapshots
Apache Snapshots
http://repository.apache.org/content/groups/snapshots-group/

false

true

解决方案二:

apache.snapshots
Apache Snapshots
http://repository.apache.org/content/groups/snapshots-group/

false

true


解决方案三:

 <pluginRepositories>
    <pluginRepository>
        <id>apache.snapshots</id>
        <name>Apache Snapshots</name>
        <url>http://repository.apache.org/content/groups/snapshots-group/</url>
        <releases>
            <enabled>false</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </pluginRepository>
</pluginRepositories>

解决方案四:

maven管理java项目

时间: 2024-10-21 18:16:30

求解 啊 java maven项目的相关文章

Linux Shell脚本之远程自动化部署java maven项目

原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 .作者信息和本声明.否则将追究法律责任.http://dgd2010.blog.51cto.com/1539422/1771555 脚本功能: 检查运行环境(包括运行权限.网络.DNS解析等),自动从git上获取java maven项目工程源码,在机器A上build,build完成后,备份机器B上原有的配置文件(如果存在),将Class.Lib文件和备份的配置文件等上传到机器B,重新启动机器B上的服务以便变更生效. 脚本特点: 1.

java-Java maven项目部署在服务器打印报表出错

问题描述 Java maven项目部署在服务器打印报表出错 Java maven项目在本地调试打印的报表有数据,但是部署到服务器上可以打印,但是显示为0B 解决方案 检查一下数据库链接,本地测试连的数据库,服务器上是否可以连接上

eclipse上搭建maven多模块Java Web项目

1.模块化需求及项目模块说明 手头上有个已上线的系统,但因老板的特殊要求,系统需要不断的修改.还有就是公司市场部不定期地在举行一些微信活动,每一个活动都是周期性的,活动完了这个功能就要在系统中移除. 系统中就有三种模块:已经在系统中正常运行不需要再变更的模块.经常性变更的模块.用完就要移除的活动模块. 所以,我们需要把项目分成了下面几个模块. 简单说明一下: timetable-common是常用工具包存放的模块. wechat-api是微信接口模块,此模块用到了timetable-common

pom xml-创建maven项目时pom.xml时出现如下错误 求解

问题描述 创建maven项目时pom.xml时出现如下错误 求解

maven管理的java web项目怎么用cxf把接口暴露出来

问题描述 maven管理的java web项目怎么用cxf把接口暴露出来 我有一个完整的java Web 项目,可以运行成功,但是现在有需要把其中的接口暴露出来,这就有问题了,我加了@webservice,但是当我在applicationContext.xml 中配置时,例如我添加这样的代码: 还有就是我添加:http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd后再写jaxws:endpoint/jaxws:end

eclipse创建Maven项目,无法添加src/main/java source folder 问题

    创建了一个Maven项目,在添加source folder时,提示"The folder is already a source folder. "即你要添加的源码文件夹已经是一个源码文件夹,它已经存在,无法添加.            解决办法:   项目上鼠标右键build path -->Configure Build path --> source ,选择 src/main/Java.src/test/java, remove掉,最后重新new source

Intellij IDEA采用Maven+Spring MVC+Hibernate的架构搭建一个java web项目

原文:Java web 项目搭建 Java web 项目搭建 简介 在上一节java web环境搭建中,我们配置了开发java web项目最基本的环境,现在我们将采用Spring MVC+Spring+Hibernate的架构搭建一个java web项目 Spring MVC+Spring+Hibernate结构介绍如下: Spring MVCSpring MVC的职责是作为web层框架,实现了我们常见的MVC模式 SpringSpring 作为服务层,利用自身特性IOC.AOP,提供数据从DA

用IntelliJ IDEA开发的maven项目(java)如何迁移至eclipse?

问题描述 用IntelliJ IDEA开发的maven项目(java)如何迁移至eclipse? 如题,用IntelliJ IDEA开发的maven项目如何迁移至eclipse? 解决方案 你把你的src目录全部考出来 然后执行 mvn eclipse:eclipse 命令 解决方案二: http://my.oschina.net/u/557580/blog/127276 解决方案三: 找到idea工作空间相应工程的目录 直接用myecilpse导入maven项目即可 不过myeclipse对m

使用IntelliJ IDEA 14和Maven创建java web项目

原文:使用IntelliJ IDEA 14和Maven创建java web项目 http://mark.leanote.com/post/%E4%BD%BF%E7%94%A8IntelliJ-IDEA-14%E5%92%8CMaven%E5%88%9B%E5%BB%BAjava-web%E9%A1%B9%E7%9B%AE 安装Maven 下载安装 去maven官网下载最新版. 解压到安装目录. 配置 右键桌面的计算机图标,属性–>高级系统设置–>环境变量,添加M2_HOME的环境变量,然后将该