Skip to content

Instantly share code, notes, and snippets.

View slemeur's full-sized avatar

Stévan Le Meur slemeur

View GitHub Profile
USAGE: DOCKER_PARAMS codenvy/cli:nightly archetype ACTION [PARAMETERS]
Use an archetype to generate, build or run a custom codenvy assembly
MANDATORY DOCKER PARAMETERS:
-v <path>:/archetype Local path where your custom assembly will be generated
OPTIONAL DOCKER PARAMETERS:
-v <path>:/m2 Local path to your host's Maven M2 repository
@slemeur
slemeur / cli-archetype.sh
Created April 26, 2017 22:13
CLI Archetype
USAGE: DOCKER_PARAMS eclipse/che-cli:nightly archetype ACTION [PARAMETERS]
Use an archetype to generate, build or run a custom che assembly
MANDATORY DOCKER PARAMETERS:
-v <path>:/archetype Local path where your custom assembly will be generated
OPTIONAL DOCKER PARAMETERS:
-v <path>:/m2 Local path to your host's Maven M2 repository
$ cd che/
$ mvn license:format
$ mvn sortpom:sort
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-sample-custom-openocd-extension-ide</artifactId>
<version>${che.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-sample-custom-openocd-extension-server</artifactId>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-sample-custom-openocd-extension-server</artifactId>
<version>${che.version}</version>
</dependency>
<inherits name=”org.eclipse.che.plugin.openocdexample.MyExtension”/>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>che-sample-custom-openocd-extension-ide</artifactId>
<version>${che.version}</version>
</dependency>
{
“environments”:{
“wksp-test-ptfio”:{
“machines”:{
“ws-machine”:{
“attributes”:{
“memoryLimitBytes”:“1048576000”
},
“servers”:{
$ cd <path to che-parent directory>
$ mvn -pl ‘!dashboard’ clean install
# OR
$ mvn -pl ‘!dashboard’ -DskipTests=true -Dfindbugs.skip=true -Dskip-validate-sources clean install
# Start by compiling your extension (complete che compilation is quite long, so it avoids to loss time if you have an error):
$ cd <path to your extension>
$ mvn clean install
# Build plugin
$ cd <path to che-parent/plugins>
$ mvn clean install
# Build assembly:
$ cd <path to che-parent/assembly>