Mavenプロジェクトのビルドエラー:
1。
[ERROR] Failed to execute goal on project ilcbs_server_dao:
Could not resolve dependencies for project com.syy:ilcbs_server_dao:pom:1.0-SNAPSHOT:
The following artifacts could not be resolved:
com.syy:ilcbs_server_domain:jar:1.0-SNAPSHOT, com.syy:ilcbs_utils:jar:1.0-SNAPSHOT,
com.syy:ilcbs_exception:jar:1.0-SNAPSHOT, com.syy:ilcbs_cache:jar:1.0-SNAPSHOT:
Could not find artifact com.syy:ilcbs_server_domain:jar:1.0-SNAPSHOT -> [Help 1]
原因:
1.親モジュールではなく、プロジェクトのサブモジュールパッケージを実行します。
パッケージング誤差の2 POM構成:親モジュールは、典型的には、POMのPOM、ジャーまたは戦争のサブモジュールをパッケージ化されています。
解決策:親プロジェクトとすべてのサブプロジェクトをパッケージ化します
2。
Failed to execute goal org.apache.maven.plugins:
maven-war-plugin:2.2:war (default-war) on project *****:
Error assembling WAR: webxml attribute is required
(or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
エラー理由:web.xmlファイルを欠落している戦争にパッケージアイテム。