-
Since 2.6.0, Tycho supports nested target platforms. So it is possible to reference another target file via e.g. a file path or http address. Our target file is hosted on a private repository, meaning that it necessary to provide credentials when trying to read this file. Otherwise Tycho fails with a "401, Unauthorized". My initial approach was to embed both username and password into the URL via, placeholders, which are then replaced by Tycho with the actual credentials, specified in the Maven settings. But I'm still unable to access the file. Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Tycho uses plain URL.openConnection() for this I think we can support authentication here as well. If you mean by "private repository" a private maven repository you could instead of https use mvn protocol to get the file instead that should handle authentication the usual way. |
Beta Was this translation helpful? Give feedback.
Tycho uses plain URL.openConnection() for this I think we can support authentication here as well.
Just to make sure: do you see your env variables resolved in the build output (would also mean that the build output leaks your authentication!).
If you mean by "private repository" a private maven repository you could instead of https use mvn protocol to get the file instead that should handle authentication the usual way.