Autoscroll from source for "Maven Projects" view in IntelliJ Idea - maven

I'm a pretty experienced Eclipse user, and just moved to IntelliJ Idea (or at least, trying to).
In Eclipse I'm used to "Link with Editor" feature of Projects view. I've just found out that the similar feature in Idea is called "Autoscroll from source" (a bit vague, but OK). It highlights the currently opened file in the "Project" view.
Our project consists of approximately 30 Maven modules, so I'd like to find out, whether there is the same option for "Maven Projects" view. I checked the Maven options, but couldn't find anything like that.
EDIT
to see what I mean, take a look at this screenshot:
Project view is successfully synchronized, when I edit pom.xml of ws-consumer project, but the selection in Maven Projects still highlights the pom.xml of previous project.

I believe there's no such feature. You can create a new Enhancement Request here.
You can jump to the relevant project manually using Select Target feature - Alt F1 and then Maven Projects.

Related

Where do IntelliJ IDEA store "Use project settings" settings

I'm trying to make Maven run faster by "work offline" & "skip tests" inside IntelliJ IDEA 2019.
Online guides tell me to go into "Run > Run/Debug Configurations" and change appropriately.
All of them are grayed out, except for a checked "Use project settings". I figured I would like to change the "project settings" because its not something I want to use on all projects.
But I cannot find where do I change the project settings.
I've tried "File>Project Structure" and I can't find anything similar. Googling yield nothing of interest either. Can someone point me to the right direction?
Picture showing the "Use project settings" but not where they are stored
When you import a project into your IntelliJ IDE an .idea folder and a .iml file will be created. I think the information will be in there.
Here a link to another question which also catch up this theme: Other question
NOTE: #Ersoy and #Mafick explained on the actual file location, which also addresses this question. Here's where to find them in IntelliJ GUI.
After some fiddling around after I gave up, found them in
"File>Settings>Build,Execution,Deployment".
Where to find the project-specific build settings in IntelliJ IDEA

How to view maven dependency hierarchy in intellij

I can see the dependency hierarchy in eclipse, how can I do it in intellij ?
I also like the Maven Helper Plugin.
Allows you to see dependencies as a tree, see conflicts, search in them. It looks a lot like the Eclipse tooling.
Notice the Text and Dependency Analyzer tabs that appear at the bottom of the POM editor panel. Click the analyzer tab to see results as shown in this screenshot.
You can try:
Menu -> View -> Tool Windows -> Maven Projects
And then you can see new view openned.
Open your Dependencies tree, and you can see all the dependency hierarchy.
Offical documentation: View Maven dependencies as a diagram
Open the pom.xml, right click anywhere in the editor and choose "Diagrams > Show Dependencies".
It opens a dependency tree like those I'm attaching.
The main point is that this context menu appears only on opened pom.xml file (at least I couldn't managed to open it from anywhere else), if you just click on the file in the project tree, it won't be present.
Please note: You need to have UML Support and Maven Integration Extension enabled for this.
Use the shortcut Luke! Ctrl + Alt + Shift + U
Or select View -> Tool Windows -> Maven Projects
...here you can either:
A) expand the Dependencies sub-tree,
or
B) select the project ("spring-boot" in my case), a new icon reveals itself
Select Module or Directory and then Analyze from main menu
I love this plugin Maven Helper, but for some reason it was crashing my IntelliJ:
IntelliJ IDEA 2020.2.1 (Community Edition)
Build #IC-202.6948.69, built on August 25, 2020
I tried updating from the marketplace from within IntelliJ, but for some reason it didn't help.
I managed to solve this by installing it from the plugin website Maven Helper by clicking on "Install to IDE".
As mentioned #Ondrej Burkert the Maven Helper Plugin you can select the pom.xml file and if the editor is open there are two tabs at the bottom. First is 'Text' and second is 'Dependency Analyser'. In the tab 'Dependency Analyser' you have a tree of all dependencies like in eclipse.
Menu -> View -> Tool Windows -> Maven Projects is impractical and must be collapsed one by one. I prefer the plujin mentioned by Basil Bourque in this post.

How to get the Maven project window in Intellij 14 | Update: cannot see the right side "tab bar" with Maven project

