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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

how to use atlas-mvn eclipse:eclipse in bamboo builds?

We are building plugin for jira in Bamboo by fetching code from Bitbucket repo and I need to connect Eclipse IDE so that all jira plugin will be in one place and it will be easy to resolve the errors.

When I fire atlas-mvn eclipse:eclipse command in the directory where I have fetched the code from Repo to local system then it is giving below error:-


Executing: "C:\Applications\Atlassian\atlassian-plugin-sdk-6.3.4\apache-maven-3.2.1\bin\mvn.bat" -gs C:\Applications\Atlassian\atlassian-plugin-sdk-6.3.4\apache-maven-3.2.1/conf/settings.xml eclipse:eclipse
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
[INFO] Scanning for projects...
[ERROR] The build could not read 13 projects -> [Help 1]
[ERROR]
[ERROR] The project com.sac.pc.jira:pc-jira-issue:1837.2.12.${build.number} (C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-jira-issue\pom.xml) has 3 errors
[ERROR] 'dependencies.dependency.version' for com.sac.pc:pc-salesforce:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira:pc-jira-issue:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-jira-issue\pom.xml, line 128, column 22
[ERROR] 'dependencies.dependency.version' for com.sac.pc:model:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira:pc-jira-issue:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-jira-issue\pom.xml, line 153, column 22
[ERROR] 'dependencies.dependency.version' for com.sac.pc.jira.notification:pc-jira-notification:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira:pc-jira-issue:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-jira-issue\pom.xml, line 159, column 22
[ERROR]
[ERROR] The project com.sac.pc.jira:pc-jira-pcazman:1837.2.12.${build.number} (C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-jira-pcazman\pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for com.sac.pc:model:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira:pc-jira-pcazman:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-jira-pcazman\pom.xml, line 74, column 13
[ERROR]
[ERROR] The project com.sac.pc.jira:pc-jira-email:1837.2.12.${build.number} (C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-jira-email\pom.xml) has 2 errors
[ERROR] 'dependencies.dependency.version' for com.sac.pc:model:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira:pc-jira-email:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-jira-email\pom.xml, line 74, column 13
[ERROR] 'dependencies.dependency.version' for com.sac.pc.jira.notification:pc-jira-notification:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira:pc-jira-email:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-jira-email\pom.xml, line 80, column 13
[ERROR]
[ERROR] The project com.sac.pc.jira.operation.items:pc-web-items:1837.2.12.${build.number} (C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-web-items\pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for com.sac.pc:model:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira.operation.items:pc-web-items:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-web-items\pom.xml, line 53, column 22
[ERROR]
[ERROR] The project com.sac.pc.jira.servlet.clone_pc:pc-clone-servlet:1837.2.12.${build.number} (C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\clone-pc-servlet\pom.xml) has 2 errors
[ERROR] 'dependencies.dependency.version' for com.sac.pc:model:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira.servlet.clone_pc:pc-clone-servlet:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\clone-pc-servlet\pom.xml, line 22, column 13
[ERROR] 'dependencies.dependency.version' for com.sac.pc.jira.operation.items:pc-web-items:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira.servlet.clone_pc:pc-clone-servlet:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\clone-pc-servlet\pom.xml, line 28, column 13
[ERROR]
[ERROR] The project com.sac.pc.jira.servlet.create_pc:create-pc-jira-servlet:1837.2.12.${build.number} (C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\create-pc-jira-servlet\pom.xml) has 3 errors
[ERROR] 'dependencies.dependency.version' for com.sac.pc:model:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira.servlet.create_pc:create-pc-jira-servlet:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\create-pc-jira-servlet\pom.xml, line 22, column 13
[ERROR] 'dependencies.dependency.version' for com.sac.pc.jira.operation.items:pc-web-items:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira.servlet.create_pc:create-pc-jira-servlet:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\create-pc-jira-servlet\pom.xml, line 28, column 13
[ERROR] 'dependencies.dependency.version' for com.sac.pc.jira:pc-project-tags:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira.servlet.create_pc:create-pc-jira-servlet:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\create-pc-jira-servlet\pom.xml, line 34, column 22
[ERROR]
[ERROR] The project com.sac.pc.jira.notification:pc-jira-notification:1837.2.12.${build.number} (C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-jira-notification\pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for com.sac.pc.jira.operation.items:pc-web-items:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira.notification:pc-jira-notification:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-jira-notification\pom.xml, line 49, column 22
[ERROR]
[ERROR] The project com.sac.pc.jira.customfield:pc-efforttype-cf:1837.2.12.${build.number} (C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-efforttype-cf\pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for com.sac.pc:model:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira.customfield:pc-efforttype-cf:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-efforttype-cf\pom.xml, line 107, column 22
[ERROR]
[ERROR] The project com.sac.pc.jira.customfield:pc-samapplication-cf:1837.2.12.${build.number} (C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-samapplication-cf\pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for com.sac.pc:model:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira.customfield:pc-samapplication-cf:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-samapplication-cf\pom.xml, line 117, column 22
[ERROR]
[ERROR] The project com.sac.pc.jira:pc-project-tags:1837.2.12.${build.number} (C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-project-tags\pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for com.sac.pc:model:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira:pc-project-tags:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-project-tags\pom.xml, line 22, column 13
[ERROR]
[ERROR] The project com.sac.pc.jira:pc-material-amendments:1837.2.12.${build.number} (C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-material-amendments\pom.xml) has 3 errors
[ERROR] 'dependencies.dependency.version' for com.sac.pc:model:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira:pc-material-amendments:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-material-amendments\pom.xml, line 22, column 22
[ERROR] 'dependencies.dependency.version' for com.sac.pc.jira.customfield:pc-samapplication-cf:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira:pc-material-amendments:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-material-amendments\pom.xml, line 89, column 22
[ERROR] 'dependencies.dependency.version' for com.sac.pc.jira.customfield:pc-department-cf:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira:pc-material-amendments:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-material-amendments\pom.xml, line 95, column 22
[ERROR]
[ERROR] The project com.sac.pc.jira.customfield:pc-department-cf:1837.2.12.${build.number} (C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-department-cf\pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for com.sac.pc:model:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira.customfield:pc-department-cf:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-department-cf\pom.xml, line 130, column 22
[ERROR]
[ERROR] The project com.sac.pc.jira:pc-pluralsight-reports:1837.2.12.${build.number} (C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-pluralsight-reports\pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for com.sac.pc:model:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira:pc-pluralsight-reports:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-pluralsight-reports\pom.xml, line 83, column 22
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

 

Anybody can help me out?

1 answer

Hi @Vedant Kulkarni ,

The error suggest dependencies cannot be found:

[ERROR] The project com.sac.pc.jira:pc-jira-issue:1837.2.12.${build.number} (C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-jira-issue\pom.xml) has 3 errors
[ERROR] 'dependencies.dependency.version' for com.sac.pc:pc-salesforce:jar must be a valid version but is '1837.2.12.${build.number}'. @ com.sac.pc.jira:pc-jira-issue:${sac.version}, C:\Users\VK8577\Documents\pcsystem\sac-pc\pc-jira\pc-jira-issue\pom.xml, line 128, column 22

Perhaps you could review if the versions you are given to your dependencies are correct and that your maven repository has those dependencies, if not, when issuing the atlas-mvn, maven will attempt on connecting with the repositories you have specified in C:\Applications\Atlassian\atlassian-plugin-sdk-6.3.4\apache-maven-3.2.1/conf/settings.xml.

For instance, from which Maven repository you are getting the dependency:

<dependency>
<groupId>com.sac.pc</groupId>
<artifactId>pc-salesforce</artifactId>
<version>1837.02.12.${build.number}</version>
</dependency>

For more information, please have a look at https://developer.atlassian.com/server/framework/atlassian-sdk/working-with-maven/

Kind regards,
Rafael

Hi @Rafael Pinto Sperafico

Thanks for the response.

 

This dependency com.sac.pc is on the local system and the version is changing according to Bamboo builds. That's why I am not getting how should I use in bamboo builds without these errors.

 

Regards,

Vedant

Hi @Vedant Kulkarni ,

This dependency com.sac.pc is on the local system and the version is changing according to Bamboo builds.

So you are building those dependencies (e.g com.sac.pc:pc-salesforce:1837.02.12.xxx) before calling atlas-mvn command? Meaning that if you go to the local Maven repository the dependency must be available in there so it can be used in by <dependency/> tag.

You must provided a dependency version that exists and can be referred, otherwise Maven will fail as it cannot find the version specified.

First of all, search for the dependency pc-salesforce in the box where you are running the command atlas-mvn and list all the version(s) available. If you find any, get the existent version and hardcode it to your pom.xml file. If you do not find any, search for the dependency in the repository you have specified in settings.xml and use the version you can find.

Please, have a look at https://maven.apache.org/guides/introduction/introduction-to-repositories.html

Kind regards,
Rafael

Hi @Rafael Pinto Sperafico

Yes correct I am building it before calling altas-mvn but I am building all plugin using one job in Bamboo because all are interdependent.

As you said, to provide a dependency version but version changes after every build so how should I use it?

 

Thanks,V

Vedant

Hi @Vedant Kulkarni ,

Thank you for your update.

Since you are building those dependency, you could have them installed in the Local Maven repository (https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html) upon compiled.

Check what is the local repository defined in C:\Applications\Atlassian\atlassian-plugin-sdk-6.3.4\apache-maven-3.2.1/conf/settings.xml or %USERPROFILE%\.m2\settings.xml

<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ${user.home}/.m2/repository
<localRepository>/path/to/local/repo</localRepository>
-->

If the Job where you are building com.sac.pc:pc-salesforce:1837.02.12.xxx and running atlas-mvn eclipse:eclipse command are in different boxes, you need to make the dependency available somehow so Maven can download the dependency and use it in atlas-mvn command.

Hope the above helps.

Kind regards,
Rafael

Suggest an answer

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

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

684 views 1 6
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