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>
Community moderators have prevented the ability to post new answers.
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:
Those steps did the trick for me.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
<pluginGroups> <!-- The Atlassian maven plugins group used for all Atlassian Maven plugins --> <pluginGroup>com.atlassian.maven.plugins</pluginGroup> </pluginGroups>
You can read more about plugin prefix mapping here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.