Hy, I tried your setup but had no success. I thinks it's related to the project model.
Saying I'm having this config: git-project COMMON git-project AAA git-project BBB
Both projects AAA and BBB are using the COMMON library (defined in both projects as maven dependencies)
What I setup: multiroot-upsource project mountpoint 'common' with git-project COMMON mountpoint 'aaa' with git-project AAA mountpoint 'bbb' with git-project BBB As project model, I defined "common\pom.xml"
Upsource is analyzing correctly the COMMON project, but not the projects AAA and BBB. Did I missed something?
What I try to setup is that I could use "find the usage" on my COMMON project which show me the usage on all the projects (COMMONS, AAA and BBB).
Hy, the mvn.out look correctly and everything is build correctly with maven in the project. It located under this folder structure: /common/.idea/maven/mvn.out
As I defined as project model this file "common\pom.xml", it's only compiling the "common" project. My multiroot-project looks like: | |- common |- .idea |- maven |- mvn.out |- pom.xml |- aaa
|- bbb
But nothing is compiled for the mountpoints "aaa" and "bbb". How do I get compiled also both "aaa" and "bbb" mountpoints?
What is the purpose of specifying poms for each repo in one Upsource project? Find usages feature across this repos wouldn't start working in such case.
It would be a great feature if we can configure in Upsource something like dependency across the projects which would show also results in Find usages or Goto declarations from dependant projects.
In my case, I would create 3 projects:
common
projectAAA
projectBBB
In projectAAA and projectBBB, I would create then a dependenxy to project common.
Hello. This is a very old request here, but I couldn't find the answer anywhere.
I am working on a project that has a Persistence project shared across many different projects, and I'd like to find usages in any of them without having to look for it 1 by 1.
Has this been implemented? Is there a workaround besides the one above?
Hi,
Nope, but if your projects are too intersected, perhaps it's worth configuring single Upsource project with multiply roots?
Hy,
I tried your setup but had no success.
I thinks it's related to the project model.
Saying I'm having this config:
git-project COMMON
git-project AAA
git-project BBB
Both projects AAA and BBB are using the COMMON library (defined in both projects as maven dependencies)
What I setup:
multiroot-upsource project
mountpoint 'common' with git-project COMMON
mountpoint 'aaa' with git-project AAA
mountpoint 'bbb' with git-project BBB
As project model, I defined "common\pom.xml"
Upsource is analyzing correctly the COMMON project, but not the projects AAA and BBB.
Did I missed something?
What I try to setup is that I could use "find the usage" on my COMMON project which show me the usage on all the projects (COMMONS, AAA and BBB).
Thanks,
Tom
Hi Tom,
Could you please post a mvn.out file?
To find mvn.out (gradle.out) file:
Open your Upsource project
Click Browse code at the top of the revisions list
Navigate to /.idea/maven/mvn.out
If no such file exists:
Navigate to /.idea/model.info
Open model.info and copy the revision ID
Using the search, locate that revision and open it up
Click Browse code and navigate to /.idea/maven/mvn.out
Thanks in advance.
Hy,
the mvn.out look correctly and everything is build correctly with maven in the project.
It located under this folder structure: /common/.idea/maven/mvn.out
As I defined as project model this file "common\pom.xml", it's only compiling the "common" project.
My multiroot-project looks like:
|
|- common
|- .idea
|- maven
|- mvn.out
|- pom.xml
|- aaa
|- bbb
But nothing is compiled for the mountpoints "aaa" and "bbb".
How do I get compiled also both "aaa" and "bbb" mountpoints?
Thanks,
Tom
Tom,
We do nothing but launching maven plugin that compliles project due to configuration in the specified pom.xml.
That being said, your pom.xml in *common* project should know aobut other projects.
Is there a way to specify POM file location for each repo, when they are part of the same project?
No, only one pom file per Upsource project.
What is the purpose of specifying poms for each repo in one Upsource project? Find usages feature across this repos wouldn't start working in such case.
Basically we have multiple modules in their own repos. Most of features require changes in more than one module.
It's great that I can create reviews across multiple repos, but that would be absolutelly fantastic if I also could get code analyser to work.
But how do you build your project? Is there a parent pom file where all repos are specified?
I got it working by adding an additional root with a pom containing all the projects:
The new "root" is named "upsourceRoot" and contains this pom.xml
The project is now defined to use the "upsoureRoot/pom.xml" to compile.
My multiroot-project looks now like this:
|
|- common
|- .idea
|- maven
|- mvn.out
|- pom.xml
|- aaa
|- bbb
|- upsourceRoot
|- pom.xml
I can now use "find usages" acroos my multiple projects(roots).
Thanks for all your help,
Tom
That might be a solution!
On another note, which instance are you running it on, It looks like Code analyzer requires quite a lot of resources.
It would be a great feature if we can configure in Upsource something like dependency across the projects which would show also results in Find usages or Goto declarations from dependant projects.
In my case, I would create 3 projects:
In projectAAA and projectBBB, I would create then a dependenxy to project common.
What do you think about this feature request?
Thanks,
Tom
Hello.
This is a very old request here, but I couldn't find the answer anywhere.
I am working on a project that has a Persistence project shared across many different projects, and I'd like to find usages in any of them without having to look for it 1 by 1.
Has this been implemented?
Is there a workaround besides the one above?