I have a very simple question, but I Googled and somehow I couldn't find it. I was wondering how can I get the
in Intellij 14 or something similar?
I saw it in a tutorial, but couldn't find the panel. In my case when I followed this video exactly, I couldn't see the panel and I couldn't find it anywhere. I have IntelliJ 14.
UPDATE
I just experimented a bit with the Intellij interface but I can't seem to see the right hand side bar. See
I had similar problem until I right-clicked the option in POM "Add as Maven Project".
Notice: IDEA 2019.2 and I couldn't even find Maven in "Tool Windows" of the (existing) project before it.
First, make sure you have enabled maven plugin in
File → Settings → Plugins → Maven Integration
If so and still the tool window is hidden then
go to View → Tool Windows → Maven Projects to open it.
For those stuck with this issue, enable View -> Tool Buttons.
Finally found the solution, right-click on the pom.xml file (parent pom.xml if it is a multi-module project) and hit "add as a maven project".
You can find the Maven Projects pane by going to Help > Find Action or press Ctrl + Shift + A and type in "Maven Projects". However I can't see it anywhere in the elaborate menu's.
I had the same problem with a maven project, the tab wasn't showing up and even in the View->Tool windows menu, there was no maven item.
After searching the internet i could not find a solution but then i looked in Intellij idea
and noticed a Even Log showing a number in a red circle, i clicked it and then read an error message:
Non-managed pom.xml file found:
Add as Maven Project
check out solution proposed by invzbl3, It might help.
Simple solution to see maven on intelliJ is go to your right click on your pom.xml and then click on Add as Maven project.
Very simple. NO PLUGINS.
Maven comes by default so you should press two times the shift key and write "maven".
Then import the maven project ".pom" and the bar cames automatically after selecting the pom.
The question asked is how to show the sidebar, not show the Maven Plugin. On my version of Intellij this is enabled with the following:
View -> Appearance -> Tool Window Bars
if you have a pom file in your project, right click the file, click "add as maven project"
This got it back for me. None of the other solutions worked. I had no warnings for unmanged poms, toggling toolbars did not help and the maven option just where it should be anywhere!
It's a bit late, but I had the same problem with missing sidebars. At least in IDEA 2017.3 there is an icon on the bottom left of the screen that toggles the sidebars. That's how I got it back.
Right-click on your project > Add Framework Support > Maven
If View → Tool Windows → Maven Projects doesnt work that means tools button is deselected
go to View -> Tool Buttons and select it . You should be able to Maven window now
Try with File-->Project structure --> Modules-> Remove Parent/existing modules and add parent/all modules again
None above helped.
In my case I had to ad Java SDK. It keeps disappearing for some reason.
Right click on project folder -> Open Module settings -> Project in this window define SDK under SDK:
Maven toolbar appeared after doing that.
Weird but this works at times:
Disable File → Settings → Plugins → Maven Integration first and restart Intellij. Then re-enable it back and restart - this might fix the issue.
Enable maven plugin first in
File → Settings → Plugins → Maven
Also, make sure you enable Tool Buttons in
View → Tool Buttons
Check if at the bottom line of Intellij, it says "non-managed pom files found."
You can then "Add as a Maven Project"
Make sure your Maven plugin is enabled as well. In my case, it was disabled for an unknown reason. To enable it: Settings → Plugins → Installed (Scroll down to Bundled section)
If you not use Maven, can delete it.
open ProjectName.iml file in root of project of module.
then remove "org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true"" from file.
save and reBuild project.
Looks like my maven integration plugin got disabled.
Go to IntelliJ Idea --> Preferences
and enable Maven integration plugin.
Looks like Intellij Idea disables dependent plugin also, when one of the plugins are disabled.
Make sure that the home directory of the project is correct. I was creating Intellij project one level above the actual maven project folder and that's why the maven tool window wasn't showing.
No Need to do any settings i have attached the image of intelij in that marked area click on that multi window suport then you will be able to access the panels for all

Cannot see build phases, general settings in Xcode 6.1

I just downloaded the XCode 6.1 seed.
I am have this issue with one specific project.
The project information view is absolutely different.
The General, Build phases sections are all missing.
All I can see is info and build setting.
Anyone else faced this issue?
None of my other old projects has this issue.
It's a sneaky one - you click the show/hide Project Targets List icon and it pops out the Project name and its targets underneath.
Click one of those and you'll get the Build Phases option showing up.
OP's problem was that the Build Phases did not show up when opening the project settings.
Simple Fix:
Expand the left side bar.
Your project file is selected. (in my case it's called "opengl-series")
This is the problem.
You want to select the App. (in my case "CGTutorial")
Build phases now shows, along with the other settings.

What disables "Run Project" in Expression Blend 3

I am developing a Sketchflow (Silverlight) project in Expression Blend 3. It has been working fine up until today, now I cannot run the project. Specifically in the Project menu the "Run Project" option is now greyed out (all the other options are fine). F5 also doesn't have any effect.
I've obviously messed up the code somewhere but I can't find any information on what could cause the "Run Project" option to be disabled. This would obviously help the troubleshooting. Does anybody know what controls this functionality?
I can build the project no problem. And if I package the project (so it runs outside Expression) this also works fine. It is just launching it from Expression that doesn't work.
Right-click on the project (in the project pane) and verify that "Startup Project" is checked. I had obviously accidentally unchecked it at some point.
Usually when you create new Silverlight solution Blend or VS would create a solution with two projects in it. One would be called something like MyProject and another would be called smth. like MyProjectScreens.
The MyProjects doesn't contain much of Silverlight code, it's rather meant to be just "wrapper" (or in other words "it contains bootstrapping code for your actual SL screens") with Default.html and Default.aspx and App.xaml. And MyProject is the startup project.
The MyProjectScreens project in turn - is your actual SL project. (And it is NOT startup project).
THE SOLUTION TO OP'S PROBLEM, Maybe Blend somehow messed up solution configuration files (even though VS was fine with them) and my MyProject project has disappeared from the solution explorer. All you have to do is to right click on solution, click "Add Existing Project" and navigate to my solutions folder and choose the project file. (Yeah and also make sure that when MyProject is added it is marked as "Startup Project" (as #Hugh mentions).
HTH

Resources