新建模块后再次启动报错!!!!
新建一个模块项目
1、举例创建 jeesite-module-test 模块功能,拷贝模块目录下的 /modules/template 模板项目文件夹
2、然后在相同文件夹 /modules/ 下粘贴,并重命名为你的模块名,如:/modules/test
3、打开 /modules/test/pom.xml 文件,找到 jeesite-module-template 的 artifactId 元素,修改为你的模块名,如:jeesite-module-test
4、打开 /root/pom.xml 文件,拷贝 ../modules/core 到新一行,修改为你的模块名,如:../modules/test
5、在你需要用到的项目引入你的新模块,如,在 web 项目下用,则打开 /web/pom.xml 文件,加入:
<dependency>
<groupId>com.jeesite</groupId>
<artifactId>jeesite-module-test</artifactId>
<version>${project.parent.version}</version>
</dependency>
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.582 s
[INFO] Finished at: 2020-12-30T15:53:14+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project jeesite-web: Could not resolve depende
ncies for project com.jeesite:jeesite-web:war:4.2.2-SNAPSHOT: Failed to collect
dependencies at com.jeesite:jeesite-module-test:jar:4.2.2-SNAPSHOT: Failed to re
ad artifact descriptor for com.jeesite:jeesite-module-test:jar:4.2.2-SNAPSHOT: C
ould not transfer artifact com.jeesite:jeesite-module-test:pom:4.2.2-SNAPSHOT fr
om/to jeesite-repos (http://maven.jeesite.net/repository/maven-public): Authenti
cation failed for http://maven.jeesite.net/repository/maven-public/com/jeesite/j
eesite-module-test/4.2.2-SNAPSHOT/jeesite-module-test-4.2.2-SNAPSHOT.pom 401 Una
uthorized -> [Help 1]
[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/DependencyReso
lutionException
请按任意键继续. . .
Sign in to comment