`

Ant script for create a new jira-plugin project

    博客分类:
  • java
阅读更多
<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.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics