apache / openmeetings

Mirror of Apache Openmeetings
Other
639 stars 261 forks source link

[SOLVED] can't build from the source #66

Closed sw1p3r990 closed 4 years ago

sw1p3r990 commented 4 years ago

Hi,

i tries to build from the source and when i use the command mvn clean install -PallModules the build proccess always fails at 8/10 openmeeting-web with error :

[ERROR] Failed to execute goal on project openmeetings-web: Could not resolve dependencies for project org.apache.openmeetings:openmeetings-web:war:5.0.0-M5-SNAPSHOT: Failure to find org.apache.openmeetings:openmeetings-webservice:jar:5.0.0-M5-SNAPSHOT in https://repository.apache.org/content/groups/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of apache-snapshots has elapsed or updates are forced -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project openmeetings-web: Could not resolve dependencies for project org.apache.openmeetings:openmeetings-web:war:5.0.0-M5-SNAPSHOT: Failure to find org.apache.openmeetings:openmeetings-webservice:jar:5.0.0-M5-SNAPSHOT in https://repository.apache.org/content/groups/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of apache-snapshots has elapsed or updates are forced

Any hints about this? Because it's error on those process and the previous process are fine

solomax commented 4 years ago

works as expected on build servers and locally please share your steps: the detailed the better

sw1p3r990 commented 4 years ago

works as expected on build servers and locally please share your steps: the detailed the better

The step is :

  1. Clone using git clone https://github.com/apache/openmeetings.git
  2. CD into openmeetings directory
  3. using mvn versions:display-dependency-updates , done without any error
  4. using command mvn clean install -P allModule , error build on openmeetings web, the error was described above. No change was made, only testing to build before changing any source.

on the other hand, i installed openmeeting using https://cwiki.apache.org/confluence/display/OPENMEETINGS/Tutorials+for+installing+OpenMeetings+and+Tools?preview=/27838216/140774282/Installation%20OpenMeetings%205.0.0-M3%20on%20Ubuntu%2018.04%20LTS.pdf tutorial and it works very well on the same server.

Do you need other detail?

solomax commented 4 years ago

You have typo in profile name /allModule/allModules/

Please try to run mvn clean install

the error is weird due to openmeetings-webservice module is being build in installed just before openmeetings-web

sw1p3r990 commented 4 years ago

You have typo in profile name /allModule/allModules/

Please try to run mvn clean install

the error is weird due to openmeetings-webservice module is being build in installed just before openmeetings-web

After run mvn clean install it returns information that there are some problems with my $JAVA_HOME path , after reconfigure the path and reboot the server, all of the builds can work normally

Thank you for your help