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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,971
Community Members
 
Community Events
184
Community Groups

Error: Could not find or load main after upgrading to Java 1.8

New to bamboo after upgrading bamboo project to Java 1.8 and upgrading to Maven 3 resulting jar file compiled in bamboo not including main project class in jar file. Resulting in error when attempting to execute jar:

Error: Could not find or load main class com.abcinc.filetester.FileTester

The main class definition is added to the manifest file but actual path is not included in the jar file produced. Compiling the project in netbeans resulting jar file works without issue.

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Built-By: bamboo
Created-By: Apache Maven 3.3.9
Build-Jdk: 1.8.0_191
Main-Class: com.abcinc.filetester.FileTester

<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>com.abcinc.filetester.FileTester</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>

1 answer

0 votes
Foong
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 15, 2019

Check if the Maven Executable path is correct as stated in Maven task fail with Could not find or load main class

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events