Repository: wicket-site
Updated Branches:
  refs/heads/asf-site 64043eb30 -> 1eec18b7a


Fix for quickstart script generation with SNAPSHOT versions


Project: http://git-wip-us.apache.org/repos/asf/wicket-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket-site/commit/1eec18b7
Tree: http://git-wip-us.apache.org/repos/asf/wicket-site/tree/1eec18b7
Diff: http://git-wip-us.apache.org/repos/asf/wicket-site/diff/1eec18b7

Branch: refs/heads/asf-site
Commit: 1eec18b7afa197519badade185cae02ff5e4add8
Parents: 64043eb
Author: Andrea Del Bene <[email protected]>
Authored: Sat Sep 22 14:53:56 2018 +0200
Committer: Andrea Del Bene <[email protected]>
Committed: Sat Sep 22 14:53:56 2018 +0200

----------------------------------------------------------------------
 content/atom.xml              | 2 +-
 content/start/quickstart.html | 4 +++-
 start/quickstart.md           | 5 ++++-
 3 files changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket-site/blob/1eec18b7/content/atom.xml
----------------------------------------------------------------------
diff --git a/content/atom.xml b/content/atom.xml
index 2d0adba..8fe4faf 100644
--- a/content/atom.xml
+++ b/content/atom.xml
@@ -3,7 +3,7 @@
     <title>Apache Wicket</title>
     <link href="http://wicket.apache.org/atom.xml"; rel="self"/>
     <link href="http://wicket.apache.org/"/>
-    <updated>2018-09-21T19:22:23+02:00</updated>
+    <updated>2018-09-22T14:39:43+02:00</updated>
     <id>http://wicket.apache.org/</id>
     <author>
         <name>Apache Wicket</name>

http://git-wip-us.apache.org/repos/asf/wicket-site/blob/1eec18b7/content/start/quickstart.html
----------------------------------------------------------------------
diff --git a/content/start/quickstart.html b/content/start/quickstart.html
index 8963161..613e321 100644
--- a/content/start/quickstart.html
+++ b/content/start/quickstart.html
@@ -75,8 +75,10 @@
                var cmd;
                if(version.match(/^1\.[34]/))
                        cmd = 'mvn archetype:create 
-DarchetypeGroupId=org.apache.wicket 
-DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=' + 
version + ' -DgroupId=' + groupId + ' -DartifactId=' + artifactId;              
                              
+               else if(version.match(/.*SNAPSHOT/))
+                       cmd = 'mvn 
org.apache.maven.plugins:maven-archetype-plugin:2.4:generate 
-DarchetypeGroupId=org.apache.wicket 
-DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=' + 
version + ' -DgroupId=' + groupId + ' -DartifactId=' + artifactId;              
  
                else
-                       cmd = 'mvn archetype:generate 
-DarchetypeGroupId=org.apache.wicket 
-DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=' + 
version + ' -DgroupId=' + groupId + ' -DartifactId=' + artifactId;              
                            
+                       cmd = 'mvn archetype:generate 
-DarchetypeGroupId=org.apache.wicket 
-DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=' + 
version + ' -DgroupId=' + groupId + ' -DartifactId=' + artifactId;              
    
                if (version.match(/.*SNAPSHOT/))
                        cmd += ' 
-DarchetypeRepository=https://repository.apache.org/content/repositories/snapshots/';
                else

http://git-wip-us.apache.org/repos/asf/wicket-site/blob/1eec18b7/start/quickstart.md
----------------------------------------------------------------------
diff --git a/start/quickstart.md b/start/quickstart.md
index 9dab96f..9b136d8 100644
--- a/start/quickstart.md
+++ b/start/quickstart.md
@@ -33,10 +33,13 @@ atitlePicture:
                var version = document.getElementById("version").value;
                var appserver = document.getElementById("appserver").value;
                var cmd;
+                               
                if(version.match(/^1\.[34]/))
                        cmd = 'mvn archetype:create 
-DarchetypeGroupId=org.apache.wicket 
-DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=' + 
version + ' -DgroupId=' + groupId + ' -DartifactId=' + artifactId;              
                              
+               else if(version.match(/.*SNAPSHOT/))
+                       cmd = 'mvn 
org.apache.maven.plugins:maven-archetype-plugin:2.4:generate 
-DarchetypeGroupId=org.apache.wicket 
-DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=' + 
version + ' -DgroupId=' + groupId + ' -DartifactId=' + artifactId;              
  
                else
-                       cmd = 'mvn archetype:generate 
-DarchetypeGroupId=org.apache.wicket 
-DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=' + 
version + ' -DgroupId=' + groupId + ' -DartifactId=' + artifactId;              
                            
+                       cmd = 'mvn archetype:generate 
-DarchetypeGroupId=org.apache.wicket 
-DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=' + 
version + ' -DgroupId=' + groupId + ' -DartifactId=' + artifactId;              
    
 
                if (version.match(/.*SNAPSHOT/))
                        cmd += ' 
-DarchetypeRepository=https://repository.apache.org/content/repositories/snapshots/';

Reply via email to