Hello
In the java import (is a maven application) "com.atlassian.jira.plugins.importer.external.beans.ExternalCustomField" Eclipse shows the error "The import com.atlassian can not be resolved".
What needs to be put in pom.xml (dependency, repository ...)?
I am developing a plugin for Jira 6.0.1.
In the pom.xml I have included:
<plugin>
<groupId> com.atlassian.maven.plugins </ groupId>
<artifactId> maven-jira-plugin </ artifactId>
<version>? </ version>
<extensions> true </ extensions>
<configuration>
<productVersion>? </ ProductVersion>
<productDataVersion>? </ productDataVersion>
</ configuration>
</ plugin>
I do not know which version to market.
Thank you!
Running the atlassian sdk's command does additional configuration of maven settings.
When running maven standalone, you are going to get the error "cannot resolve com.atlassian...".
Either run maven wrapped in the atlassian commands, or add additioanl configuration to your maven settings.xml or your pom.
Look into the code of the sdk to find details.
Have you added the atlassian maven repository?
Taken from sdk/apache-maven/conf/settings.xml:
... ... <repositories> <repository> <id>atlassian-public</id> <url>https://maven.atlassian.com/repository/public</url> <snapshots> <enabled>true</enabled> <updatePolicy>never</updatePolicy> <checksumPolicy>warn</checksumPolicy> </snapshots> <releases> <enabled>true</enabled> <checksumPolicy>warn</checksumPolicy> </releases> </repository> <repository> <id>atlassian-plugin-sdk</id> <url>file://${env.ATLAS_HOME}/repository</url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>true</enabled> <checksumPolicy>warn</checksumPolicy> </releases> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>atlassian-public</id> <url>https://maven.atlassian.com/repository/public</url> <releases> <enabled>true</enabled> <checksumPolicy>warn</checksumPolicy> </releases> <snapshots> <updatePolicy>never</updatePolicy> <checksumPolicy>warn</checksumPolicy> </snapshots> </pluginRepository> <pluginRepository> <id>atlassian-plugin-sdk</id> <url>file://${env.ATLAS_HOME}/repository</url> <releases> <enabled>true</enabled> <checksumPolicy>warn</checksumPolicy> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories> <properties> <downloadSources>true</downloadSources> <downloadJavadocs>true</downloadJavadocs> </properties> </profile> </profiles> ...
I do not use the Atlassian SDK because throws an error with the class org.codehaus.classworlds.Launcher (class not found or loaded)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there a reason for not using the SDK?
It is quite easy to install and may get your setup working.
See: https://developer.atlassian.com/display/DOCS/Set+up+the+Atlassian+Plugin+SDK+and+Build+a+Project
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Philipp! I added the repositories and repositories plugins to settings.xml and Maven has been downloaded many artifacts, but imports continue failing, the "com.atlassian.jira.plugins..." and "com.example.plugins ..." imports.
Can be for not using the Atlassian SDK?
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks rambanam and Philipp!
The last dependency has not solved the problem (I already used the r03 version of it).
I'm not using the Atlassian SDK, but I have run the same commands in Maven: "eclipse: eclipse" and "package", and clean the project in ecilpse, refresh, close&open...
Desperate!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe try to build your plugin with
atlas-mvn package
from terminal, then the atlassian deps will be resolved. Don't know if this is done differently with eclipse.
After this, the deps should be available from your local maven repo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try with following code
<dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>10.0.1</version> <scope>provided</scope> </dependency> <dependency> <groupId> org.apache.httpcomponents </ groupId> <artifactId> httpcore </ artifactId> <version> 4.0.1 </ version> <scope>provided</scope> </ dependency>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
dont forget to run atlas-mvn eclipse:eclipse run once you change pom.xml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks rambanam prasad!
But this has not solved the problem. Some of the libraries not working right now used to work before.
The libraries that fail with the pom.xml that you show me are:
com.google ...
com.atlassian.jira.plugins ...
com.example.plugins ...
Previously I solved the com.google libraries with dependencies:
<dependency>
<groupId> com.atlassian.jira </ groupId>
<artifactId> jira-api </ artifactId>
<version> 5.0 </ version>
<scope> provided </ scope>
</ dependency>
<dependency>
<groupId> com.google.guava </ groupId>
<artifactId> guava </ artifactId>
<version> r03 </ version>
</ dependency>
<dependency>
<groupId> org.apache.httpcomponents </ groupId>
<artifactId> httpcore </ artifactId>
<version> 4.0.1 </ version>
</ dependency>
But with these I lack the following:
com.atlassian.jira.plugins ...
com.example.plugins ...
:(
Any idea?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the pom.xml should be something like this
https://github.com/atlassian/jira-suite-utilities/blob/master/pom.xml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.