3.6K Star 10.4K Fork 4.3K

卓源软件 / JeeSite 4.2

新建模块报错

Backlog
wyx_wyx03  Opened this issue

该问题是怎么引起的?=====================================================================

新建模块后再次启动报错!!!!

重现步骤=====================================================================

新建一个模块项目

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
请按任意键继续. . .

6732 thinkgem 1578914432 total 2 participants

Comments (1)

6732 thinkgem 1578914432
卓源软件 2021-01-01 10:14 owner

提示依赖下载不到,打包模块时,你应该先打包你的 jeesite-module-test 依赖模块,然后再去打包 web

建议:将 jeesite-module-test 依赖模块加入到 root/pom.xml 然后,执行 root/bin/package.bat 统一打包脚本

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
Java
1
https://gitee.com/thinkgem/jeesite4.git
git@gitee.com:thinkgem/jeesite4.git
thinkgem
jeesite4
JeeSite 4.2

Search