You need to be careful with your spelling:
 -DarchetypeVesrion=1.0.0

This should be -DarchetypeVersion, not Vesrion. I believe it will work
once you fix this.

Wayne

On 8/21/08, sam wun <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> I have maven2 and eclipse 3.4 in my windows vista system.
>
> I tried to run the following mvn command, but got some error. I belileve it
> is a version issue.
>
>
>
> d:\workspace>mvn archetype:create -DarchetypeGroupId=org.springframework.ws
> -Dar
> chetypeArtifactId=spring-ws-archetype -DarchetypeVesrion=1.0.0
> -DgroupId=com.myt
> utorial -DartifactId=simpleWeb2
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO]    task-segment: [archetype:create] (aggregator-style)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Setting property: classpath.resource.loader.class =>
> 'org.codehaus.plexus
> .velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [archetype:create]
> [WARNING] This goal is deprecated. Please use mvn archetype:generate
> instead
> [INFO] Defaulting package to group ID: com.mytutorial
> [INFO] artifact org.springframework.ws:spring-ws-archetype: checking for
> updates
>  from central
> [WARNING] repository metadata for: 'artifact
> org.springframework.ws:spring-ws-ar
> chetype' could not be retrieved from repository: central due to an error:
> Error
> transferring file
> [INFO] Repository 'central' will be blacklisted
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error creating from archetype
>
> Embedded error: OldArchetype does not exist.
> Unable to determine the release version
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
>     mvn install:install-file -DgroupId=org.springframework.ws
> -DartifactId=sprin
> g-ws-archetype -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the file
> there:
>     mvn deploy:deploy-file -DgroupId=org.springframework.ws
> -DartifactId=spring-
> ws-archetype -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file
> -Durl=[url]
> -DrepositoryId=[id]
>
>
>   org.springframework.ws:spring-ws-archetype:jar:RELEASE
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 41 seconds
> [INFO] Finished at: Thu Aug 21 22:43:57 EST 2008
> [INFO] Final Memory: 8M/15M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
>
>
> How to modify the mvn command to execute it correctly?
>
>
>
> Thanks
>
> Sam
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to