Issue Importing Maven (Atlassian JIRA Plugin) Project into Eclipse IDE - eclipse

I am wanting to create a JIRA plugin with the Atlassian JIRA SDK. After creating the project I am encountering several errors when trying to import the project as a Maven project into the Eclipse IDE (Kepler)
Here are the steps that I am taking to produce the error...
In PowerShell I create the skeleton with the "atlas-create-jira-plugin" command.
After creating the plugin skeleton I run "atlas-mvn eclipse:eclipse"
In Eclipse I select Import > Existing Maven Projects then I choose my plugin.
At this point I receive the following errors ...
No marketplace entries found to handle maven-jira-plugin:4.2.20:compress-resources in Eclipse. Please see Help for more information.
No marketplace entries found to handle maven-jira-plugin:4.2.20:copy-bundled-dependencies in Eclipse
No marketplace entries found to handle maven-jira-plugin:4.2.20:copy-test-bundled-dependencies in Eclipse
No marketplace entries found to handle maven-jira-plugin:4.2.20:filter-plugin-descriptor in Eclipse
No marketplace entries found to handle maven-jira-plugin:4.2.20:filter-test-plugin-descriptor in Eclipse
No marketplace entries found to handle maven-jira-plugin:4.2.20:generate-manifest in Eclipse
No marketplace entries found to handle maven-jira-plugin:4.2.20:generate-rest-docs in Eclipse
No marketplace entries found to handle maven-jira-plugin:4.2.20:generate-test-manifest in Eclipse
I have tried to disable the Maven Nature, then run atlas-mvn eclipse:clean then convert back to a Maven project, but the errors come back when doing so. Any suggestions on how to fix this would be appreciated.

You probably need to update eclipse configuration for Maven (new version is Atlassian SDK 5.0.0):
https://developer.atlassian.com/display/DOCS/Set+Up+the+Eclipse+IDE+for+Windows#SetUptheEclipseIDEforWindows-Step4:InstalltheMavenEclipsePlugin

If you are using Atlassian SDK, you should use their maven wrapper which come together with the SDK installation.
You are seeing that problem in your Eclipse is because your local maven (which is used by your Eclipse, or maybe embedded maven) settings doesn't contain Atlassian info.
Do refer to this for how to add in the Atlassian repo into your settings.xml.
Or you can run the atlas-mvn install to download Atlassian library into your local repository.
Or for quick work-around, you can just point your Maven to the Atlassian settings.xml as below:

I switched from using Eclipse to IntelliJ. IntelliJ makes importing Maven projects incredibly simple. If anyone else encounters this problem, I suggest switching to IntelliJ.

Related

Spring Starter Project in Eclipse -- Can not use Maven: M2E

Eclipse Luna 4.4.2 with Java JDK 1.7
I installed
Spring IDE plugin version 3.7.3
Pivotal Software Spring Tool Suite(STS 3.7.3)
plugins successfully, have no problem with switching to the Spring perspective and my File->new->projects has several spring related selections.
I have been building using maven with no problems. My maven version is 3.3.3. Checking the Help->Installation Details dialog shows eclipse m2e-workspace 0.3.1
When accessing the Eclipse Marketplace, the dialog shows Maven Integration for Eclipse(Luna and newer) 1.5 and the update button is greyed out and there is an uninstall button, so I have that installed.
When selecting Spring Starter Project, I get the creation dialog box with an error message at the top reading --
Can not import using Maven because Can not use Maven: M2E (Eclipse
Maven Tooling) is not installed
I have also lost my maven sub-menu when I right click on pom.xml. Its no longer there.
Any ideas on a solution before I start removing things/changing things and possibly making things worse? Explanations also welcome.
Thanks
When installing the Spring IDE plugin into Eclipse that already has the maven plugin installed results in a serious conflict as Spring IDE also installs maven. It may be resolvable, but I was unable to find a solution.
I did uninstall the Spring IDE, but the problem was not cleared on Eclipse restart. I deleted the corrupted eclipse installation, while keep its workspace intact.
I finally installed STS w/eclipse and pointed it at my previous workspace.
I had the same issue and I have no idea of how to fix that.
To turnaround the this problem, I downloaded the Spring Tool Suiteā„¢ by the url: http://spring.io/tools/sts/all
This Suite have all the tools to build any Spring project that you'll want.
Hope this work for you.

everything related to maven is missing from eclipse

For some reason everything related to maven has disappeared from my eclipse kepler installation. I can't update the project or build it, I can't start a new maven project and there is no trace of any maven related menu.
Any idea how to solve it?
Thanks.
Try in the Eclipse MarketPlace to see if the Maven Integration for Eclipse is installed. If not, maybe you can install it. If it is installed, I can not help you, but my recomendation would be to get a new Eclipse from their web.

Regarding Maven

