apache / openmeetings

Mirror of Apache Openmeetings
Other
639 stars 261 forks source link

Issues while building the openmeetings source code #109

Closed ArushiSakhuja closed 4 years ago

ArushiSakhuja commented 4 years ago

Which source code should I pick for development "https://www.apache.org/dyn/closer.lua/openmeetings/5.0.0/src/apache-openmeetings-5.0.0-src.zip" or "https://github.com/apache/openmeetings.git". I am facing issues in both.

1)While using code from "https://github.com/apache/openmeetings.git" and (i)building the code using "mvn clean install -P allModules", TestFileService.addFileTest test case failed so Build Failure. image

(ii)While running "mvn org.sonatype.ossindex.maven:ossindex-maven-plugin:audit -f pom.xml", below is the error in console: Reactor Summary for Openmeetings 5.1.0-SNAPSHOT: [INFO] [INFO] Openmeetings ....................................... SUCCESS [ 15.634 s] [INFO] Openmeetings Util .................................. SUCCESS [ 13.822 s] [INFO] Openmeetings DB .................................... SUCCESS [ 2.841 s] [INFO] Openmeetings Core .................................. SUCCESS [ 4.377 s] [INFO] Openmeetings Install ............................... SUCCESS [ 2.055 s] [INFO] Openmeetings Service ............................... SUCCESS [ 2.625 s] [INFO] Openmeetings Webservices ........................... SUCCESS [ 3.098 s] [INFO] Openmeetings Web ................................... FAILURE [ 7.780 s] [INFO] Openmeetings Screen Sharing applet ................. SKIPPED [INFO] Openmeetings Server ................................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:07 min [INFO] Finished at: 2020-08-31T14:04:10+05:30 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.sonatype.ossindex.maven:ossindex-maven-plugin:3.1.0:audit (default-cli) on project openmeetings-web: Detected 1 vulnerable components: [ERROR] commons-collections:commons-collections:jar:3.2.1:test; https://ossindex.sonatype.org/component/pkg:maven/commons-collections/commons-collections@3.2.1 [ERROR] Remote code execution (0.0); https://ossindex.sonatype.org/vuln/ed5505cd-2b5b-4ca6-ab51-28ca91263b4e?component-type=maven&component-name=commons-collections.commons-collections [ERROR] [CVE-2015-6420] Serialized-object interfaces in certain Cisco Collaboration and Social Media; En... (7.5); https://ossindex.sonatype.org/vuln/ac157388-2d0e-4c78-b3f4-033572d19286?component-type=maven&component-name=commons-collections.commons-collections [ERROR] * [CVE-2017-15708] In Apache Synapse, by default no authentication is required for Java Remote Meth... (9.8); https://ossindex.sonatype.org/vuln/9b28a5d2-9be7-4414-a59b-98e25e4c608a?component-type=maven&component-name=commons-collections.commons-collections [ERROR] [ERROR] -> [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/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :openmeetings-web

(iii)Below is the snapshot of errors I am getting in eclipse just after importing openmeetings maven project. javax.xml.ws.WebFault missing; image

2) While using code from "https://www.apache.org/dyn/closer.lua/openmeetings/5.0.0/src/apache-openmeetings-5.0.0-src.zip" (i)Following imports are missing as shown in eclipse: javax.jws.WebMethod; javax.jws.WebParam; javax.jws.WebService; javax.xml.ws.WebFault; image ii)After build it shows that Openmeetings is up ################################################################################

Openmeetings is up

#                  5.0.0 ${buildNumber} 2020-08-31T11:24:44Z                   #
#                               and ready to use                               #
################################################################################

Now how to run openmeetings? So that i can see UI and after altering the java code I can see my changes ?

Which code base is preferred "https://www.apache.org/dyn/closer.lua/openmeetings/5.0.0/src/apache-openmeetings-5.0.0-src.zip" or "https://github.com/apache/openmeetings.git". I am using Java 11, Maven 3.6.3

solomax commented 4 years ago

hello @ArushiSakhuja,

too much images, hard to answer :( your #1 is caused by the absence of ImageMagic on the PATH, it need to be installed or Jenkins maven profile should be turned ON

according to commons-collections:3.2.1 as you cat see it is test dependency (transitive ...) OM uses commons-collections4:latest

I have no idea why are your Eclipse build is red ... Maybe you need to perform Maven -> Update project? (i'm using Eclipse on regular basis and all green here ....

After build it shows that Openmeetings is up

this usually mean it is up :))))

Which code base is preferred

up to you :) the one in the release archive also available in git 5.0.0 tag ...