[ 
https://issues.apache.org/struts/browse/WW-2759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46122#action_46122
 ] 

Wes Wannemacher commented on WW-2759:
-------------------------------------

I don't think you can use -DremoteRepositories... At least I couldn't, I wanted 
to try to test without mucking around in my settings.xml, but it didn't work. 
For some reason, maven munged up the URL it was trying to download the jar 
from. I already closed the terminal window before stumbling across this JIRA, 
so I can't copy/paste. But, updating my settings.xml worked like a champ. I 
don't think I saw any reference to -DremoteRepositories in the steps (only 
later in a mvn archetype quickref), so I don't know that it matters. Plus, once 
the archetype is released it's a moot point. But, I just thought I'd mention it.

> The Struts 2 Portlet Tutorial "mvn archetype:create 
> -DarchetypeGroupId=org.apache.struts 
> -DarchetypeArtifactId=struts2-archetype-portlet 
> -DarchetypeVersion=2.1.1-SNAPSHOT -DartifactId=bookmark-portlet " Can't use
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2759
>                 URL: https://issues.apache.org/struts/browse/WW-2759
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Portlet
>    Affects Versions: 2.1.2
>            Reporter: witty xu
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.7
>
>
> mvn archetype:create -DarchetypeGroupId=org.apache.struts 
> -DarchetypeArtifactId=struts2-archetype-portlet 
> -DarchetypeVersion=2.1.1-SNAPSHOT -DartifactId=bookmark-portlet 
>     -DgroupId=com.mycompany 
> -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository
> can't use the error is follow:
> [ERROR] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] : org.apache.maven.archetype.exception.UnknownArchetype: The desired 
> arch
> etype does not exist 
> (org.apache.struts:struts2-archetype-portlet:2.1.1-SNAPSHOT
> )
> The desired archetype does not exist 
> (org.apache.struts:struts2-archetype-portle
> t:2.1.1-SNAPSHOT)
> How can we do 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to