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

can't build plugin project

Donal Murtagh March 6, 2012

I've defined a pom.xml for my plugin. More specifically, it's a gadget packaged as a plugin. When I run "mvn package" I get the following error:

[WARNING] The POM for com.atlassian.maven.plugins:atlassian-pdk:jar:2.1.5 is missing, no dependency information available
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.arantech.gadget:arantech-gadgets:9.93 (c:\jira\arantech-gadget-src\pom.xml) has 2 errors
[ERROR]     Unresolveable build extension: Plugin com.atlassian.maven.plugins:atlassian-pdk:2.1.5 or one of its dependencies could not be resolved: Failure to find com.atlassian.ma
ven.plugins:atlassian-pdk:jar:2.1.5 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has
 elapsed or updates are forced -> [Help 2]
[ERROR]     Unknown packaging: atlassian-plugin @ line 19, column 16

It seems like <packaging>atlassian-plugin</packaging> is not being recognised because a required maven plugin is not being found. I've added the atlassian maven repo to the pom, so I'm not sure why the plugin isn't being resolved.

The pom.xml looks like this:

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

    <parent>
        <groupId>com.atlassian.jira.plugins</groupId>
        <artifactId>jira-plugin-base</artifactId>
        <version>13</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>com.arantech.gadget</groupId>
    <artifactId>arantech-gadgets</artifactId>
    <version>9.93</version>

    <name>My Gadgets</name>
    <packaging>atlassian-plugin</packaging>
    
    <properties>
        <atlassian.plugin.key>com.arantech.gadget.arantech-gadgets</atlassian.plugin.key>

        <!-- JIRA version -->
        <atlassian.product.version>4.0-SNAPSHOT</atlassian.product.version>
        <!-- JIRA functional test library version -->
        <atlassian.product.test-lib.version>3.13</atlassian.product.test-lib.version>
        <!-- JIRA data version -->
        <atlassian.product.data.version>3.13</atlassian.product.data.version>
    </properties>

    <repositories>
      <repository>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        <id>atlassian</id>
        <url>http://repository.atlassian.com/maven2</url>
      </repository>
    </repositories>
</project>

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
Thomas Wendel
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.
May 16, 2014

If you stumbled over this question because you are having trouble to load the plugin project in NetBeans due to unknown packaging atlassian-plugin, try the following:

  • Install the Atlassian SDK using the link Colin provided.
  • Configure NetBeans to use Maven that is bundled in the SDK
    NetBeans Maven settings
  • In the NetBeans project tree, navigate to the dependencies of the unloadable project and download all declared dependencies.
    NetBeans Download declared dependencies
  • Prime build the project.

Those steps did the trick for me.

2 votes
Colin Goudie
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 7, 2012

Download the Atlassian SDK and use it's bundled maven. It already comes configured to talk to Atlassian's maven proxy servers.

https://developer.atlassian.com/display/DOCS/Atlassian+Plugin+SDK+Documentation

i.e.

atlas-mvn package

0 votes
Anthony Whitford February 4, 2013

The bundled maven is very old (2.1.0) -- not sure why 3.0.4 or even 2.2.1 is not included...

But the special setting in the settings.xml is:

&lt;pluginGroups&gt;
     &lt;!-- The Atlassian maven plugins group used for all Atlassian Maven plugins --&gt;
     &lt;pluginGroup&gt;com.atlassian.maven.plugins&lt;/pluginGroup&gt;
  &lt;/pluginGroups&gt;

You can read more about plugin prefix mapping here.

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