THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
To create your project, copy and paste the command line generated after typing in the groupId and artifactId in the corresponding textfields, artifactId and version.
HTML | ||
---|---|---|
| ||
<html> <body> <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.form.t1getElementById("groupId").value; var artifactId = document.form.t2.getElementById("artifactId").value; var version = document.getElementById("version").value; my_div.innerHTMLdocument.getElementById("cmdLine").value = 'mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.3.0-rc1' + version + ' -DgroupId=' + groupId + ' -DartifactId=' + artifactId; } } </script> <form name="form"> <b>GroupId:</b> <div id="mvncmd"> <div> <label for="groupId">GroupId:</label> <input type="text" nameid=t1"groupId" value="com.mycompany" onkeyup="changeIt();"/><br/> <b><label for="artifactId"> ArtifactId:</b>label> <input type="text" nameid=t2"artifactId" value="myproject" onkeyup="changeIt();"><br/> <br><br> <b>Command Line:</b> <div<label for="version">Version:</label> <select id="my_divversion">mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion= value="1.3.0-rc2" onchange="changeIt();"> <option value="1.3.0-SNAPSHOT">1.3.0-SNAPSHOT</option> <option value="1.3.0-rc1" -DgroupId=com.mycompany -DartifactId=myproject </div> </body> </html>selected="selected">1.3.0-rc1</option> <option value="1.3.0-beta4">1.3.0-beta4</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> |
Results
This will produce the following project structure/files
...