Skip to content
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 doesn't refer to correct version in maven repository #53

Closed
lebrot opened this issue Mar 16, 2017 · 4 comments
Closed

Intellij doesn't refer to correct version in maven repository #53

lebrot opened this issue Mar 16, 2017 · 4 comments

Comments

@lebrot
Copy link

lebrot commented Mar 16, 2017

version: 0.4.0
usage context: Intellij IDEA: 2016.1.4

Problem description: I have defined a dependency of one of my modules (let's refer it as A) with ${project.version} in other module (let's refer it as B).
Module A is not sub module of module B but they both share same root module.

As long as module A is imported in my intellij then module B recognize it and I can import and use its class and maven build goes fine.

I case this module A isn't exist in intellij but his artifact with generated version is exist in repository, then I can't use it for coding in my intellij. I'm getting in the editor an error that class can't be resolved.
Note: if I'll build the module using intellij plugin then it will pass although the errors in the editor.

My guess is that in IDE editor the dependencies resolving still works as default and it will use the original version to resolve each dependency.

Bottom line, we must that all project modules are imported in the IDE to manage work without editor errors.

@McFoggy
Copy link
Contributor

McFoggy commented Mar 16, 2017

can you please provide a sample project that demonstrate the issue?

@McFoggy
Copy link
Contributor

McFoggy commented Mar 21, 2017

@lebrot I have created a sample reproducer app https://github.com/McFoggy/jgitver-samples

git clone https://github.com/McFoggy/jgitver-samples
cd jgitver-samples
git checkout intellij
cd intellij/multi
mvn clean install

Can you please describe using this sample app, what you are doing that does not work in IntelliJ.
My fear is that you use jgitver with a real dynamic version (for example using version with commit distance or commit SHA1) in which case each time you commit you would need to mvn install to make the libraries available to your IDE if they are not all loaded in your IDE.

@McFoggy McFoggy modified the milestone: To be defined Mar 21, 2017
@jschneider
Copy link
Contributor

jschneider commented May 6, 2017

Might this be related to that issue I have created?
https://youtrack.jetbrains.com/issue/IDEA-172467

Multiple projects loaded into IntelliJ?

@McFoggy
Copy link
Contributor

McFoggy commented Feb 27, 2018

as stated in #70 Intellij now has full support for jgitver.
reopen if needed.

@McFoggy McFoggy closed this as completed Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants