How to resolve the Build Error?

Hi ,

I m developing a sample Active Object plugin ,Regarding this I configure the pom.xml file as follows

(jira version 5.0 )

I got the Build error ( Error building POM (may not be this project's POM)), i m confusing where the mistake has been done

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<br< a="">> <modelVersion>4.0.0</modelVersion>
<groupId>com.atlassian.tutorial.ao.todo</groupId>
<artifactId>aotodo</artifactId>
<version>1.0</version>

<organization>
<name>Example Company</name>
<url>http://www.example.com/</url>
</organization>

<name>aotodo</name>
<description>This is the com.atlassian.tutorial.ao.todo:aotodo plugin for Atlassian Refapp.</description>
<packaging>atlassian-plugin</packaging>

<...



































































































1 answer

1 accepted

0 votes
Answer accepted

try with this

&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;

	&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
	&lt;groupId&gt;com.atlassian.maven.plugins&lt;/groupId&gt;
	&lt;artifactId&gt;maven-refapp-plugin&lt;/artifactId&gt;
	&lt;version&gt;3.11&lt;/version&gt;

	&lt;organization&gt;
		&lt;name&gt;Example Company&lt;/name&gt;
		&lt;url&gt;http://www.example.com/&lt;/url&gt;
	&lt;/organization&gt;

	&lt;name&gt;maven-refapp-plugin&lt;/name&gt;
	&lt;description&gt;This is the com.atlassian.maven.plugins:maven-refapp-plugin plugin for Atlassian JIRA.&lt;/description&gt;
	&lt;packaging&gt;atlassian-plugin&lt;/packaging&gt;

	&lt;dependencies&gt;
		&lt;dependency&gt;
			&lt;groupId&gt;com.atlassian.jira&lt;/groupId&gt;
			&lt;artifactId&gt;jira-api&lt;/artifactId&gt;
			&lt;version&gt;${jira.version}&lt;/version&gt;
			&lt;scope&gt;provided&lt;/scope&gt;
		&lt;/dependency&gt;

		&lt;dependency&gt;
			&lt;groupId&gt;junit&lt;/groupId&gt;
			&lt;artifactId&gt;junit&lt;/artifactId&gt;
			&lt;version&gt;4.10&lt;/version&gt;
			&lt;scope&gt;test&lt;/scope&gt;
		&lt;/dependency&gt;

		&lt;dependency&gt;
			&lt;groupId&gt;com.atlassian.activeobjects&lt;/groupId&gt;
			&lt;artifactId&gt;activeobjects-plugin&lt;/artifactId&gt;
			&lt;version&gt;${ao.version}&lt;/version&gt;
			&lt;scope&gt;provided&lt;/scope&gt;
		&lt;/dependency&gt;

		&lt;!-- SAL, the Active Objects plugin uses SAL's API for transactions --&gt;
		&lt;dependency&gt;
			&lt;groupId&gt;com.atlassian.sal&lt;/groupId&gt;
			&lt;artifactId&gt;sal-api&lt;/artifactId&gt;
			&lt;version&gt;2.4.1&lt;/version&gt;
			&lt;scope&gt;provided&lt;/scope&gt;
		&lt;/dependency&gt;

		&lt;!-- Google Collections, useful utilities for manipulating collections --&gt;
		&lt;dependency&gt;
			&lt;groupId&gt;com.google.collections&lt;/groupId&gt;
			&lt;artifactId&gt;google-collections&lt;/artifactId&gt;
			&lt;version&gt;1.0&lt;/version&gt;
			&lt;scope&gt;provided&lt;/scope&gt;
		&lt;/dependency&gt;

		&lt;!-- We're going to write a simple servlet --&gt;
		&lt;dependency&gt;
			&lt;groupId&gt;javax.servlet&lt;/groupId&gt;
			&lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
			&lt;version&gt;2.4&lt;/version&gt;
			&lt;scope&gt;provided&lt;/scope&gt;
		&lt;/dependency&gt;

		&lt;!-- WIRED TEST RUNNER DEPENDENCIES --&gt;
		&lt;dependency&gt;
			&lt;groupId&gt;com.atlassian.plugins&lt;/groupId&gt;
			&lt;artifactId&gt;atlassian-plugins-osgi-testrunner&lt;/artifactId&gt;
			&lt;version&gt;${plugin.testrunner.version}&lt;/version&gt;
			&lt;scope&gt;test&lt;/scope&gt;
		&lt;/dependency&gt;
		&lt;dependency&gt;
			&lt;groupId&gt;javax.ws.rs&lt;/groupId&gt;
			&lt;artifactId&gt;jsr311-api&lt;/artifactId&gt;
			&lt;version&gt;1.1.1&lt;/version&gt;
			&lt;scope&gt;provided&lt;/scope&gt;
		&lt;/dependency&gt;
		&lt;dependency&gt;
			&lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
			&lt;artifactId&gt;gson&lt;/artifactId&gt;
			&lt;version&gt;2.2.2-atlassian-1&lt;/version&gt;
		&lt;/dependency&gt;
	&lt;/dependencies&gt;

	&lt;build&gt;
		&lt;plugins&gt;
			&lt;plugin&gt;
				&lt;groupId&gt;com.atlassian.maven.plugins&lt;/groupId&gt;
				&lt;artifactId&gt;maven-jira-plugin&lt;/artifactId&gt;
				&lt;version&gt;${amps.version}&lt;/version&gt;
				&lt;extensions&gt;true&lt;/extensions&gt;
				&lt;configuration&gt;
					&lt;productVersion&gt;${jira.version}&lt;/productVersion&gt;
					&lt;productDataVersion&gt;${jira.version}&lt;/productDataVersion&gt;
				&lt;/configuration&gt;
			&lt;/plugin&gt;
			&lt;plugin&gt;
				&lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
				&lt;configuration&gt;
					&lt;source&gt;1.6&lt;/source&gt;
					&lt;target&gt;1.6&lt;/target&gt;
				&lt;/configuration&gt;
			&lt;/plugin&gt;
			&lt;plugin&gt;
				&lt;groupId&gt;com.atlassian.maven.plugins&lt;/groupId&gt;
				&lt;artifactId&gt;maven-refapp-plugin&lt;/artifactId&gt;
				&lt;version&gt;${amps.version}&lt;/version&gt;
				&lt;extensions&gt;true&lt;/extensions&gt;
				&lt;configuration&gt;
					&lt;pluginArtifacts&gt;
						&lt;pluginArtifact&gt;
							&lt;groupId&gt;com.atlassian.activeobjects&lt;/groupId&gt;
							&lt;artifactId&gt;activeobjects-plugin&lt;/artifactId&gt;
							&lt;version&gt;${ao.version}&lt;/version&gt;
						&lt;/pluginArtifact&gt;
						&lt;pluginArtifact&gt;
							&lt;groupId&gt;com.atlassian.activeobjects&lt;/groupId&gt;
							&lt;artifactId&gt;activeobjects-refapp-spi&lt;/artifactId&gt;
							&lt;version&gt;${ao.version}&lt;/version&gt;
						&lt;/pluginArtifact&gt;
					&lt;/pluginArtifacts&gt;
					&lt;productVersion&gt;${refapp.version}&lt;/productVersion&gt;
				&lt;/configuration&gt;
			&lt;/plugin&gt;
		&lt;/plugins&gt;
	&lt;/build&gt;

	&lt;properties&gt;
	&lt;refapp.version&gt;2.12.0&lt;/refapp.version&gt;
		&lt;jira.version&gt;5.1.8&lt;/jira.version&gt;
		&lt;amps.version&gt;4.1.4&lt;/amps.version&gt;//change it to the your installed sdk version
		&lt;plugin.testrunner.version&gt;1.1&lt;/plugin.testrunner.version&gt;
	&lt;/properties&gt;

&lt;/project&gt;

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Friday in United States

Confluence Security Advisory

Good morning Members, Not sure if you are aware. Please read the following: https://www.icloud.com/keynote/0RyJ4VEdNUpjDpGfMhfZx9fEg#Confluence_Security_Advisor More details: https://co...

43 views 1 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you