-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intellij + jgitver + multi-module reports problem "detection of jgitver old setting mechanism" #70
Comments
I already saw such kind of errors, I'll try to understand how jgitver is launched when used inside IDEA, not sure it is launched as maven core extension as expected. |
FWIW it seems to work fine on non-multi-module projects |
On the other hand, I have no problems in IDEA for project: https://github.com/McFoggy/GuardEE |
Indeed, its a single module project. |
@vromero what do you mean? it is a multi-module wit 2 sub modules: |
You are right, my bad. |
I need to dig/debug the loading mechanism of IDEA. The error states that the plugin is active but not as a core extension. One possibility could be perhaps just to log the fact instead of throwing a build failure. I would prefer in such case to be able to detect the usage from within an IDE loading (badly) project metadatas than from normal usage where I would like to keep the error. |
Manual intervention feels like a deal breaker for us.
Sadly I'm not an expert in extensions, any idea if there is any kind of expression language or profiling that we can leverage there to automatically disable execution of jgitver if |
Where do you see a manual intervention? It is just a configuration of your IDEA installation. And if really your developers cannot even modify a setting in their IDEA because you control all by automation, I am sure this settings is part of some IDE config file. |
I really appreciate your help but having to change vm options in the IDE seems to manual intervention to me. Have you found the root cause of this issue while idea compiles with his own maven? Maybe there is a env var that we can set from outside the IDE. |
Hi @McFoggy, please don't missunderstand me, I'm grateful for the help and the software (that is great BTW). I think we are on the same page on this, the manual intervention is the IDE manual configuration. This requires documentation that developers shall read (and very likely won't read). Back in the day there was the idea maven plugin, I checked this morning and not its retired so AFAIK there is no way from maven to suggest a VM option to intellij but of course I might be wrong. I think we can agree that automation is the ideal state to be pursued. Shall we perhaps raise this issue to intellij? |
The problem is that IDEA or Eclipse or Netbeans, during loading of projects DO NOT exactly execute the normal build system, maven in our case. They use their own modified versions of those build systems in the best case to extract metadatas from the project descriptors, the poms here. In the worst case their just try to parse the descriptors manually. The parameter I proposed you to use has to be set only ONCE and interfere only with the loading mechanism not the builds. I think it is really something acceptable. If it is not enough for you then please open an issue on IDEA side. |
Sure thing, thanks |
@McFoggy apologies for commenting in an closed issue. I'm doing the following:
Am I missing something? |
I again see it also. |
@vromero Please re-test with |
Will do a bit later today. We are talking to the idea guys here, just in case you want to chime in. |
@vromero as I stated before, the test to skip jgitver was made against maven session userproperties ; in IDEA it looks like this is not set and that's why I added a test in latest commit against System properties that were filled. Let's see what they will say. |
@McFoggy we spoke with intellij guys and they found the main problem. Everything is explained in the issue that @vromero talked about before. P.S.: version can be found here: Tested version:
|
Thx I'll test it ASAP. Hope you will be now able to work correctly with jgtiver inside IDEA as you expect. |
@fededonna @vromero unfortunately I still have issues with this version if I remove the I still find that jgitver does load correctly with the embedded maven version of IDEA.
|
@McFoggy @vromero according to the idea guys the version with the fix has not been released yet. Here is the issue to keep track. It will be RC on the 23rd. |
Ok but I have tested the exact same version as you mentionned (the current EAP one) and it was not correct during my tests. |
Yes, my mistake. I still had the flag. As they say in the last comment the version will be 173.4548.5 that is coming out as an RC on the 23rd of January. |
@McFoggy @vromero 2017.3.4 RC is out. I tested it several times and jgitver is working. |
I'll give it a try. Thx for info. |
|
Issue
version:
1.1.5
usage context:
2017.2.4
Problem description:
When using a multi-module maven project in the latest IntelliJ (older versions also tested) that uses jgitver-maven-plugin an error is reported in the Maven tab: "detection of jgitver old setting mechanism".
This generates a number of problems for the user as most of the project data cannot be inferred.
The project does work correctly using the command line.
I have created a sample project in order to reproduce it, just follow these steps:
git clone https://github.com/vromero/jgitver-intellij-error.git
The text was updated successfully, but these errors were encountered: