che icon indicating copy to clipboard operation
che copied to clipboard

Problems with Eclipse Che build.

Open friendRU opened this issue 10 years ago • 3 comments

Hello. I've some problems with build an Eclipse Che.

Actually, I want to write a plugin.

When I make 'git clone 5.0.0-M2' and trying to build it, then I receive "build-log.txt". Look it. When I'm trying make 'mvn clean install -Dmaven.test.failure.ignore=true' or something similar, then I receive "build-log1.txt". E.t.c.

I can solve some of the problems that arise, but not all. In the end, I get too difficult problems for my understanding.

Maybe I'm doing something wrong?

Che version: 5.0.0-M2 Maven version: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T20:41:47+04:00) Maven home: C:\Tools\apache-maven-3.3.9 Java version: 1.8.0_101, vendor: Oracle Corporation Java home: C:\Tools\Java\jdk1.8.0_101\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"

friendRU avatar Sep 23 '16 15:09 friendRU

Then I'm also trying to build Che with simple extension.

I downloaded a simple extension from here

  1. Add to "..\che\assembly\assembly-ide-war\src\main\resources\org\eclipse\che\ide.IDE.gwt.xml":
<module rename-to='_app'>
        <inherits name="examples.MyExtension"/>
</module>
  1. Add to "..\che\assembly\assembly-ide-war\pom.xml":
<dependencyManagement>
    <dependencies>
           <dependency>
              <groupId>org.eclipse.che</groupId>
              <artifactId>che-examples-action</artifactId>
              <version>4.3.0-RC1</version>
           </dependency>
    </dependencies>
 </dependencyManagement>
<dependencies>
        <dependency>
           <groupId>org.eclipse.che</groupId>
           <artifactId>che-examples-action</artifactId>
        </dependency>
 </dependencies>
  1. Make mvn sortpom:sort from "..\che\assembly\assembly-ide-war"

  2. Make mvn clean install from "..\che"

All I'm doing right?

friendRU avatar Sep 23 '16 15:09 friendRU

After you have updated your dependencies, then you should try building in /che/assembly/assembly-main. This will generate the full assembly for you. You don't need to rebuild the entirety of che itself, as that goes into rebuilding every module one at a time, and some of those modules will not build without special utilities.

TylerJewell avatar Sep 23 '16 19:09 TylerJewell

@friendRU just run mvn clean install in /assembly - this will be enough to recompile modules you have made changes in, as well as build the assembly-main module with binaries.

ghost avatar Sep 25 '16 07:09 ghost