http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException

ling8280 2010-07-31 10:45:19
在命令窗口输入 mvn tomcat:run
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'tomcat'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [tomcat:run]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing tomcat:run
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Sat Jul 31 22:43:52 CST 2010
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
...全文
1276 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhang_dianliang 2011-08-14
  • 打赏
  • 举报
回复
setting.xml里配的是maven私服的路径,就是maven要下载jar包的路径
ling8280 2010-08-07
  • 打赏
  • 举报
回复
我的插件应该是配好的啊!setting.xml里面不是就配tomcat的路劲吗?pom.xml不知道怎么配
howsun_zh 2010-08-02
  • 打赏
  • 举报
回复
pom.xml和setting.xml中有没有配置tomcat插件?
ling8280 2010-08-02
  • 打赏
  • 举报
回复
没有人知道怎么解决吗?
Jlins 2010-08-01
  • 打赏
  • 举报
回复
[INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.
Apache Maven What is it? ----------- Maven is a software project management and comprehension tool. Based on the concept of a Project Object Model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information. Documentation ------------- The most up-to-date documentation can be found at https://maven.apache.org/. Release Notes ------------- The full list of changes can be found at https://maven.apache.org/docs/history.html. System Requirements ------------------- JDK: 1.7 or above (this is to execute Maven - it still allows you to build against 1.3 and prior JDK's). Memory: No minimum requirement. Disk: Approximately 10MB is required for the Maven installation itself. In addition to that, additional disk space will be used for your local Maven repository. The size of your local repository will vary depending on usage but expect at least 500MB. Operating System: Windows: Windows 2000 or above. Unix based systems (Linux, Solaris and Mac OS X) and others: No minimum requirement. Installing Maven ---------------- 1) Unpack the archive where you would like to store the binaries, e.g.: Unix-based operating systems (Linux, Solaris and Mac OS X) tar zxvf apache-maven-3.x.y.tar.gz Windows unzip apache-maven-3.x.y.zip 2) A directory called "apache-maven-3.x.y" will be created. 3) Add the bin directory to your PATH, e.g.: Unix-based operating systems (Linux, Solaris and Mac OS X) export PATH=/usr/local/apache-maven-3.x.y/bin:$PATH Windows set PATH="c:\\program files\\apache-maven-3.x.y\\bin";%PATH% 4) Make sure JAVA_HOME is set to the location of your JDK 5) Run "mvn --version" to verify that it is correctly installed. For complete documentation, see https://maven.apache.org/download.html#Installation Licensing --------- Please see the file called LICENSE. Maven URLS ---------- Home Page: https://maven.apache.org/ Downloads: https://maven.apache.org/download.html Release Notes: https://maven.apache.org/docs/history.html Mailing Lists: https://maven.apache.org/mail-lists.html Source Code: https://git-wip-us.apache.org/repos/asf/maven.git Issue Tracking: https://issues.apache.org/jira/browse/MNG Wiki: https://cwiki.apache.org/confluence/display/MAVEN/ Available Plugins: https://maven.apache.org/plugins/index.html

67,549

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