Maven: 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated
1
2
3
4
5
|
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.3:create (default-cli) on project standalone-pom: Unable to parse configuration of mojo org.apache.
maven.plugins:maven-archetype-plugin:2.3:create for parameter #: Abstract class or interface 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated -> [He lp 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. |
在stackoverflow找到解決方式如下
1
|
mvn archetype:generate -DgroupId=storm.blueprints -DartifactId=stormDemo -DinteractiveMode=false -DarchetypeCatalog=internal
|
修改start命令為generate
參考網址為http://stackoverflow.com/questions/29147329/unable-to-create-a-new-maven-hello-world-project
原因分析:create is deprecated in maven 3.0.5 and beyond,在maven3.0.5以上版本捨棄了create,今後使用generate生成專案
CMD建立工程的時候還卡在Generating project in Interactive mode不動了 或者 Generating project in Batch mode
解決方法是加個引數 -DarchetypeCatalog=internal 讓它不要從遠端伺服器上取catalog
出現要輸入選擇項 一路回車就好了。
相關文章
- Android: The following classes could not be instantiated: 解決方法Android
- 解決Maven外掛無法下載Cannot resolve plugin org.apache.maven.plugins:maven-clean-plugin:2.5MavenPluginApache
- IDEA Cannot access alimaven (http://maven.aliyun.com/nexus/content/groups/public/)IdeaMavenHTTP
- ] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin Cannot instantiate object of typeAIGoMyBatisMavenPluginObject
- IDEA在執行maven打war的時候報錯:Cannot access defaults field of PropertiesIdeaMaven
- 【Maven】Maven概述Maven
- ERROR: Cannot uninstall ‘PyYAML‘. It is a distutils installed project and thus we cannot accuratelyErrorYAMLProject
- 解決cannot find module providing package或cannot find main modulePackageAI
- cannot instantiate QtProjectEngine objectQTProjectObject
- diskgroup "DATADG" cannot be mounted
- xxx cannot be resolved to a type
- MavenMaven
- fork failed - Cannot allocate memoryAI
- ‘error: ‘‘this‘‘ cannot be implicitly captured in this context‘ErrorAPTContext
- Cannot read property ‘aDataSort‘ of undefinedUndefined
- Uncaught Error: Cannot instantiate interfaceError
- Cannot set property 'innerHTML' of nullHTMLNull
- ImportError: cannot import name parseImportError
- 不學Maven會死?Maven真香!Maven
- 使用Maven打包你的應用——maven-jar-plugin & maven-assembly-plugin & maven-shade-pluginMavenJARPlugin
- 【maven】Maven報錯 zip END header not foundMavenHeader
- Maven教程(Eclipse配置及maven專案)MavenEclipse
- Maven-修改maven本地倉庫地址Maven
- /usr/bin/ld: cannot find -lopenblas
- Warning: Cannot redeclare function_name()Function
- cannot import name '_psutil_linux'ImportLinux
- Cannot set property ‘type‘ of null(vue)NullVue
- Cannot access androidx.lifecycle.HasDefaultViewModelProviderFactoryAndroidViewIDE
- allowedOrigins cannot contain the gateway 報錯AIGateway
- Cannot dlopen some GPU libraries.GPU
- Maven 整理Maven
- Maven ArchetypeMaven
- maven私服Maven
- Maven 使用Maven
- Maven EclipseMavenEclipse
- Maven NetBeansMavenBean
- Maven POMMaven
- What is maven?Maven
- Maven 命令Maven