0

mvn archetype:generate を使用して maven を使用してプロジェクト構造を生成しました。プロジェクト構造は次のとおりです。 webapps -src -main -java -com -web -App.java -test

リンク作成Webアプリのチュートリアルに従ってみました

mvn dependency:analyze-dep-mgt の実行

それでもプロジェクト構造は異なります。

これを使用している間 mvn archetype:generate -DgroupId={project-packaging} -DartifactId={project-name} -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false,、Pomファイルが見つかりません

構造が異なり、web.xml が生成されないように、どこが間違っているのでしょうか?

C:\Users\user\workspace\webappspringapp\webapp>mvn dependency:analyze-dep-mgt
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.webapp:webapp:1.0-SNAPSHOT (C:\Users\user\workspace\we
bappspringapp\webapp\pom.xml) has 3 errors
[ERROR]     'dependencies.dependency.version' for org.springframework:spring-cor
e:jar must be a valid version but is '${spring.version}'. @ line 14, column 13
[ERROR]     'dependencies.dependency.version' for org.springframework:spring-web
:jar must be a valid version but is '${spring.version}'. @ line 20, column 13
[ERROR]     'dependencies.dependency.version' for org.springframework:spring-web
mvc:jar must be a valid version but is '${spring.version}'. @ line 26, column 13

[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException

Pom.xml 部分

<dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <version>${spring.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
            <version>${spring.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
            <version>${spring.version}</version>
        </dependency>
    <dependency>
4

1 に答える 1