Last updated Mar 13, 2024

Building Bamboo In IDEA - Troubleshooting

Below are some known errors and possible solutions.

Running the Maven Commands


Error:

1
2
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/com/atlassian/pom/atlassian-closedsource-pom/12/atlassian-closedsource-pom-12.pom
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: com.atlassian.pom
ArtifactId: atlassian-closedsource-pom
Version: 12

Reason: Unable to download the artifact from any repository

  com.atlassian.pom:atlassian-closedsource-pom:pom:12

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

Solution: You are missing the settings.xml file in your .m2 directory. You can find it attached to this page: Setting up Bamboo Development Environment in IDEA


Error:

1
2
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
    at com.sun.tools.javac.util.Name.fromUtf(Name.java:84)
    at com.sun.tools.javac.util.Name$Table.fromUtf(Name.java:494)
    at com.sun.tools.javac.util.ByteBuffer.toName(ByteBuffer.java:150)
    at com.sun.tools.javac.jvm.ClassWriter.typeSig(ClassWriter.java:403)
    at com.sun.tools.javac.jvm.ClassWriter.writeCode(ClassWriter.java:1025)
    at com.sun.tools.javac.jvm.ClassWriter.writeMethod(ClassWriter.java:938)

Solution: Set your MAVEN_OPTS to increase your memory and rerun the failing command

1
2
export MAVEN_OPTS="-Xmx1024M -XX:MaxPermSize=512m"

Error:

1
2
Missing:
----------
1) javax.mail:mail:jar:1.3.3

  Try downloading the file manually from: 
      http://java.sun.com/products/javamail/downloads/index.html

  Then, install it using the command: 
      mvn install:install-file -DgroupId=javax.mail -DartifactId=mail \
          -Dversion=1.3.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:       mvn deploy:deploy-file -DgroupId=javax.mail -DartifactId=mail \
          -Dversion=1.3.3 -Dpackaging=jar -Dfile=/path/to/file \
           -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
    1) com.atlassian.bucket:atlassian-bucket:jar:0.17
    2) javax.mail:mail:jar:1.3.3

Solution: Due to licensing restrictions, we are not allowed to re-distribute native SUN libraries through our maven2 public repositories. You will need to download the javax.mail (version is displayed in the error) manually. Please visit our confluence page on Working with Sun JAVA libraries for further details.


Error:

1
2
Downloading: http://jets3t.s3.amazonaws.com/maven2/org/ddsteps/ddsteps-httpserver-mock/1.0-m1/ddsteps-httpserver-mock-1.0-m1.jar
INFO ------------------------------------------------------------------------
ERROR BUILD ERROR
INFO ------------------------------------------------------------------------
INFO Failed to resolve artifact.

Missing:
----------
1) org.ddsteps:ddsteps-httpserver-mock:jar:1.0-m1

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.ddsteps -DartifactId=ddsteps-httpserver-mock -Dversion=1.0-m1 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.ddsteps -DartifactId=ddsteps-httpserver-mock -Dversion=1.0-m1 -Dpackaging=jar -Dfile=/path/to/file -Durl=url -DrepositoryId=id

Path to dependency:
1) com.atlassian.bamboo:atlassian-bamboo-core:jar:2.2.3
2) org.ddsteps:ddsteps-httpserver-mock:jar:1.0-m1

Solution: Grab repo.ddsteps.org/maven/release/org/ddsteps/ddsteps-httpserver-mock/1.0-m1/ddsteps-httpserver-mock-1.0-m1.jar Then mvn install:install-file -DgroupId=org.ddsteps -DartifactId=ddsteps-httpserver-mock -Dversion=1.0-m1 -Dpackaging=jar -Dfile=/path/to/file Then retry the build.


In IDEA


Error: Solution: If the offending module is the atlassian-bamboo-web-app module check the path to see where its looking for the web.xml file. If its any other module (e.g atlassian-bamboo-web-server) you can just delete the reference to the file. In you project configuration.

Rate this page: