Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: WICKET-1259

...

To create your project, copy and paste the command line generated after typing in the groupId, artifactId and version.

HTML
outputhtml
<style>		
	#mvncmd label {
		text-align: right;		
		font-weight: bold;
		width: 100px;
		float: left;
		margin: 0px 5px;		
	}
	#mvncmd input, #mvncmd select { width: 180px;	margin-bottom: 5px;	}	
	#mvncmd textarea { width: 400px; height: 100px; }
	#mvncmd br { clear: left; }	
	#mvncmd div { float: left; }
</style>
<script type="text/javascript">
		function changeIt()
			{
				var  groupId = document.getElementById("groupId").value;
				var artifactId = document.getElementById("artifactId").value;
				var version = document.getElementById("version").value;
				document.getElementById("cmdLine").value = 'mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=' + version + ' -DgroupId=' + groupId + ' -DartifactId=' + artifactId;										var notice = document.getElementById("notice");
				if (version.match(/.*SNAPSHOT/)) notice.style.display="block"; else notice.style.display="none";
			}
</script>
<div id="mvncmd">
<div>
<label for="groupId">GroupId:</label>
<input type="text" id="groupId" value="com.mycompany" onkeyup="changeIt();"/><br/>
<label for="artifactId"> ArtifactId:</label> 
<input type="text" id="artifactId" value="myproject" onkeyup="changeIt();"><br/>
<label for="version">Version:</label>
<select id="version" value="1.3.0-rc2" onchange="changeIt();">
	<option value="1.3.0-SNAPSHOT">1.3.0-SNAPSHOT</option>
	<option value="1.3.0" selected="selected">1.3.0</option>
	<option value="1.3.0-rc2">1.3.0-rc2</option>
	<option value="1.3.0-rc1">1.3.0-rc1</option>
</select>
<span id="notice" style="text-align:right;display:none;">NOTICE: You need to <a href="http://wicket.apache.org/building-from-svn.html">build Wicket from SVN</a><br/> in order to use the SNAPSHOT archetype.</span>
</div>
<div>
<label for="cmdLine" id="cmdLabel">Command Line:</label>
<textarea id="cmdLine" onfocus="this.select();">
</textarea>
<script>changeIt();</script>
</div>
<br/>
</div>

...