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

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.

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,499 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you