How to customise project properties and preferences in Che?
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.
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 mvn clean install -s /path/to/your/settings.xml command in such case.
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 -s /path/to/your/settings.xml
ok...I'll check that option too and come back. Thanks!
Or you may put your settings.xml to ~/.m2. Maven will use it by default then.
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 - <localRepository>.m2\repository</localRepository>
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. .m2/repository will be created by default.
Yes, finally my project built worked in che! But a few questions still remains though -
- My custom commands are not saved permanently. Whenever i restart the container, these are wiped clean. Is there a way to save them permanently?
- We use an SVN repository instead of GitHub. Is there a plugin available to integrate SVN with Che?
- What are the steps to reproduce? I create a workspace, start it, add a command, stop it. Restart it - the command is there.
- There's no SVN plugin at the moment. You may use terminal and svn command line instead (or commands). SVN is installed in a JAVA stack.
#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