Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

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

HTML
outputhtml
Wiki Markup
{html:output=html}
<style>		
	#mvncmd label {
		text-align: right;		
		font-weight: bold;
		width: 100px;
		float: left;
		margin: 0px 5px;		
	}
	#mvncmd input, #mvncmd select, #mvncm span { width: 180px; margin-bottom: 5px; float: left;}
	#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;
		var cmd = 'mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=' + version + ' -DgroupId=' + groupId + ' -DartifactId=' + artifactId;						
		if (version.match(/.*SNAPSHOT/)) cmd += ' -DremoteRepositories=http://wicketstuff.org/maven/repository/';
		document.getElementById("cmdLine").value = cmd;
	}
</script>
<div id="mvncmd">
<div>
<label for="groupId" title="Base Package">GroupId:</label>
<input type="text" id="groupId" value="com.mycompany" onkeyup="changeIt();"/><span title="Base Package">&nbsp;(?)</span><br/>
<label for="artifactId" title="Project Name"> ArtifactId:</label> 
<input type="text" id="artifactId" value="myproject" onkeyup="changeIt();"><span title="Project Name">&nbsp;(?)</span><br/>
<label for="version" title="Wicket Version">Version:</label>
<select id="version" onchange="changeIt();">
        <option value="1.4-SNAPSHOT">1.4-SNAPSHOT</option> 
        <option value="1.4.9" selected="selected">1.4.9</option>
        <option value="1.4.8">1.4.8</option>
	<option value="1.3-SNAPSHOT">1.3-SNAPSHOT</option>
        <option value="1.3.7">1.3.7</option>
	<option value="1.3.6">1.3.6</option>
</select><span title="Wicket Version">&nbsp;(?)</span>
</div>
<div>
<label for="cmdLine" id="cmdLabel">Command Line:</label>
<textarea id="cmdLine" onfocus="this.select();">
</textarea>
<script>changeIt();</script>
</div>
<br/>
</div>
{html}

Results

This will produce the following project structure/files

...