TL;DR chmod -R 777
Beside Quarkus, a stack that gives Java natively compiled super powers (check it out!), Eclipse Che is one of the coolest technologies for developers today: it allows you to containerize your entire dev workflow and run it on Kubernetes distributions like OpenShift.
The great thing with Che is, that basically all aspects of your developer workflow can be separated and put into containers:
- The IDE: For different tasks you could choose a pluggable IDE (i.e. the Visual Studio Code derived Eclipse Thea that uses VSCodes underlying framework Monaco , based on Electron, Juypiter Notebooks, SAP’s Dirigible and others ).
- Debugging:
- Language: Support for programming languages is given via the Language Server Protocol which enhances language standardization and plugability
- Integrated terminal, sporting introspective environment variables enabling you accessing the container platform and Che runtime.
(Check all the Eclipse Che feature greatness here.).
As thing happen, you could stumble upon weird errors with basic commands like mvn clean:
jboss@workspaceisfdoqswrt5o0y40 monolith]$ mvn clean
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< com.redhat.coolstore:monolith >--------------------
[INFO] Building coolstore-monolith 1.0.0-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ monolith ---
[INFO] Deleting /projects/cloud-native-workshop-v2m2-labs/monolith/target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.559 s
[INFO] Finished at: 2020-05-13T07:35:23Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project monolith: Failed to clean project: Failed to delete /projects/cloud-native-workshop-v2m2-labs/monolith/target/ROOT/bower_components/patternfly-bootstrap-combobox/css -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Before you start doing weird stuff with the mounted filesystems, just follow the approach you’d probably follow on your local computer:
[jboss@workspaceisfdoqswrt5o0y40 monolith]$ ls -al .
total 40
drwxr-xr-x. 6 jboss root 4096 May 12 15:43 .
drwxr-xr-x. 7 jboss root 4096 May 12 15:36 ..
-rw-r--r--. 1 jboss root 6148 May 12 15:35 .DS_Store
-rw-r--r--. 1 jboss root 2778 May 12 15:35 README.md
drwxr-xr-x. 2 jboss root 4096 May 12 15:44 deployments
-rw-r--r--. 1 jboss root 3039 May 12 15:36 pom.xml
drwxr-xr-x. 2 jboss root 4096 May 12 15:36 scripts
drwxr-xr-x. 3 jboss root 4096 May 12 15:35 src
drwxr-xr-x. 3 jboss root 4096 May 12 21:23 target
[jboss@workspaceisfdoqswrt5o0y40 monolith]$ chmod -R 777 .
[jboss@workspaceisfdoqswrt5o0y40 monolith]$ ls -al
total 40
drwxrwxrwx. 6 jboss root 4096 May 12 15:43 .
drwxr-xr-x. 7 jboss root 4096 May 12 15:36 ..
-rwxrwxrwx. 1 jboss root 6148 May 12 15:35 .DS_Store
-rwxrwxrwx. 1 jboss root 2778 May 12 15:35 README.md
drwxrwxrwx. 2 jboss root 4096 May 12 15:44 deployments
-rwxrwxrwx. 1 jboss root 3039 May 12 15:36 pom.xml
drwxrwxrwx. 2 jboss root 4096 May 12 15:36 scripts
drwxrwxrwx. 3 jboss root 4096 May 12 15:35 src
drwxrwxrwx. 3 jboss root 4096 May 12 21:23 target
[jboss@workspaceisfdoqswrt5o0y40 monolith]$ mvn clean
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< com.redhat.coolstore:monolith >--------------------
[INFO] Building coolstore-monolith 1.0.0-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ monolith ---
[INFO] Deleting /projects/cloud-native-workshop-v2m2-labs/monolith/target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.377 s
[INFO] Finished at: 2020-05-13T07:36:26Z
[INFO] ------------------------------------------------------------------------
Leave a Reply