I've installed the m2eclipse plugin with WTP integration in my eclipse workbench. When I use to run the project on a server, the dependencies which has to be provided at runtime (e.g. spring) are not deployed. Is this working like intended? Maybe some of you can provide me the right way.
Is this working like intended?
No.
Maybe some of you can provide me the right way.
Not with the level of detail you provided (like your POM, especially your spring dependency, your eclipse version, the m2eclipse version...).
P.S. On the basis of your wording, I suspect that you are using a runtime scope for some dependencies and you could face MNGECLIPSE-1231. If you do so for the Spring artifacts, then I don't know why and I'd suggest to use the default scope. But this is a big guess.
Right click on your project, select "Properties"
From the properties menu click "Deployment Assembly"
Click "Add" -> "Java Build Path Entries" then click "Next"
Select "Maven Libraries" on the list and click "Finish"
Related
I'm trying to run example of web-app with use of Spring MVC on Spring tool Suite 3.3. I found someone who explains step by step how to do it, but at some point he wrote:
b) Right click on spitter-web project, select Properties>Deployment
Assembly
-Add... Folder "/src/main/webapp", Deploy Path is /
Unfortunately there isn't Properties>Deployment Assembly option in my STS - he used 2.8.1 version. Where I can find that option, or it was renamed ?
Properties is usually at the bottom of the drop down list when right clicking a project.
Alternatively, right click project, then go "build path" -> "configure build path". A new menu will come up, and if you look on the left hand side, you should see deployment assembly there.
I cannot find it. Under PDE tools (after right clicking on project), I only have Open Manifest, Organize Manifests, Externalize Strings, Internationalize, API Tools Setup, Update Classpath, and Open Dependencies.
Do I need a specific update?
Right click the project, the converter option is in the "Configure" menu. If your project is already a plug-in project this option will be hidden.
If you can see the "PDE tools" menu then your project is probably already converted. You can check it in project properties. It will have a "Plug-in Developement" page if the project is a plugin project. Besides that the "Builders" page will have the plug-in builders configured.
Does IntelliJ IDEA have a short-cut to force maven project reimport (to reload dependencies). I happen to be working with two dependant projects and I make that action many times during the day.
Thanks in advance.
You can define your own key map in IDE Settings. To do it :
Menu File > Settings
Under IDE Settings, choose Keymap
Expand the tree to Plug-ins > Maven integration
You normally see "Reimport All Maven Projects"
Right-click on this item and choose a Key or Mouse shortcut.
(I did this with IDEA EAP 12, under windows)
I looked throught keymap reference(Help->Dafault Keymap Reference) and didn't find anything with maven. But when I make some changes in my pom.xml IDEA shows dialog in which it offer to import all dependencies.
other maven settings you can find in File->Settings->Maven->Import or use combination Shift+CTRL+A and in input field write maven.
With newer versions of Intellij and macos, hit shift-shift and then type "reload maven" to get to the "Reload All Maven Projects" action. This will refresh the dependencies - no need to reimport.
I am in Eclipse Indigo and I have installed m2eclipse plugin. I saw in Eclipse Helios there is an option Maven in the right click menu, when I clicked on a Project, but this option is not present now.
I have installed Maven from both of the marketplace and also from adding site in Install new software option in Eclipse(Help->Install New Software).
What I am doing wrong.
This question was asked before in SO, but I tried the solution provided there.
Is this option is really not present? What I want is to enable Maven Dependency Management of a Dynamic Web Project of Eclipse.
You have to do a right click on the project, then choose Configure → Convert to Maven project
Right Click on the Project --> Configure --> Convert to Maven Project.
It will show Maven Related Options.
One way is to import the project as Maven project.
If you are trying to install in Eclipse older versions, use YOXOS Marketplace - by EclipseSource. Search for "Maven" in marketplace. You will get Maven Integration for Eclipse provided by Sonatype. Use that to install.
After installing m2eclipse plugin, go to Window -> Preferences. Check "Maven" is enlisted at the left panel list
this happened to me because I imported a parent folder as a project. so all my projects where sub directories of this parent folder and not a project them selves. after deleting them (only) from the workspace and re importing them as separate projects, maven worked fine.
Is it possible to put Eclipse GWT project under EGit?
If I select an option "Use or create repository in parent folder of a project", Eclipse says "Creation of repositories in the Eclipse workspace is not recommended" and does not allow me to go further.
If I deselect this option, it moves the project files into a separate folder of Git repository and breaks the classpath. For example, Web App Libraries entry remains pointing to the old place and does not fix it upon recreate.
Trap! How to get out?
When it shows that warning, you need to hit the "Create Repository" button at the bottom of the dialog. That will allow you to select your project as your repo and use Finish.
See EGit User Guide/Repos for a discussion on why it's better to have an external repo.
PW
You have to select project folder in the project view, then right click 'Team>Add'. 'Team>Add to index' in newer eclipse versions. Make a commit and the Web App Libraries fixes itself.