You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Maven创建项目遇报错,求助查找pom.xml文件位置

Maven Archetype Generate Failure & Locating pom.xml for Java Version Setup

Hi everyone,

I've successfully installed Maven on my system—running mvn --version returns the correct version details with no issues. However, when I try to create a quickstart project using this command:

mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false

I run into an error, and I've included a screenshot of the error for reference.

The main issue I'm stuck on right now is that I can't find the pom.xml file where I can specify the Java version. Could someone tell me where this file is located after installing Maven? I'm using the latest version of Maven, and I followed the steps in the official Maven five-minute guide, but I still haven't been able to resolve this problem.

Thanks in advance for any help!

内容的提问来源于stack exchange,提问作者Aleks Uher

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.04 09:55:15