Skip to content
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

Failed build from source (mvn clean install) with devnation branch #1598

Closed
tanaka-takayoshi opened this issue Jun 29, 2016 · 10 comments
Closed

Comments

@tanaka-takayoshi
Copy link

Description of problem: I cannot build che from github source with devnation branch.
I read this article and want to try language server.
Che version: branch/devnation
Che install directory: /root/Documents/che
Docker version: NA
Java version:

$ java -version
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)

maven version

# mvn -v
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T01:41:47+09:00)
Maven home: /opt/apache-maven-3.3.9
Java version: 1.8.0_92, vendor: Oracle Corporation
Java home: /usr/java/jdk1.8.0_92/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-327.18.2.el7.x86_64", arch: "amd64", family: "unix"

Environment details (AWS, VirtualBox, physical, etc.): RHEV
How reproducible: always
Steps to Reproduce:

$ git clone https://github.com/eclipse/che.git
$ cd che
$ git checkout devnation
$ mvn clean install

Actual Results:

INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Che IDE :: Parent .................................. SUCCESS [  8.248 s]
[INFO] Che Workspace Agent War Packaging .................. FAILURE [  1.379 s]
[INFO] Che Assembly Workspace Agent Server ................ SKIPPED
[INFO] Che IDE :: Compiling GWT Application ............... SKIPPED
[INFO] Che IDE :: Compiling WS Master WAR ................. SKIPPED
[INFO] Che IDE :: Assemblies Tomcat ....................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.511 s
[INFO] Finished at: 2016-06-29T16:09:36+09:00
[INFO] Final Memory: 47M/1128M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project assembly-wsagent-war: Could not resolve dependencies for project org.eclipse.che:assembly-wsagent-war:war:4.4.0-RC1-SNAPSHOT: The following artifacts could not be resolved: org.eclipse.che.plugin:che-plugin-languageserver-server:jar:4.4.0-RC1-SNAPSHOT, org.eclipse.che.plugin:che-plugin-languageserver-shared:jar:4.4.0-RC1-SNAPSHOT: Failure to find org.eclipse.che.plugin:che-plugin-languageserver-server:jar:4.4.0-RC1-SNAPSHOT in https://maven.codenvycorp.com/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of codenvy-public-repo has elapsed or updates are forced -> [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/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :assembly-wsagent-war

I can't find org.eclipse.che.plugin:che-plugin-languageserver-server:jar:4.4.0-RC1-SNAPSHOT on the server https://maven.codenvycorp.com/content/groups/public/.

Expected Results:
build success (and run)

@garagatyi
Copy link

Since language server is not in master it is not available as maven artifact. In that case you have to build the whole project (or build missing modules before building Che assembly).

@tanaka-takayoshi
Copy link
Author

Thanks, but I got compilation error during building plugins https://github.com/eclipse/che#build-submodules

Is it a wrong step?

$ cd che/plugins
$ mvn clean install

Or is there no available step to use language server now?

@garagatyi
Copy link

Have you tried to build the whole project?

@tanaka-takayoshi
Copy link
Author

I was thinking this step is to build whole project https://github.com/eclipse/che#build-submodules .
But it seems to be wrong.

@garagatyi
Copy link

The most full build is to call mvn clean install from che directory

@tanaka-takayoshi
Copy link
Author

Thanks a lot, finally I succeeded in build and it works well. I note the steps and some hacks. (I'm afraid my steps are wrong because I extract from my all try and error.)

  • install required tool
# yum install patch
(installing nodejs)
$ npm install -g bower
$ npm install -g gulp
  • modify pom.xml due to reverse patch error
$ git diff
diff --git a/plugins/plugin-orion/che-plugin-orion-editor/pom.xml b/plugins/plugin-orion/che-plugin-orion-editor/pom.xml
index 2087b93..c4a0b63 100644
--- a/plugins/plugin-orion/che-plugin-orion-editor/pom.xml
+++ b/plugins/plugin-orion/che-plugin-orion-editor/pom.xml
@@ -128,6 +128,7 @@
                             <strictPatching>true</strictPatching>
                             <strip>1</strip>
                             <targetDirectory>${project.build.directory}/classes</targetDirectory>
+                           <reverse>true</reverse>
                         </configuration>
                     </execution>
                 </executions>
  • build with skip tests and some other steps
$ mvn clean install -DskipTests -Dfindbugs.skip -Dlicense.skip -Denforcer.skip  -Dmdep.analyze.skip
$ cd assembly/assembly-main/src/assembly/assembly-main
$ mvn install

@garagatyi
Copy link

I'm happy that you succeeded in building such a complex project. Maybe we should think about better documentation on typical errors and howto fix it. Especially because of some build-time dependencies such as node, etc.
@TylerJewell FYI

@TylerJewell
Copy link

Created a documentation issue for this. We used to have great docs for building the dashboard and all necessary plugins. But when we consolidated everything from different projects into a single project with subdirectories, looks like we lost some of the READMEs.

@chetanladdha
Copy link

I am not able to find 'devnation' branch. Does someone deleted it ?
Where I can see Xtext language server installed ?

@TylerJewell
Copy link

It's in master. We will share more details on checonf tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants