mvn archetype:create 命令报错

super-wen 发布于 2015/12/14 20:35
阅读 3K+
收藏 0

把错误全贴出来了,没看懂啥意思。

jdk版本1.7.0_75

ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli) on project standalone-pom: Unable to parse configuration of mojo org.apache.maven.plugins:maven-archetype-plugin:2.4:create for parameter #: Cannot create instance of interface org.apache.maven.artifact.repository.ArtifactRepository -> [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/PluginConfigurationException
d:\data\testproject>mvn archetype:create -DgroupId=easitech.test -DartifactId=test-all -DarchetypeArtifactId=maven-archetype-webapp -X
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-15T01:29:23+08:00)
Maven home: D:\softwaredevelop\apache-maven-3.2.5\bin\..
Java version: 1.7.0_75, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_75\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from D:\softwaredevelop\apache-maven-3.2.5\bin\..\conf\settings.xml
[DEBUG] Reading user settings from C:\Users\Administrator\.m2\settings.xml
[DEBUG] Using local repository at D:\softwaredevelop\mvnrepository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for D:\softwaredevelop\mvnrepository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project org.apache.maven:standalone-pom:pom:1: (none)
[DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null]
[DEBUG] Resolving plugin prefix archetype from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Could not find metadata org.apache.maven.plugins/maven-metadata.xml in local (D:\softwaredevelop\mvnrepository)
[DEBUG] Skipped remote request for org.apache.maven.plugins/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata org.codehaus.mojo/maven-metadata.xml in local (D:\softwaredevelop\mvnrepository)
[DEBUG] Skipped remote request for org.codehaus.mojo/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin prefix archetype to org.apache.maven.plugins:maven-archetype-plugin from repository central
[DEBUG] Resolving plugin version for org.apache.maven.plugins:maven-archetype-plugin
[DEBUG] Could not find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml in local (D:\softwaredevelop\mvnrepository)
[DEBUG] Skipped remote request for org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin version for org.apache.maven.plugins:maven-archetype-plugin to 2.4 from repository central (https://repo.maven.apache.org/maven2, default, releases)
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: org.apache.maven:standalone-pom:pom:1
[DEBUG] Tasks:   [archetype:create]
[DEBUG] Style:   Aggregating
[DEBUG] =======================================================================
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[DEBUG] Resolving plugin prefix archetype from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Could not find metadata org.apache.maven.plugins/maven-metadata.xml in local (D:\softwaredevelop\mvnrepository)
[DEBUG] Skipped remote request for org.apache.maven.plugins/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata org.codehaus.mojo/maven-metadata.xml in local (D:\softwaredevelop\mvnrepository)
[DEBUG] Skipped remote request for org.codehaus.mojo/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin prefix archetype to org.apache.maven.plugins:maven-archetype-plugin from repository central
[DEBUG] Resolving plugin version for org.apache.maven.plugins:maven-archetype-plugin
[DEBUG] Could not find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml in local (D:\softwaredevelop\mvnrepository)
[DEBUG] Skipped remote request for org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin version for org.apache.maven.plugins:maven-archetype-plugin to 2.4 from repository central (https://repo.maven.apache.org/maven2, default, releases)
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project:       org.apache.maven:standalone-pom:1
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): []
[DEBUG] Repositories (dependencies): [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Repositories (plugins)     : [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <archetypeArtifactId default-value="maven-archetype-quickstart">${archetypeArtifactId}</archetypeArtifactId>
  <archetypeGroupId default-value="org.apache.maven.archetypes">${archetypeGroupId}</archetypeGroupId>
  <archetypeVersion default-value="RELEASE">${archetypeVersion}</archetypeVersion>
  <artifactId>${artifactId}</artifactId>
  <basedir default-value="${user.dir}">${basedir}</basedir>
  <groupId>${groupId}</groupId>
  <localRepository>${localRepository}</localRepository>
  <packageName>${packageName}</packageName>
  <pomRemoteRepositories default-value="project.remoteArtifactRepositories"/>
  <project default-value="project"/>
  <remoteRepositories>${remoteRepositories}</remoteRepositories>
  <version default-value="1.0-SNAPSHOT">${version}</version>
</configuration>
[DEBUG] =======================================================================
[INFO] 
[INFO] --- maven-archetype-plugin:2.4:create (default-cli) @ standalone-pom ---
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG]   Imported: org.apache.maven.wagon.events < plexus.core
[DEBUG]   Imported: org.eclipse.aether.impl < plexus.core
[DEBUG]   Imported: org.apache.maven.exception < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
[DEBUG]   Imported: org.eclipse.aether.version < plexus.core
[DEBUG]   Imported: org.eclipse.aether.metadata < plexus.core
[DEBUG]   Imported: javax.enterprise.util.* < plexus.core
[DEBUG]   Imported: org.eclipse.aether.collection < plexus.core
[DEBUG]   Imported: org.apache.maven.monitor < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.resource < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.logging < plexus.core
[DEBUG]   Imported: org.apache.maven.profiles < plexus.core
[DEBUG]   Imported: org.apache.maven.classrealm < plexus.core
[DEBUG]   Imported: org.apache.maven.execution.scope < plexus.core
[DEBUG]   Imported: org.eclipse.aether.artifact < plexus.core
[DEBUG]   Imported: org.apache.maven.execution < plexus.core
[DEBUG]   Imported: org.apache.maven.reporting < plexus.core
[DEBUG]   Imported: org.apache.maven.usability < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.container < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.component < plexus.core
[DEBUG]   Imported: org.eclipse.aether.transfer < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authentication < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core
[DEBUG]   Imported: org.apache.maven.lifecycle < plexus.core
[DEBUG]   Imported: org.eclipse.aether.* < plexus.core
[DEBUG]   Imported: org.eclipse.aether.graph < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.classworlds < plexus.core
[DEBUG]   Imported: org.eclipse.aether.internal.impl < plexus.core
[DEBUG]   Imported: org.eclipse.aether.repository < plexus.core
[DEBUG]   Imported: org.eclipse.aether.resolution < plexus.core
[DEBUG]   Imported: javax.inject.* < plexus.core
[DEBUG]   Imported: org.apache.maven.settings < plexus.core
[DEBUG]   Imported: org.codehaus.classworlds < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.* < plexus.core
[DEBUG]   Imported: org.apache.maven.toolchain < plexus.core
[DEBUG]   Imported: org.eclipse.aether.spi < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.observers < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core
[DEBUG]   Imported: org.apache.maven.configuration < plexus.core
[DEBUG]   Imported: org.apache.maven.cli < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.context < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authorization < plexus.core
[DEBUG]   Imported: org.apache.maven.project < plexus.core
[DEBUG]   Imported: org.eclipse.aether.installation < plexus.core
[DEBUG]   Imported: org.eclipse.aether.deployment < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.lifecycle < plexus.core
[DEBUG]   Imported: org.apache.maven.rtinfo < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.configuration < plexus.core
[DEBUG]   Imported: org.apache.maven.artifact < plexus.core
[DEBUG]   Imported: org.apache.maven.model < plexus.core
[DEBUG]   Imported: org.slf4j.* < plexus.core
[DEBUG]   Imported: javax.enterprise.inject.* < plexus.core
[DEBUG]   Imported: org.apache.maven.* < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.proxy < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.* < plexus.core
[DEBUG]   Imported: org.apache.maven.plugin < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.personality < plexus.core
[DEBUG] Populating class realm maven.api
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1, ConflictMarker.markTime=1, ConflictMarker.nodeCount=134, ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=1, ConflictIdSorter.conflictIdCount=60, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=14, ConflictResolver.conflictItemCount=125, DefaultDependencyCollector.collectTime=292, DefaultDependencyCollector.transformTime=19}
[DEBUG] org.apache.maven.plugins:maven-archetype-plugin🏺2.4:
[DEBUG]    org.apache.maven.archetype:archetype-catalog🏺2.4:compile
[DEBUG]    org.apache.maven.archetype:archetype-descriptor🏺2.4:compile
[DEBUG]    org.apache.maven.archetype:archetype-registry🏺2.4:compile
[DEBUG]    org.apache.maven.archetype:archetype-common🏺2.4:compile
[DEBUG]       net.sourceforge.jchardet:jchardet🏺1.0:compile
[DEBUG]       org.codehaus.plexus:plexus-component-annotations🏺1.5.5:compile
[DEBUG]       dom4j:dom4j🏺1.6.1:compile
[DEBUG]          xml-apis:xml-apis🏺1.0.b2:compile
[DEBUG]       jdom:jdom🏺1.0:compile
[DEBUG]       org.apache.maven:maven-model🏺2.2.1:compile
[DEBUG]       org.apache.maven:maven-project🏺2.2.1:compile
[DEBUG]          org.apache.maven:maven-plugin-registry🏺2.2.1:compile
[DEBUG]          org.codehaus.plexus:plexus-interpolation🏺1.11:compile
[DEBUG]       org.codehaus.plexus:plexus-container-default🏺1.0-alpha-9-stable-1:compile
[DEBUG]          junit:junit🏺4.11:test
[DEBUG]             org.hamcrest:hamcrest-core🏺1.3:test
[DEBUG]       org.codehaus.plexus:plexus-velocity🏺1.1.8:compile
[DEBUG]       org.apache.velocity:velocity🏺1.5:compile
[DEBUG]          commons-lang:commons-lang🏺2.1:compile
[DEBUG]          oro:oro🏺2.0.8:compile
[DEBUG]    org.codehaus.plexus:plexus-utils🏺3.0.21:compile
[DEBUG]    commons-io:commons-io🏺2.2:compile
[DEBUG]    org.apache.maven:maven-plugin-api🏺2.2.1:compile
[DEBUG]    org.apache.maven:maven-core🏺2.2.1:compile
[DEBUG]       org.apache.maven:maven-settings🏺2.2.1:compile
[DEBUG]       org.apache.maven:maven-plugin-parameter-documenter🏺2.2.1:compile
[DEBUG]       org.slf4j:slf4j-jdk14🏺1.5.6:runtime
[DEBUG]          org.slf4j:slf4j-api🏺1.5.6:runtime
[DEBUG]       org.slf4j:jcl-over-slf4j🏺1.5.6:runtime
[DEBUG]       org.apache.maven.reporting:maven-reporting-api🏺2.2.1:compile
[DEBUG]          org.apache.maven.doxia:doxia-sink-api🏺1.1:compile
[DEBUG]          org.apache.maven.doxia:doxia-logging-api🏺1.1:compile
[DEBUG]       org.apache.maven:maven-profile🏺2.2.1:compile
[DEBUG]       org.apache.maven:maven-artifact🏺2.2.1:compile
[DEBUG]       org.apache.maven:maven-repository-metadata🏺2.2.1:compile
[DEBUG]       org.apache.maven:maven-error-diagnostics🏺2.2.1:compile
[DEBUG]       commons-cli:commons-cli🏺1.2:compile
[DEBUG]       org.apache.maven:maven-plugin-descriptor🏺2.2.1:compile
[DEBUG]       org.codehaus.plexus:plexus-interactivity-api🏺1.0-alpha-6:compile
[DEBUG]          org.codehaus.plexus:plexus-component-api🏺1.0-alpha-16:compile
[DEBUG]             org.codehaus.plexus:plexus-classworlds🏺1.2-alpha-7:compile
[DEBUG]       org.apache.maven:maven-artifact-manager🏺2.2.1:compile
[DEBUG]          backport-util-concurrent:backport-util-concurrent🏺3.1:compile
[DEBUG]       org.apache.maven:maven-monitor🏺2.2.1:compile
[DEBUG]       classworlds:classworlds🏺1.1:compile
[DEBUG]       org.sonatype.plexus:plexus-sec-dispatcher🏺1.3:compile
[DEBUG]          org.sonatype.plexus:plexus-cipher🏺1.4:compile
[DEBUG]    org.apache.maven.shared:maven-invoker🏺2.1.1:compile
[DEBUG]    commons-collections:commons-collections🏺3.2.1:compile
[DEBUG]    org.codehaus.groovy:groovy🏺1.8.3:compile
[DEBUG]       antlr:antlr🏺2.7.7:compile
[DEBUG]       asm:asm🏺3.2:compile
[DEBUG]       asm:asm-commons🏺3.2:compile
[DEBUG]       asm:asm-util🏺3.2:compile
[DEBUG]       asm:asm-analysis🏺3.2:compile
[DEBUG]       asm:asm-tree🏺3.2:compile
[DEBUG]    org.beanshell:bsh🏺2.0b4:compile
[DEBUG]    org.apache.maven.shared:maven-script-interpreter🏺1.0:compile
[DEBUG]       org.apache.ant:ant🏺1.8.1:compile
[DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-archetype-plugin:2.4
[DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-archetype-plugin:2.4
[DEBUG]   Imported:  < maven.api
[DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-archetype-plugin:2.4
[DEBUG]   Included: org.apache.maven.plugins:maven-archetype-plugin🏺2.4
[DEBUG]   Included: org.apache.maven.archetype:archetype-catalog🏺2.4
[DEBUG]   Included: org.apache.maven.archetype:archetype-descriptor🏺2.4
[DEBUG]   Included: org.apache.maven.archetype:archetype-registry🏺2.4
[DEBUG]   Included: org.apache.maven.archetype:archetype-common🏺2.4
[DEBUG]   Included: net.sourceforge.jchardet:jchardet🏺1.0
[DEBUG]   Included: org.codehaus.plexus:plexus-component-annotations🏺1.5.5
[DEBUG]   Included: dom4j:dom4j🏺1.6.1
[DEBUG]   Included: xml-apis:xml-apis🏺1.0.b2
[DEBUG]   Included: jdom:jdom🏺1.0
[DEBUG]   Included: org.codehaus.plexus:plexus-interpolation🏺1.11
[DEBUG]   Included: org.codehaus.plexus:plexus-velocity🏺1.1.8
[DEBUG]   Included: org.apache.velocity:velocity🏺1.5
[DEBUG]   Included: commons-lang:commons-lang🏺2.1
[DEBUG]   Included: oro:oro🏺2.0.8
[DEBUG]   Included: org.codehaus.plexus:plexus-utils🏺3.0.21
[DEBUG]   Included: commons-io:commons-io🏺2.2
[DEBUG]   Included: org.slf4j:slf4j-jdk14🏺1.5.6
[DEBUG]   Included: org.slf4j:slf4j-api🏺1.5.6
[DEBUG]   Included: org.slf4j:jcl-over-slf4j🏺1.5.6
[DEBUG]   Included: org.apache.maven.reporting:maven-reporting-api🏺2.2.1
[DEBUG]   Included: org.apache.maven.doxia:doxia-sink-api🏺1.1
[DEBUG]   Included: org.apache.maven.doxia:doxia-logging-api🏺1.1
[DEBUG]   Included: commons-cli:commons-cli🏺1.2
[DEBUG]   Included: org.codehaus.plexus:plexus-interactivity-api🏺1.0-alpha-6
[DEBUG]   Included: backport-util-concurrent:backport-util-concurrent🏺3.1
[DEBUG]   Included: org.sonatype.plexus:plexus-sec-dispatcher🏺1.3
[DEBUG]   Included: org.sonatype.plexus:plexus-cipher🏺1.4
[DEBUG]   Included: org.apache.maven.shared:maven-invoker🏺2.1.1
[DEBUG]   Included: commons-collections:commons-collections🏺3.2.1
[DEBUG]   Included: org.codehaus.groovy:groovy🏺1.8.3
[DEBUG]   Included: antlr:antlr🏺2.7.7
[DEBUG]   Included: asm:asm🏺3.2
[DEBUG]   Included: asm:asm-commons🏺3.2
[DEBUG]   Included: asm:asm-util🏺3.2
[DEBUG]   Included: asm:asm-analysis🏺3.2
[DEBUG]   Included: asm:asm-tree🏺3.2
[DEBUG]   Included: org.beanshell:bsh🏺2.0b4
[DEBUG]   Included: org.apache.maven.shared:maven-script-interpreter🏺1.0
[DEBUG]   Included: org.apache.ant:ant🏺1.8.1
[DEBUG]   Excluded: org.apache.maven:maven-model🏺2.2.1
[DEBUG]   Excluded: org.apache.maven:maven-project🏺2.2.1
[DEBUG]   Excluded: org.apache.maven:maven-plugin-registry🏺2.2.1
[DEBUG]   Excluded: org.codehaus.plexus:plexus-container-default🏺1.0-alpha-9-stable-1
[DEBUG]   Excluded: junit:junit🏺4.11
[DEBUG]   Excluded: org.hamcrest:hamcrest-core🏺1.3
[DEBUG]   Excluded: org.apache.maven:maven-plugin-api🏺2.2.1
[DEBUG]   Excluded: org.apache.maven:maven-core🏺2.2.1
[DEBUG]   Excluded: org.apache.maven:maven-settings🏺2.2.1
[DEBUG]   Excluded: org.apache.maven:maven-plugin-parameter-documenter🏺2.2.1
[DEBUG]   Excluded: org.apache.maven:maven-profile🏺2.2.1
[DEBUG]   Excluded: org.apache.maven:maven-artifact🏺2.2.1
[DEBUG]   Excluded: org.apache.maven:maven-repository-metadata🏺2.2.1
[DEBUG]   Excluded: org.apache.maven:maven-error-diagnostics🏺2.2.1
[DEBUG]   Excluded: org.apache.maven:maven-plugin-descriptor🏺2.2.1
[DEBUG]   Excluded: org.codehaus.plexus:plexus-component-api🏺1.0-alpha-16
[DEBUG]   Excluded: org.codehaus.plexus:plexus-classworlds🏺1.2-alpha-7
[DEBUG]   Excluded: org.apache.maven:maven-artifact-manager🏺2.2.1
[DEBUG]   Excluded: org.apache.maven:maven-monitor🏺2.2.1
[DEBUG]   Excluded: classworlds:classworlds🏺1.1
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-archetype-plugin:2.4:create from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-archetype-plugin:2.4, parent: sun.misc.Launcher$AppClassLoader@447bd86d]
[DEBUG] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[DEBUG] Setting property: site.resource.loader.class => 'org.codehaus.plexus.velocity.SiteResourceLoader'.
[DEBUG] Setting property: velocimacro.messages.on => 'false'.
[DEBUG] Setting property: resource.loader => 'classpath,site'.
[DEBUG] Setting property: runtime.log.invalid.references => 'false'.
[DEBUG] Setting property: resource.manager.logwhenfound => 'false'.
[DEBUG] *******************************************************************
[DEBUG] Starting Apache Velocity v1.5 (compiled: 2007-02-22 08:52:29)
[DEBUG] RuntimeInstance initializing.
[DEBUG] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties
[DEBUG] LogSystem has been deprecated. Please use a LogChute implementation.
[DEBUG] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
[DEBUG] ResourceLoader instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[DEBUG] ResourceLoader instantiated: org.codehaus.plexus.velocity.SiteResourceLoader
[DEBUG] ResourceCache: initialized (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
[DEBUG] Default ResourceManager initialization complete.
[DEBUG] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[DEBUG] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[DEBUG] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[DEBUG] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[DEBUG] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[DEBUG] Created '20' parsers.
[DEBUG] Velocimacro : initialization starting.
[DEBUG] Velocimacro : allowInline = true : VMs can be defined inline in templates
[DEBUG] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
[DEBUG] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
[DEBUG] Velocimacro : autoload off : VM system will not automatically reload global library macros
[DEBUG] Velocimacro : Velocimacro : initialization complete.
[DEBUG] RuntimeInstance successfully initialized.
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-archetype-plugin:2.4:create' with basic configurator -->
[DEBUG]   (f) archetypeArtifactId = maven-archetype-webapp
[DEBUG]   (f) archetypeGroupId = org.apache.maven.archetypes
[DEBUG]   (f) archetypeVersion = RELEASE
[DEBUG]   (f) artifactId = test-all
[DEBUG]   (f) basedir = d:\data\testproject
[DEBUG]   (f) groupId = easitech.test
[DEBUG]   (f) localRepository =       id: local
      url: file:///D:/softwaredevelop/mvnrepository/
   layout: default
snapshots: [enabled => true, update => always]
 releases: [enabled => true, update => always]


[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.904 s
[INFO] Finished at: 2015-12-14T20:32:43+08:00
[INFO] Final Memory: 12M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli) on project standalone-pom: Unable to parse configuration of mojo org.apache.maven.plugins:maven-archetype-plugin:2.4:create for parameter #: Cannot create instance of interface org.apache.maven.artifact.repository.ArtifactRepository -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli) on project standalone-pom: Unable to parse configuration of mojo org.apache.maven.plugins:maven-archetype-plugin:2.4:create for parameter #: Cannot create instance of interface org.apache.maven.artifact.repository.ArtifactRepository
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:220)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginConfigurationException: Unable to parse configuration of mojo org.apache.maven.plugins:maven-archetype-plugin:2.4:create for parameter #: Cannot create instance of interface org.apache.maven.artifact.repository.ArtifactRepository
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:607)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:539)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:119)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot create instance of interface org.apache.maven.artifact.repository.ArtifactRepository
at org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:147)
at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(ObjectWithFieldsConverter.java:54)
at org.codehaus.plexus.component.configurator.converters.composite.AbstractCollectionConverter.fromChildren(AbstractCollectionConverter.java:54)
at org.codehaus.plexus.component.configurator.converters.composite.CollectionConverter.fromConfiguration(CollectionConverter.java:73)
at org.eclipse.sisu.plexus.CompositeBeanHelper.convertProperty(CompositeBeanHelper.java:268)
at org.eclipse.sisu.plexus.CompositeBeanHelper.setProperty(CompositeBeanHelper.java:210)
at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:101)
at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:34)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:577)
... 22 more
Caused by: java.lang.InstantiationException: org.apache.maven.artifact.repository.ArtifactRepository
at java.lang.Class.newInstance(Class.java:364)
at org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:143)
... 30 more
[ERROR] 
[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/PluginConfigurationException
加载中
1
叶子夜游
叶子夜游
用这个命令:mvn archetype:generate

mvn archetype:create已经不用了- -

叶子夜游
叶子夜游
回复 @super-wen : mvn archetype:generate
super-wen
super-wen
那换成什么命令了。。。
返回顶部
顶部