-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
How to customise project properties and preferences in Che? #303
Comments
There isn't such a possibility at the moment. Both Maven and JDK version are defined in a Dockerfile for a chosen environment that runs your workspace. Can you share Maven output? Why does it fail? Private artifacts? Wrong Maven version? |
Problem here is i used a custom artifactory in my maven builds. So, I need an option to specify my own maven settings xml as a preference. |
You may try to use You can upload your setting.xml file directly in the IDE or copy it into the project directory on a local file system. |
i have tried copying my settings xml to my project folder, it didn't work out. It still takes the default maven settings |
Can you share the command you're running? |
I am actually running the standard mvn command from the Eclipse GUI - " mvn clean install package". Run --> Edit Commands |
Do not forget about |
ok...I'll check that option too and come back. Thanks! |
Or you may put your settings.xml to |
Didn't want to change that actually. |
Well, these the are the 2 options - either tell Maven what settings to use in the command line or put your settings.xml in the location where Maven expects it. |
Now, the settings xml is detected. But it seems Che has issues understanding the Windows format of the location - Logs - `[INFO] Error stacktraces are turned on. [ERROR] Could not create local repository at /.m2\repository -> [Help 1] org.apache.maven.repository.LocalRepositoryNotAccessibleException: Could not create local repository at /.m2\repository` Not sure now, how do i specify the path in my settings xml. |
You need to remove it. |
Yes, finally my project built worked in che! But a few questions still remains though -
|
|
#1 - The command settings are not retained when I restart Che. |
Just checked it. Commands are there. They are saved into a workspace configuration. Any special steps to reproduce? |
Nothing special just the routine start and stop. I face it almost every time. Not sure why as I am saving my commands |
I have tried to reproduce it a couple of times, and commands are there. Can you record a short video demoing the commands are gone/. |
ok |
@mjitch any update? Do you still see your custom commands missing? Please note that commands are saved in a workspace scope, i.e. if you created them in Workspace A they won't be available in Workspace B. |
This issue was observed in the last beta. I am working on RC3 at the moment. Since, RC has a problem importing my workspace (another issue I opened) I couldn't verify it. Let me resolve the workspace issue, and then get on with it on the same RC release. |
I am not seeing this issue in the latest RC3 release. So, closing it. |
In other versions of Eclipse, you've the option of customizing the properties of a project like maven settings, jdk ver, etc. I am not able see such options in che. As a result, maven fails to download my project dependencies and hence, build fails.
The text was updated successfully, but these errors were encountered: