Ant script for create a new jira-plugin project

<project name="createProjectTask" default="default-process">
		<target name="default-process">
		<input message="please input groupid:" addproperty="groupId" />
		<echo>
			${groupId}
		</echo>
		<input message="please input artifactId:" addproperty="artifactId" />
		<echo>
			${artifactId}
		</echo>
		<echo>${groupId}</echo>
		<echo>${artifactId}</echo>
		<exec dir="." executable="cmd">
			<arg line="/c
				mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create ^
			    -DarchetypeGroupId=com.atlassian.maven.archetypes ^
			    -DarchetypeArtifactId=jira-plugin-archetype ^
			    -DarchetypeVersion=15 ^
			    -DremoteRepositories=https://maven.atlassian.com/repository/public/ ^
			    -DgroupId=${groupId} -DartifactId=${artifactId}" />
		</exec>
	</target>
</project>

How to use?

Make sure your have installed ANT;
Copy the precede ANT script in a file "build.xml";
Run "ant" command.

你可能感兴趣的:(xml,ant)