-
Notifications
You must be signed in to change notification settings - Fork 50
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
feat(QTDI-693): manage nested jars #969
base: master
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
.filter(Files::exists) | ||
.orElseGet(() -> PathFactory.get(System.getProperty("user.home")).resolve(".m2/repository")); | ||
// if we've defaulted to user home m2 (fallback), we want to check if we're in running in a fatjar | ||
if (PathFactory.get(System.getProperty("user.home")).resolve(".m2/repository").equals(rootRepo)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
M2 repository path can be ovewritten by in settings.xml file
=> ${user.home}/.m2/repository might not be a path to the repository.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is used as the fallback mecanism value, which specifies we do not have any specific settings on the host.
Maybe, in the future, we could extend and provide that it's really the fallback that was retained... or just check that the main property was not set.
In Talend Runtime (karaf) host environment, we may expect that nothing about user's repository is set.
...runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager/ComponentManager.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left comments
Analysis Details0 IssuesCoverage and DuplicationsProject ID: org.talend.sdk.component:component-runtime |
https://qlik-dev.atlassian.net/browse/QTDI-693