Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Issue in working with Action objects

Nandhini v March 31, 2015

Hi,

As guided by the tutorial(https://developer.atlassian.com/docs/atlassian-platform-common-components/active-objects/getting-started-with-active-objects) I follwed everystep, But while executing the atlas-run, I am getting the following error as

 

D:\refapp\ ao-tutorial>atlas-run
Executing: "D:\atlassian-plugin-sdk\apache-maven-3.2.1\bin\mvn.bat" com.atlassia
n.maven.plugins:maven-amps-dispatcher-plugin:5.0.13:run -gs D:\atlassian-plugin-
sdk\apache-maven-3.2.1/conf/settings.xml
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Unrecognised tag: 'properties' (position: START_TAG seen ...<proxies>\
n \t <properties>... @95:18) @ D:\atlassian-plugin-sdk\apache-maven-3.2.1\con
f\settings.xml, line 95, column 18
[WARNING] Unrecognised tag: 'properties' (position: START_TAG seen ...</proxies>
\r\n \r\n <properties>... @42:19) @ C:\Users\xxxxx\.m2\settings.xml,
line 42, column 19
[WARNING]
[INFO] Scanning for projects...
Downloading: https://maven.atlassian.com/repository/public/com/atlassian/refapp/
atlassian-platform/2.23.5/atlassian-platform-2.23.5.pom
Downloading: file://D:\atlassian-plugin-sdk/repository/com/atlassian/refapp/atla
ssian-platform/2.23.5/atlassian-platform-2.23.5.pom
Downloading: http://repo.maven.apache.org/maven2/com/atlassian/refapp/atlassian-
platform/2.23.5/atlassian-platform-2.23.5.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.atlassian.tutorial.ao.todo:ao-tutorial:1.0-SNAPSHOT (D
:\refapp\ ao-tutorial\pom.xml) has 2 errors
[ERROR] Non-resolvable import POM: Could not find artifact com.atlassian.ref
app:atlassian-platform:pom:2.23.5 in atlassian-public (https://maven.atlassian.c
om/repository/public) @ line 98, column 25 -> [Help 2]
[ERROR] 'dependencies.dependency.version' for com.atlassian.activeobjects:ac
tiveobjects-plugin:jar must be a valid version but is '${ao.version}'. @ line 50
, column 14
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableMo
delException

 

please find below my pom.xml:

<?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">

<modelVersion>4.0.0</modelVersion>
<groupId>com.atlassian.tutorial.ao.todo</groupId>
<artifactId> ao-tutorial</artifactId>
<version>1.0-SNAPSHOT</version>

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

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

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.4</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.atlassian.sal</groupId>
<artifactId>sal-api</artifactId>
<version>2.7.1</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.5.8</version>
</dependency>
<dependency>
<groupId>com.atlassian.activeobjects</groupId>
<artifactId>activeobjects-plugin</artifactId>
<version>${ao.version}</version>
<scope>provided</scope>
</dependency>
<!-- WIRED TEST RUNNER DEPENDENCIES -->
<dependency>
<groupId>com.atlassian.plugins</groupId>
<artifactId>atlassian-plugins-osgi-testrunner</artifactId>
<version>${plugin.testrunner.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
<version>1.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.2-atlassian-1</version>
</dependency>
<!-- SAL, the Active Objects plugin uses SAL's API for transactions -->
<dependency>
<groupId>com.atlassian.sal</groupId>
<artifactId>sal-api</artifactId>
<version>2.4.1</version>
<scope>provided</scope>
</dependency>

<!-- Google Collections, useful utilities for manipulating collections -->
<dependency>
<groupId>com.google.collections</groupId>
<artifactId>google-collections</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>

<!-- We're going to write a simple servlet -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.4</version>
<scope>provided</scope>
</dependency>
</dependencies>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.atlassian.refapp</groupId>
<artifactId>atlassian-platform</artifactId>
<version>${refapp.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<build>
<plugins>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-refapp-plugin</artifactId>
<version>${amps.version}</version>
<extensions>true</extensions>
<configuration>
<productVersion>${refapp.version}</productVersion>
<pluginArtifacts>
<pluginArtifact>
<groupId>com.atlassian.activeobjects</groupId>
<artifactId>activeobjects-plugin</artifactId>
<version>${ao.version}</version>
</pluginArtifact>
<pluginArtifact>
<groupId>com.atlassian.activeobjects</groupId>
<artifactId>activeobjects-refapp-spi</artifactId>
<version>${ao.version}</version>
</pluginArtifact>
</pluginArtifacts>
<productVersion>${refapp.version}</productVersion>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>

<properties>
<refapp.version>2.23.5</refapp.version>
<amps.version>5.0.13</amps.version>
<plugin.testrunner.version>1.2.3</plugin.testrunner.version>
</properties>

</project>

 

 

 

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 31, 2015

Add this under properties.

&lt;ao.version&gt;0.19.7&lt;/ao.version&gt;
Nandhini v March 31, 2015

Updated, But still getting the same error :( D:\refapp\ ao-tutorial>atlas-run Executing: "D:\atlassian-plugin-sdk\apache-maven-3.2.1\bin\mvn.bat" com.atlassia n.maven.plugins:maven-amps-dispatcher-plugin:5.0.13:run -gs D:\atlassian-plugin- sdk\apache-maven-3.2.1/conf/settings.xml [WARNING] [WARNING] Some problems were encountered while building the effective settings [WARNING] Unrecognised tag: 'properties' (position: START_TAG seen ...<proxies>\ n \t <properties>... @95:18) @ D:\atlassian-plugin-sdk\apache-maven-3.2.1\con f\settings.xml, line 95, column 18 [WARNING] Unrecognised tag: 'properties' (position: START_TAG seen ...</proxies> \r\n \r\n <properties>... @42:19) @ C:\Users\385655\.m2\settings.xml, line 42, column 19 [WARNING] [INFO] Scanning for projects... [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.atlassian.tutorial.ao.todo:ao-tutorial:1.0-SNAPSHOT (D :\refapp\ ao-tutorial\pom.xml) has 1 error [ERROR] Non-resolvable import POM: Failure to find com.atlassian.refapp:atla ssian-platform:pom:2.23.5 in https://maven.atlassian.com/repository/public was c ached in the local repository, resolution will not be reattempted until the upda te interval of atlassian-public has elapsed or updates are forced @ line 98, col umn 25 -> [Help 2]

Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 31, 2015

Unrecognised tag: 'properties'?

Nandhini v March 31, 2015

sorry i didnt get u

Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 31, 2015

It is complaining about a properties tag in your settings.xml file.

0 votes
Nandhini v April 1, 2015

After updating setting.xml with <ao.version>0.19.7</ao.version> ,

Now I am getting different set of errors

[ERROR] The project com.atlassian.tutorial.ao.todo:ao-tutorial:1.0-SNAPSHOT (D
:\refapp\ ao-tutorial\pom.xml) has 1 error
[ERROR] Non-resolvable import POM: Failure to find com.atlassian.refapp:atlassian-platform:pom:2.23.5 in https://maven.atlassian.com/repository/public was cached in the local repository, resolution will not be eattempted until the update interval of atlassian-public has elapsed or updates are forced @ line 98, col
umn 25 -> [Help 2]

0 votes
Carl Myers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 31, 2015

Did you read the error message?  It says there is a syntax error in the settings.xml file in your atlassian plugin sdk file located at D:\atlassian-plugin-sdk\apache-maven-3.2.1\conf\settings.xml.  Have you examined that file?

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events