Referencing other project with target file does not work on CI server #4730
Unanswered
phermsdorf
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I don't think Tycho reads the .project file for pom projects (one might want to enhance it in that way), as a workaround you can just use another project name (or use the maven artifact id) you should also get a warning in the log that Tycho can't find the mentioned name. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm referencing a common root target in my target files using
<location type="Target" uri="file:${project_loc:/rootproject}/base.target"/>
in the target files. On my developer box(windows) that works without problems.
When running on the CI server (linux with basically the same java 17 , tycho 4.0.10, maven 3.9.9 version as on my local box) i get the following error:
[ERROR] Failed to resolve target definition file:/var/lib/jenkins/workspace/projects_main/com.company.rpoject/../platform.target: Invalid URI file:${project_loc:rootproject}/base.target: Illegal character in path at index 7: file:/${project_loc:rootproject}/base.target
The base target and the .project file for the rootproject are in the root directory of the project and all other target files are in submodues and subdirectories.
My Projectfile is located next to the project parent pom and looks like this:
I also tried changing the uri to
file:${project_loc:rootproject}/base.target
(removing the trailing slash) but without any change.Any idea why it's running locally but not on the CI server?
Thanks for any hints on this ...
Bye Peter
Beta Was this translation helpful? Give feedback.
All reactions