创建module时基于自建的脚手架报错

来源:4-2 创建流程引擎配置-config_samples

慕沐3161652

2018-06-17

按照4.3节, 建立activiti-archetype-unittest2并依照视频做了各项更改   mvn clean install成功, 本地maven仓库也有

但是在创建module时基于activiti-archetype-unittest2创建config时报错: 

错误如下

"C:\Program Files\Java\jdk1.8.0_101\bin\java.exe" -Dmaven.multiModuleProjectDirectory=C:\Users\Administrator\AppData\Local\Temp\archetype2182tmp -Dmaven.home=C:\maven\apache-maven-3.3.9 -Dclassworlds.conf=C:\maven\apache-maven-3.3.9\bin\m2.conf -Dfile.encoding=UTF-8 -classpath C:\maven\apache-maven-3.3.9\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2018.1.2 -s C:\maven\apache-maven-3.3.9\conf\settings_aliyun.xml -Dmaven.repo.local=C:\maven\maven_repository -DinteractiveMode=false -DgroupId=com.thank.activiti -DartifactId=config -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.activiti -DarchetypeArtifactId=activiti-archetype-unittest2 -DarchetypeVersion=6.0.0 org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate

[INFO] Scanning for projects...

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building Maven Stub Project (No POM) 1

[INFO] ------------------------------------------------------------------------

[INFO] 

[INFO] >>> maven-archetype-plugin:3.0.1:generate (default-cli) > generate-sources @ standalone-pom >>>

[INFO] 

[INFO] <<< maven-archetype-plugin:3.0.1:generate (default-cli) < generate-sources @ standalone-pom <<<

[INFO] 

[INFO] --- maven-archetype-plugin:3.0.1:generate (default-cli) @ standalone-pom ---

[INFO] Generating project in Batch mode

[WARNING] Archetype not found in any catalog. Falling back to central repository.

[WARNING] Add a repsoitory with id 'archetype' in your settings.xml if archetype's repository is elsewhere.

Downloading: http://maven.aliyun.com/nexus/content/groups/public/org/activiti/archetypes/6.0.0/archetypes-6.0.0.pom

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 7.922 s

[INFO] Finished at: 2018-06-17T23:39:55+08:00

[INFO] Final Memory: 11M/107M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.activiti:activiti-archetype-unittest2:6.0.0) -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[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 read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

[ERROR] Maven execution terminated abnormally (exit code 1)


写回答

1回答

Jimmy

2018-06-18

在 activiti-archetype-unittest2 目录的父目录执行一次 mvn install试一下
0
3
树下听雨1215
回复
慕沐3161652
父目录是archetypes吧,为什么我的就不行。出现的问题和你一样
2019-01-15
共3条回复

Activiti6.0工作流引擎深度解析 从容应对复杂业务变化

系统讲解工作流引擎 全方位提升技术能力 从容应对复杂业务变化

1031 学习 · 339 问题

查看课程