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

Bambo 3.1 plugin bundles all dependencies

Eduardo Mayor July 7, 2011

Hi there,

I am trying to create a plugin for Bamboo 3.1 that includes a new Task and everytime I package the plugin ALL dependencies get bundled inside the jar. If I remove the TaskType class and try again with atlassian.product.version = 3.0 everything works as expected but, then, I cannot use any type specific to 3.1.x. Am I missing something?

This is the pom for my plugin:

<?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.bamboo.plugins.base</groupId>
<artifactId>bamboo-plugin-base</artifactId>
<version>10</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<groupId>novagenia-bamboo-plugins</groupId>
<artifactId>extratask</artifactId>
<version>1.0-SNAPSHOT</version>

<name></name>
<packaging>atlassian-plugin</packaging>

<dependencies>
</dependencies>
<properties>
<atlassian.plugin.key>novagenia-bamboo-plugins.extratask</atlassian.plugin.key>
<atlassian.product.version>3.1</atlassian.product.version>
<atlassian.product.data.version>3.1</atlassian.product.data.version>
</properties>
</project>

Any insight will be appreciated. Thanks in advance.
Eduardo

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Eduardo Mayor July 10, 2011

Just in case anyone is interested, I found a fix to the packaging problem for Bamboo 3.1.x. Apparently, the POM structure has changed and, from version 3.1, the parent artifact bamboo-plugin-base must be replaced by the more generic com.atlassian.pom. This, in turn, removes the type dependencies for Bamboo which must be set explicitly in the plugin POM. The POM should look 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>
<artifactId>atlassian-public-pom</artifactId>
<groupId>com.atlassian.pom</groupId>
<version>27</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>novagenia-bamboo-plugins</groupId>
<artifactId>extratask</artifactId>
<version>1.0-SNAPSHOT</version>

<dependencies>
<dependency>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>atlassian-bamboo-api</artifactId>
<version>${bamboo.version}</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>atlassian-bamboo-core</artifactId>
<version>${bamboo.version}</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.bamboo</groupId>
<artifactId>atlassian-bamboo-web</artifactId>
<version>${bamboo.version}</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
</dependencies>
<properties>
<bamboo.version>3.1</bamboo.version>
<bamboo.data.version>2.6.1</bamboo.data.version>
</properties>
</project>

Hope this helps.

Regards,

eduardo

TAGS
AUG Leaders

Atlassian Community Events