It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

atlas-package no jar file

Hi, I am learning and using SDK to develop a plugin for bamboo.

When I atlas-package in my helloword project, it build successfully, but there is no jar file in the target directory.

I can export the jar file from the eclipse and it works, but I can never use atlas-package to create the jar. Why the atlas-package does not work? I need help, thanks.

 

[INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for helloworld:helloworld:pom:1.0.0 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp iler-plugin is missing. @ line 76, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten t he stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support buildin g such malformed projects. [WARNING] [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea ded.SingleThreadedBuilder with a thread count of 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building helloworld 1.0.0 [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.710 s [INFO] Finished at: 2015-03-25T10:20:05-07:00 [INFO] Final Memory: 10M/149M [INFO] ------------------------------------------------------------------------

 

2 answers

1 vote
Daniel Wester Community Leader Mar 25, 2015

Can you post the pom.xml ? Does anything get created in the target folder? Which SDK version are you using?

Thanks, I have figured out that: in my pom.xml, if I keep the <packaging>atlassian-plugin</packaging> element as this package, it will create the jar. If I change the packaging to something else such as pom or war, it will not create the jar file. That is really strange. because "-" cannot be part of a package name.

Daniel Wester Community Leader Mar 25, 2015

packaging doesn't mean package name - it's how maven should 'package' it. atlassian-plugin adds a bunch of magic related to usage manifest generation which Maven won't normally do.

Thanks, I have figured out that:   in my pom.xml, if I keep the <packaging>atlassian-plugin</packaging> element as this package, it will create the jar. If I change the packaging to something else such as pom or war, it will not create the jar file. That is really strange. because "-" cannot be part of a package name.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Unable to add or edit Bitbucket Cloud repository in Bamboo

On 31 May, a GDPR-related change went live in the Bitbucket Cloud API that resulted in users not being able to create or edit Bitbucket Cloud Linked repositories in Bamboo. This API update removed t...

677 views 2 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you