maven project error: Could not find artifact com.syy: ****: jar: 1.0-SNAPSHOT

maven project build error:

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]

wrong reason:

1. Run the parent module, not the project sub-module package.

2. pom configuration of a packaging error: parent modules typically are packaged pom pom, jar or sub-module of war.

 

Solution: The parent project and all the subprojects to be packaged

 

 

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]

Error reason: war-packaged items missing web.xml file.

Guess you like

Origin blog.csdn.net/J1014329058/article/details/85038490