我在做“mvn package”后出现此错误,我正在研究CAS和Acitve目录
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project cas-server-webapp: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war failed: Plugin org.apache.maven.plugins:maven-war-plugin:2.1.1 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-war-plugin:jar:2.1.1 (): Failed to read artifact descriptor for org.apache.maven:maven-archiver:jar:2.4.1: Could not transfer artifact org.apache.maven:maven-archiver:pom:2.4.1 from/to mojo-snapshot (https://nexus.codehaus.org/content/repositories/codehaus-snapshots/): nexus.codehaus.org: Nom ou service inconnu: Unknown host nexus.codehaus.org: Nom ou service inconnu -> [Help 1]
答案 0 :(得分:0)
您可以确认methom包裹是否为“战争” 您可以在pom.xml
中添加此代码view.layoutIfNeeded()
UIView.animate(withDuration: 0.2) {
self.scroll.setContentOffset(.zero, animated: false)
}
webXml和warSourceDirectory用户自己的路线