package net.java.ao does not exist!

I use active objects for my database.

I added following dependency in pom.xml:

<dependency>
	<groupId>com.atlassian.activeobjects</groupId>
	<artifactId>activeobjects-plugin</artifactId>
	<version>${ao.version}</version>
	<scope>provided</scope>
</dependency>

I added following pluginArtifacts in the configuration within the build-scope in pom.xml:

<pluginArtifacts>
<pluginArtifact>
	<groupId>com.atlassian.activeobjects</groupId>
	<artifactId>activeobjects-plugin</artifactId>
	<version>${ao.version}</version>
</pluginArtifact>
<pluginArtifact>
	<groupId>com.atlassian.activeobjects</groupId>
	<artifactId>activeobjects-jira-spi</artifactId>
	<version>${ao.version}</version>
</pluginArtifact>
</pluginArtifacts>

I use ao.version = 0.20

In my atlassian-plugin.xml I added:

<component-import key="ao" name="Active Objects components" interface="com.atlassian.activeobjects.external.ActiveObjects">
      <description>Access to the Active Objects service</description>
</component-import>
    
 <ao key="ao-module">
			<description>The configuration of the Active Objects service</description>
			<entity>com.atlassian.dashboardTemplate.model.TemplateEntity</entity></ao>

And I created an interface:

package com.atlassian.dashboardTemplate.model;

import net.java.ao.Entity;
import net.java.ao.schema.AutoIncrement;
import net.java.ao.schema.NotNull;
import net.java.ao.schema.PrimaryKey;

public interface TemplateEntity extends Entity
{
   @PrimaryKey
   @AutoIncrement
   public long getId();
   public void setId(long id);
   
   public String getName();
   public void setName(String name);
   
   @NotNull
   public String getVersion();
   public void setVersion();
   
   public long getCreationDate();
   public void setCreationDate(long date); 
}

My Problem:

Whenever I run "pi" in atlas-cli I got the error that package net.java.ao does not exist. But what is wierd that I can import it in Eclipse without any errors.

2 answers

1 accepted

This widget could not be displayed.

Do an atlas-clean and try again. That might fix it.

Why we need to do this all the time ?

This error occurs always and atlas-clean, atlas-debug take time so much

This widget could not be displayed.

build the project again using

atlas-mvn eclipse:eclipse

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

161 views 2 0
Join discussion

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