Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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;								
			}
</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-rc2" selected="selected">1.3.0-rc2<0</option>
	<option value="1.3.0-rc1rc2">1.3.0-rc1<rc2</option>
	<option value="1.3.0-beta4rc1">1.3.0-beta4<rc1</option>
</select>
</div>
<div>
<label for="cmdLine" id="cmdLabel">Command Line:</label>
<textarea id="cmdLine" onfocus="this.select();">
</textarea>
<script>changeIt();</script>
</div>
<br/>
</div>

...