I am new to Maven and if you feel i am asking really basic question then please forgive me.
I am facing couple of problems with Maven mentioned below.
I am using Eclipse Luna 4.4.1 (Which comes with the Maven Plugin).Now i installed two plugins..out of which one is for subclipse(with SVNKit) and m2e-Subclipse which is used for integrating the maven with SVN.I downloaded the project in eclipse using svn plugin as "checkout as Maven project" and i could see the project being downloaded and now to remove all the errors related with the POM.XML i downloaded the Maven and given the local path of the Maven in the preferences > Maven > installations and changed the Global Settings and user settings files which are project specific.
1). Now even after doing all this circus i still can not see the Maven build options in my Eclipse.
2). I am not even able to clean the project from command prompt.
when i go to my project directory and type "mvn -version" which shows me the correct version of maven.
But when i try to clean it using mvn clean. it does not work.
Please help.
Regards.

Maven for Eclipse plugin m2ecplise installation

I want to try out this websocket implementation:
https://jwebsocket.org/documentation/installation-guide/eclipse
The project is provided with maven. Thus I want to install the m2eclipse plugin as suggested on their site.
The problem is that the provided link does not work:
http://m2eclipse.sonatype.org/sites/m2e
I also tried this one:
http://eclipse.org/m2e/download/
Both are not working.
Can someone give me a hint how to install this plugin?
That information is outdated, referring to Eclipse 3.3 and 3.5.
Maven integration is part of Eclipse itself now. If you download a current Eclipse bundle it can be part of it. http://www.eclipse.org/downloads/compare.php?release=kepler
If you downloaded the "classic" version go to Help > Install New Software, select the update site for your version (should be "Kepler") and select the Maven integration via filter or category ("Collaboration").

Problem installing Maven plugin (m2eclipse) in Eclipse (Galileo)

I have Eclipse Galileo (for Java EE Developers) installed, and I'm now trying to get the m2eclipse Maven plugin installed as well.
I follow the basic steps described at http://m2eclipse.sonatype.org/installing-m2eclipse.html, and it seems to be installing just fine. However, after restarting Eclipse after the install it doesn't seem to be anywhere. I should for instance have the ability to create a new maven project, but when the new-project wizard opens, there is no folder for Maven (I also cannot find any reference to it in the context menus of the existing projects I have).
When I click at Help > About Eclipse > Installation Details, I find "Maven Integration for Eclipse (Required)" in the tab "Installed Software", yet another thing pointing towards a successful installation (but I can't find it under the "Plug-ins" tab, should it be there too?)...
I feel like I'm just missing something very obvious, but right now I just don't see it...
I managed to find the answer to this myself:
I had put the Eclipse installation folder under c:\Program Files\, but when I moved it directly under c:\ instead, the plug-in installation worked just as it should. I assume that is because Eclipse wasn't allowed to write to its own installation folder (but I didn't get the usual question from Windows that something was trying to access Program Files either...).
In one way I feel like I should be a bit ashamed that I didn't think of this before. On the other hand though, there could have been some reasonable error message stating that something failed during the plug-in installation...
Well, I hope this at least helps somebody else as well :)
Did you check the m2eclipse installation requirements?
In particular, you need WTP.
"Maven integration for Eclipse" (core feature) and optional "Maven POM Editor" feature depend on the "Eclipse XML Editors and Tools" feature from WST
"Maven integration for WTP" feature provides Maven project configuration for WTP
Did you have a previous version of m2eclipse installed? Did you uninstall it before to install the latest version? Just in case, does the following note applies to you?
Note about 0.9.8 Workspace Incompatibility: If you are using
m2eclipse 0.10.0 with a workspace that
contains projects created under
m2eclipse 0.9.8, you must remove the
workspaceState.ser file. The
workspaceState.ser file is located
within the workspace directory in
$workspacedir/.metadata/.plugins/org.maven.ide.eclipse/workspaceState.ser.
If you remove this file, m2eclipse
0.10.0 will regenerate it as needed.
In my case, uninstalling the previous m2eclipse version didn't work and I had to start with a fresh Eclipse install (maybe try this also).
Regarding the plugin tab, this is what I have (to confirm that you should definitely find something):
alt text http://www.imagebanana.com/img/84h6mw8z/screenshot_008.png
Note that I also installed some extras from m2eclipse Extras Update Site: http://m2eclipse.sonatype.org/sites/m2e-extras
I was able to solve this problem by going into Program Files, right click on the eclipse.exe file and select "Run as administrator". When I restarted Eclipse it said I had no plugins installs so I reinstalled and my problems were solved.
PROBLEM SOLVED
I had this same problem and I used the following software site:
["M2Eclipse - http://download.eclipse.org/technology/m2e/releases/1.0] (without square brackets) to download the M2Eclipse plugin in Eclipse 3.7.0 (Indigo). For more information refer this.
To solve the problem of 'not getting Maven plugin running in eclipse' , it can be solved by altering admin rights to the .m2 folder . Right click on .m2 folder and go to network sharing. give all rights to all users. Restart eclipse and maven options will start to appear in Eclipse.