Coder Social home page Coder Social logo

Build failed about jicofo HOT 32 CLOSED

jitsi avatar jitsi commented on July 24, 2024
Build failed

from jicofo.

Comments (32)

coresh avatar coresh commented on July 24, 2024 3

Fix-solution of ant build failed (tested by fedora 24):

short instruction:

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.102-1.b14.fc24.x86_64
export MAVEN_HOME=~/Downloads/apache/maven/apache-maven-3.3.9
export ANT_HOME=~/Downloads/apache/ant/apache-ant-1.9.7

ls -la ~/Downloads/apache/maven/apache-maven-3.3.9
drwxrwxr-x 2 admin admin  4096 Oct 22 10:32 bin/
drwxrwxr-x 2 admin admin  4096 Oct 22 10:32 boot/
drwxr-xr-x 3 admin admin  4096 Nov 10  2015 conf/
drwxr-xr-x 3 admin admin  4096 Oct 22 10:32 lib/
-rw-r--r-- 1 admin admin 19335 Nov 10  2015 LICENSE
-rw-r--r-- 1 admin admin   182 Nov 10  2015 NOTICE
-rw-r--r-- 1 admin admin  2541 Nov 10  2015 README.txt

ls -l /mnt/sdb/softPub/apache/ant/apache-ant-1.9.7
drwxr-xr-x 2 admin admin   4096 Oct 22 10:31 bin/
-rw-r--r-- 1 admin admin   6081 Apr  9  2016 CONTRIBUTORS
-rw-r--r-- 1 admin admin  30018 Apr  9  2016 contributors.xml
drwxr-xr-x 3 admin admin   4096 Oct 22 10:31 etc/
-rw-r--r-- 1 admin admin  11253 Apr  9  2016 fetch.xml
-rw-r--r-- 1 admin admin   4445 Apr  9  2016 get-m2.xml
-rw-r--r-- 1 admin admin    126 Apr  9  2016 INSTALL
-rw-r--r-- 1 admin admin  92261 Apr  9  2016 KEYS
drwxr-xr-x 2 admin admin   4096 Oct 22 10:31 lib/
-rw-r--r-- 1 admin admin  15289 Apr  9  2016 LICENSE
drwxr-xr-x 8 admin admin   4096 Oct 22 10:31 manual/
-rw-r--r-- 1 admin admin    305 Apr  9  2016 NOTICE
-rw-r--r-- 1 admin admin   1915 Apr  9  2016 patch.xml
-rw-r--r-- 1 admin admin   4119 Apr  9  2016 README
-rw-r--r-- 1 admin admin 233424 Apr  9  2016 WHATSNEW

Detailed instruction:

"Installing" lastest ant:

mkdir -p ~/Downloads/apache/ant
cd ~/Downloads/apache/ant
wget http://apache-mirror.rbc.ru/pub/apache//ant/binaries/apache-ant-1.9.7-bin.tar.bz2
tar jxf apache-ant-1.9.7-bin.tar.bz2
cd apache-ant-1.9.7
pwd
~/Downloads/apache/ant/apache-ant-1.9.7

"Installing" lastest maven:

mkdir ~/Downloads/apache/maven
cd ~/Downloads/apache/maven
wget http://apache-mirror.rbc.ru/pub/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
tar zxf apache-maven-3.3.9-bin.tar.gz
cd ~/Downloads/apache/maven/apache-maven-3.3.9
pwd
~/Downloads/apache/maven/apache-maven-3.3.9

Installing jicofo. STEP 1:

mkdir -p ~/Downloads/jitsi
cd ~/Downloads/jitsi
git clone https://github.com/jitsi/jicofo
cd jicofo
pwd
~/Downloads/jitsi/jicofo

Installing jicofo. IMPORTANT STEP 2:

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.102-1.b14.fc24.x86_64
export MAVEN_HOME=~/Downloads/apache/maven/apache-maven-3.3.9
export ANT_HOME=~/Downloads/apache/ant/apache-ant-1.9.7

check maven version and environments:

~/Downloads/apache/maven/apache-maven-3.3.9/bin/mvn -version

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T16:41:47+00:00)
Maven home: /home/admin/Downloads/apache/maven/apache-maven-3.3.9
Java version: 1.8.0_102, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.102-1.b14.fc24.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.7.7-200.fc24.x86_64", arch: "amd64", family: "unix"

check ant version:

~/Downloads/apache/ant/apache-ant-1.9.7/bin/ant -version

Apache Ant(TM) version 1.9.7 compiled on April 9 2016

Installing jicofo. STEP 3:

rm -rf ~/.m2
~/Downloads/apache/maven/apache-maven-3.3.9/bin/mvn -U clean package -DskipTests
~/Downloads/apache/maven/apache-maven-3.3.9/bin/mvn dependency:get -DartifactId=maven-ant-tasks -DgroupId=org.apache.maven -Dversion=2.1.3
~/Downloads/apache/ant/apache-ant-1.9.7/bin/ant -lib ~/.m2/repository/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar dist.lin64

from jicofo.

tiofabby avatar tiofabby commented on July 24, 2024 2

Hello, I had same issue with "ant dist.lin64" on Debian 8 and I did then a
mvn -U clean package -DskipTests under jicofo main folder which worked great as I got a Successfull Build.
This created a new target folder where I can find a "jicofo-1.0-SNAPSHOT.jar" but that I cannot execute as it does not have a main class.
Would you guys know what I should do now to launch jicofo..?
Thank you

from jicofo.

researcherMCU avatar researcherMCU commented on July 24, 2024 2

For me the following 2 steps solved the issue.
Step 1 - mvn -U clean package -Dskiptests
Step 2 - add the following lines to build.xml followed by ant dist.{os-name}

capture

from jicofo.

leonidas-o avatar leonidas-o commented on July 24, 2024 2

@damencho thanks for your help, finally I got it. It was the ant version inside the yum repo.
so the solution what worked for me:

  • installed Apache Maven 3.3.9 from the official apache website
  • installed Apache Ant(TM) version 1.9.7 from the official apache website

$ rm ~/.m2

inside jicofo dir:

$ mvn -U clean package -DskipTests
$ mvn dependency:get -DartifactId=maven-ant-tasks -DgroupId=org.apache.maven -Dversion=2.1.3
$ ant -lib ~/.m2/repository/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar dist.lin64

from jicofo.

driesken avatar driesken commented on July 24, 2024 1

Having the same problem. Has anyone found a solution?

Java version is "1.7.0_91"
Maven version is "3.3.9"
Ant version is "1.9.2"

OS is Red Hat Enterprise Linux Server release 7.0

Edit: been able to generate a build (haven 't tested it) by doing this:
cd /root/.m2/repository/org/sonatype/oss/oss-parent/3
wget https://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/3/oss-parent-3.pom
ant dist.lin64

from jicofo.

lyubomir avatar lyubomir commented on July 24, 2024

Maven should be preferred to Ant for Jicofo.

Remove/delete ~/.m2/. Get the latest version of Maven (and add it at the front of your PATH if necessary to override any other possibly older versions of Maven). Execute mvn -U clean package -DskipTests in the jicofo directory. Execute the command from build.xml that gets maven-ant-tasks. Do with Ant whatever you want. Keep in mind that maven-ant-tasks is old and has a problem that it doesn't process HTTP resource moves (that's the problem that caused your troubles above) and may break your ~/.m2/.

from jicofo.

matthias-w avatar matthias-w commented on July 24, 2024

Hello and thank you for your answer. I deleted .m2 directory and executed mvn -U ... command. System started downloading lots of stuff until this line.
...
Downloaded: http://repo.maven.apache.org/maven2/com/google/collections/google-collections/1.0/google-collections-1.0.jar (625 KB at 5205.0 KB/sec)
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 95 source files to /home/jitsi/jicofo_20151130/jicofo-master/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:44.510s
[INFO] Finished at: Mon Nov 30 17:43:17 CET 2015
[INFO] Final Memory: 13M/466M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project jicofo: Fatal error compiling: invalid target release: 1.7 -> [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/MojoExecutionException

I installed maven from Ubuntu packages. Version: mvn -v = Apache Maven 3.0.5

Do I need a newer version?

from jicofo.

lyubomir avatar lyubomir commented on July 24, 2024

Is your JDK version 1.7+?

Maven is currently at version 3.3.9 at https://maven.apache.org/download.cgi but yours is probably fine as well.

from jicofo.

matthias-w avatar matthias-w commented on July 24, 2024

Thanks lyubomir,
the Java version was the problem. I had two different Java JDKs (6 and 7). JRE was pointing version 7 and the Compiler to version 6. Maven was therefore using version 6. I updated the Compiler (update-alternatives --config javac) version.
I ran your provided command 'mvn -U clean package -DskipTests' and it did work. Afterwards I tried to run the ant command as described in jicofo's build.xml but that didn't work since the 'maven-ant-tasks' folder didn't exist within .m2 folder. So I used the maven-ant-tasks-2.1.3.jar file I downloaded directly from apache website for usage with 'ant -lib maven-ant-tasks-2.1.3.jar dist.lin64'. That worked fine. Now I have compiled jicofo file :)

Thanks again and best regards
Matthias

BTW: I guess it would be great when there was an already compiled version for download (as there is also one for jitsi videobridge) or at least a more precise build description than the one in the build.xml that does not work). In my opinion, it is quite complicated to install Java JDK, Maven and Ant for compilation.

from jicofo.

lyubomir avatar lyubomir commented on July 24, 2024

We have an Ubuntu repository where we provide nightly builds of our software including jicofo: https://jitsi.org/Main/DebianNightlyRepository. Do you know about it?

from jicofo.

cabeggar avatar cabeggar commented on July 24, 2024

I've got a similar problem after running mvn -U command.

[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ jicofo ---
[INFO] Deleting /home/cabeggar/jicofo/target
[INFO] 
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ jicofo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/cabeggar/jicofo/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ jicofo ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 96 source files to /home/cabeggar/jicofo/target/classes
[INFO] /home/cabeggar/jicofo/src/main/java/org/jitsi/jicofo/log/EventFactory.java: /home/cabeggar/jicofo/src/main/java/org/jitsi/jicofo/log/EventFactory.java uses unchecked or unsafe operations.
[INFO] /home/cabeggar/jicofo/src/main/java/org/jitsi/jicofo/log/EventFactory.java: Recompile with -Xlint:unchecked for details.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/cabeggar/jicofo/src/main/java/org/jitsi/jicofo/xmpp/FocusComponent.java:[291,41] cannot find symbol
  symbol:   class GracefulShutdownIQ
  location: class org.jitsi.jicofo.xmpp.FocusComponent
[ERROR] /home/cabeggar/jicofo/src/main/java/org/jitsi/jicofo/xmpp/FocusComponent.java:[293,17] cannot find symbol
  symbol:   class GracefulShutdownIQ
  location: class org.jitsi.jicofo.xmpp.FocusComponent
[ERROR] /home/cabeggar/jicofo/src/main/java/org/jitsi/jicofo/xmpp/FocusComponent.java:[294,24] cannot find symbol
  symbol:   class GracefulShutdownIQ
  location: class org.jitsi.jicofo.xmpp.FocusComponent
[INFO] 3 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35.743s
[INFO] Finished at: Thu Dec 17 16:56:32 EST 2015
[INFO] Final Memory: 18M/61M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project jicofo: Compilation failure: Compilation failure:
[ERROR] /home/cabeggar/jicofo/src/main/java/org/jitsi/jicofo/xmpp/FocusComponent.java:[291,41] cannot find symbol
[ERROR] symbol:   class GracefulShutdownIQ
[ERROR] location: class org.jitsi.jicofo.xmpp.FocusComponent
[ERROR] /home/cabeggar/jicofo/src/main/java/org/jitsi/jicofo/xmpp/FocusComponent.java:[293,17] cannot find symbol
[ERROR] symbol:   class GracefulShutdownIQ
[ERROR] location: class org.jitsi.jicofo.xmpp.FocusComponent
[ERROR] /home/cabeggar/jicofo/src/main/java/org/jitsi/jicofo/xmpp/FocusComponent.java:[294,24] cannot find symbol
[ERROR] symbol:   class GracefulShutdownIQ
[ERROR] location: class org.jitsi.jicofo.xmpp.FocusComponent
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project jicofo: Compilation failure
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:911)
    at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more
[ERROR] 
[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

I've got only Java 7 so I assume it's not the jdk version problem?

from jicofo.

zzxc avatar zzxc commented on July 24, 2024

I gave up trying to get maven-ant-tasks to work properly. Building the distribution packages with maven directly works fine:

mvn package -DskipTests -Dassembly.skipAssembly=false

from jicofo.

sunsocool avatar sunsocool commented on July 24, 2024

@zzxc I tried the line " mvn package -DskipTests -Dassembly.skipAssembly=false"
But still has the problem.
@driesken in '/root/.m2/repository/org/sonatype/oss/oss-parent/3' already has package 'oss-parent-3.pom'
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building jicofo
[INFO] task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/jicofo/src/main/resources
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).

Project ID: com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.0_jdk5

Reason: Cannot find parent: org.sonatype.oss:oss-parent for project: com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.0_jdk5 for project com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.0_jdk5

from jicofo.

driesken avatar driesken commented on July 24, 2024

@sunsocool Does the file "oss-parent-3.pom" actually have any content?

If it contains an error or some kind of warning message, you should replace it with the version on repo1.maven.org I linked to above.

from jicofo.

sunsocool avatar sunsocool commented on July 24, 2024

@driesken Thanks, it works now, the original one is a small size, delete it and download a new one, then it works.
👯

from jicofo.

calvix avatar calvix commented on July 24, 2024

Hello, I am trying to build jicofo with ant(or maven) but every possible option gives error:
I have tried downloading maven-ant-task.jar and link them manually but that wont help.

[root@test7 jicofo]# java -version
java version "1.7.0_99"
OpenJDK Runtime Environment (rhel-2.6.5.0.el7_2-x86_64 u99-b00)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
[root@test7 jicofo]# javac -version
javac 1.7.0_99
[root@test7 jicofo]# mvn -v
Apache Maven 3.0.5 (Red Hat 3.0.5-16)
Maven home: /usr/share/maven
Java version: 1.7.0_99, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.99-2.6.5.0.el7_2.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-123.el7.x86_64", arch: "amd64", family: "unix"

Apache Ant(TM) version 1.9.2 compiled on June 10 2014

ant

root@test7 jicofo]# ant dist.lin64
Buildfile: /root/jicofo/build.xml

BUILD FAILED
/root/jicofo/build.xml:54: Problem: failed to create task or type antlib:org.apache.maven.artifact.ant:dependencies
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration. 
Action: Check that the implementing library exists in one of:
        -/usr/share/ant/lib
        -/root/.ant/lib
        -a directory added on the command line with the -lib argument


Total time: 0 seconds
[root@test7 jicofo]# vim build.xml 
[root@test7 jicofo]# ant dist.lin64
Buildfile: /root/jicofo/build.xml

BUILD FAILED
/root/jicofo/build.xml:5: Reference maven-ant-tasks.classpath not found.

Total time: 0 seconds

maven

root@test7 jicofo]#  mvn dependency:get -DartifactId=maven-ant-tasks -DgroupId=org.apache.maven -Dversion=2.1.3
[INFO] Scanning for projects...
Downloading: https://github.com/jitsi/jitsi-maven-repository/raw/master/snapshots/org/jitsi/jitsi-universe/1.0-SNAPSHOT/jitsi-universe-1.0-20160204.002115-13.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.jitsi:jicofo:1.0-SNAPSHOT (/root/jicofo/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not transfer artifact org.jitsi:jitsi-universe:pom:1.0-20160204.002115-13 from/to jitsi-maven-repository-snapshots (https://github.com/jitsi/jitsi-maven-repository/raw/master/snapshots/): peer not authenticated and 'parent.relativePath' points at wrong local POM @ line 7, column 11 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

maven2

[root@test7 jicofo]# mvn -U clean package -Dskiptests
[INFO] Scanning for projects...
Downloading: https://github.com/jitsi/jitsi-maven-repository/raw/master/snapshots/org/jitsi/jitsi-universe/1.0-SNAPSHOT/jitsi-universe-1.0-20160204.002115-13.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.jitsi:jicofo:1.0-SNAPSHOT (/root/jicofo/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not transfer artifact org.jitsi:jitsi-universe:pom:1.0-20160204.002115-13 from/to jitsi-maven-repository-snapshots (https://github.com/jitsi/jitsi-maven-repository/raw/master/snapshots/): peer not authenticated and 'parent.relativePath' points at wrong local POM @ line 7, column 11 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

Any ideas?

from jicofo.

bickelj avatar bickelj commented on July 24, 2024

As far as ant goes, #69 was created.

My approach for building latest versions of libjitsi / jitsi-videobridge / jicofo is this (as of today):

  1. get a copy of jitsi-universe also available locally
  2. pick an arbitrary local custom version number (I chose a ridiculously high number followed by -custom)
  3. use that local custom version number as the project version in the various poms for projects I'm trying to build (e.g. near the top of pom as the version of the artifactId) plus jitsi-universe
  4. also use that local custom version number as the version number in poms for all dependent projects I am building custom versions of, including jitsi-universe
  5. mvn install in jitsi-universe dir
  6. mvn install in libjitsi dir
  7. mvn install in jitsi-videobridge dir, ant or mvn package/dist/whatever jitsi-videobridge
  8. in jicofo dir, mvn -U clean package -DskipTests

The local versions installed in your local m2 repository in steps 5, 6, 7 will be used by the other pieces.

No idea if this is the cleanest or best way (probably just installing from the debian repo as suggested above is cleanest), but it seems to work for now.

from jicofo.

z0r1k avatar z0r1k commented on July 24, 2024

@driesken got the point here: #30 (comment)

it looks like when you run ant dist.lin64 it tries to get dependencies and org.sonatype.oss fails due to http to https redirect in maven repo so it grabs html file which has 301 Moved Permanently and saves it as pom file. I guess it is because of maven-ant-tasks being too old.

so my way of solving this is:

cd jicofo
wget -O lib/maven-ant-tasks-2.1.3.jar https://www-eu.apache.org/dist/maven/ant-tasks/2.1.3/binaries/maven-ant-tasks-2.1.3.jar
mvn dependency:resolve
ant -lib lib/maven-ant-tasks-2.1.3.jar dist.lin64

Also there is a docker container for that - https://hub.docker.com/r/z0r1k/docker-jicofo/

from jicofo.

atyenoria avatar atyenoria commented on July 24, 2024

@tiofabby
I also have the same problem. Did you solve it??

from jicofo.

leonidas-o avatar leonidas-o commented on July 24, 2024

Stumbpled over this issues here, got the same problem on centos 7, java version 1.8.0_77, javac version 1.8.0_77.
Installed ant, installed maven. Ran "ant dist.lin64" and get:

`Buildfile: /srv/jitsi_components/jicofo/build.xml

BUILD FAILED
/srv/jitsi_components/jicofo/build.xml:54: Problem: failed to create task or type antlib:org.apache.maven.artifact.ant:dependencies
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
-/usr/share/ant/lib
-/root/.ant/lib
-a directory added on the command line with the -lib argument`

afterwards ran
ant -lib FOO/maven-ant-tasks-2.1.3.jar dist.lin64 -> build failed
mvn -U clean package -DskipTests -> succeeds
ant -lib FOO/maven-ant-tasks-2.1.3.jar dist.lin64 -> again the build fails
mvn dependency:resolve -> build success
ant -lib FOO/maven-ant-tasks-2.1.3.jar dist.lin64 -> again the build fails

I need the "jicofo.sh" for "jicofo.sh --domain=jitsi.example.com --secret=YOURSECRET2 --user_domain=auth.jitsi.example.com --user_name=focus --user_password=YOURSECRET3"

Please can someone help? Want to run jitsi meet.

from jicofo.

damencho avatar damencho commented on July 24, 2024

You need to append -lib param, check the beginning of the build.xml for more info.

from jicofo.

leonidas-o avatar leonidas-o commented on July 24, 2024

I've downloaded the maven-ant-task-2.1.3.jar manually and as you can see I'm using the "-lib" param.
I've checked the build.xml, ran the command:
$ mvn dependency:get -DartifactId=maven-ant-tasks -DgroupId=org.apache.maven -Dversion=2.1.3

the result:

[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.023s [INFO] Finished at: Sat Oct 15 14:48:55 CEST 2016 [INFO] Final Memory: 10M/238M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:get (default-cli) on project jicofo: The parameters 'repositoryUrl' for goal org.apache.maven.plugins:maven-dependency-plugin:2.1:get are missing or invalid -> [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/PluginParameterException

I've also rerun it with -X:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:get (default-cli) on project jicofo: The parameters 'repositoryUrl' for goal org.apache.maven.plugins:maven-dependency-plugin:2.1:get are missing or invalid -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:get (default-cli) on project jicofo: The parameters 'repositoryUrl' for goal org.apache.maven.plugins:maven-dependency-plugin:2.1:get are missing or invalid at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:221) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357) Caused by: org.apache.maven.plugin.PluginParameterException: The parameters 'repositoryUrl' for goal org.apache.maven.plugins:maven-dependency-plugin:2.1:get are missing or invalid at org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:576) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:529) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more [ERROR] [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/PluginParameterException

Why is this repositoryUrl missing or invalid? Should I enter it manually somewhere?

from jicofo.

damencho avatar damencho commented on July 24, 2024

Which version of maven are you using?

from jicofo.

leonidas-o avatar leonidas-o commented on July 24, 2024

running on centos 7.
$ mvn -version

Apache Maven 3.0.5 (Red Hat 3.0.5-16)
Maven home: /usr/share/maven
Java version: 1.8.0_77, vendor: Oracle Corporation
Java home: /usr/java/jdk1.8.0_77/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-327.28.3.el7.x86_64", arch: "amd64", family: "unix"

from jicofo.

damencho avatar damencho commented on July 24, 2024

Could you try downloading from https://maven.apache.org/ the latest version
and try with that? I've been having problems with the version that was in
ubuntu official repo.

On Sat, Oct 15, 2016 at 8:35 AM, Leo [email protected] wrote:

running on centos 7.
$ mvn -version

Apache Maven 3.0.5 (Red Hat 3.0.5-16)
Maven home: /usr/share/maven
Java version: 1.8.0_77, vendor: Oracle Corporation
Java home: /usr/java/jdk1.8.0_77/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-327.28.3.el7.x86_64", arch: "amd64",
family: "unix"


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#30 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADHKegzmkVDkw-LF1Xo7n_oeAwnmUSFjks5q0NajgaJpZM4GrhmE
.

from jicofo.

leonidas-o avatar leonidas-o commented on July 24, 2024

okay, got the current maven version.

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

I've done the following:

  1. rm -rf /root/.m2
    inside jicofo dir:
  2. mvn -U clean package -DskipTests -> successful
  3. mvn dependency:get -DartifactId=maven-ant-tasks -DgroupId=org.apache.maven -Dversion=2.1.3 -> surprisingly this time successful
  4. ant -lib ~/.m2/repository/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar dist.lin64 -> build failed

`BUILD FAILED
/srv/jitsi_components/jicofo/build.xml:54: Problem: failed to create task or type antlib:org.apache.maven.artifact.ant:dependencies
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
-/usr/share/ant/lib
-/root/.ant/lib
-a directory added on the command line with the -lib argument

Total time: 0 seconds
`

from jicofo.

damencho avatar damencho commented on July 24, 2024

Can you try:
mvn -U clean package -DskipTests -Dassembly.skipAssembly=false

On Sat, Oct 15, 2016 at 11:14 AM, Leo [email protected] wrote:

okay, got the current maven version.

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

I've done the following:

  1. rm -rf /root/.m2
    inside jicofo dir:
  2. mvn -U clean package -DskipTests -> successful
  3. mvn dependency:get -DartifactId=maven-ant-tasks
    -DgroupId=org.apache.maven -Dversion=2.1.3 -> surprisingly this time
    successful
  4. ant -lib ~/.m2/repository/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar
    dist.lin64 -> build failed

`BUILD FAILED
/srv/jitsi_components/jicofo/build.xml:54: Problem: failed to create task
or type antlib:org.apache.maven.artifact.ant:dependencies
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
-/usr/share/ant/lib
-/root/.ant/lib
-a directory added on the command line with the -lib argument

Total time: 0 seconds
`


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#30 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADHKepN0355CzLxAkA_IVOWbOSsah_Ctks5q0PvygaJpZM4GrhmE
.

from jicofo.

ebourgui avatar ebourgui commented on July 24, 2024

@lorsulic - I confirm : it's working with your procedure on centos 7. Thanks.

from jicofo.

coresh avatar coresh commented on July 24, 2024

Fedora 24

$ uname -a                                                                                                                                                                                                                                                            
Linux localhost.localdomain 4.7.7-200.fc24.x86_64 #1 SMP Sat Oct 8 00:21:59 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

$ java -version                                                                                                                                                                                                                                                     
openjdk version "1.8.0_102"
OpenJDK Runtime Environment (build 1.8.0_102-b14)
OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode)

apache ant v. 1.9.7 from:
http://apache-mirror.rbc.ru/pub/apache//ant/binaries/apache-ant-1.9.7-bin.tar.bz2

apache maven v. 3.3.9:
http://apache-mirror.rbc.ru/pub/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz

$ rm -rf ~/.m2

$ /mnt/sdb/softPub/apache/maven/apache-maven-3.3.9_____bin/bin/mvn -U clean package -DskipTests -Dassembly.skipAssembly=false
...
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:32 min
[INFO] Finished at: 2016-10-22T08:55:32+00:00
[INFO] Final Memory: 33M/504M
[INFO] ------------------------------------------------------------------------

$ /mnt/sdb/softPub/apache/maven/apache-maven-3.3.9_____bin/bin/mvn dependency:get -DartifactId=maven-ant-tasks -DgroupId=org.apache.maven -Dversion=2.1.3
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.581 s
[INFO] Finished at: 2016-10-22T09:00:14+00:00
[INFO] Final Memory: 20M/409M
[INFO] ------------------------------------------------------------------------

$ /mnt/sdb/softPub/apache/ant/apache-ant-1.9.7/bin/ant -lib /home/admin/.m2/repository/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar dist.lin64

Buildfile: /mnt/sdb/softPub/jitsi/jicofo_v.7/jicofo/build.xml

BUILD FAILED
/mnt/sdb/softPub/jitsi/jicofo_v.7/jicofo/build.xml:57: Problem: failed to create task or type antlib:org.apache.maven.artifact.ant:dependencies
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration. 
Action: Check that the implementing library exists in one of:
        -/usr/share/ant/lib
        -/home/admin/.ant/lib
        -a directory added on the command line with the -lib argument

from jicofo.

leonidas-o avatar leonidas-o commented on July 24, 2024

@coresh correct me if I'm wrong, but don't you get already the latest maven and ant version via your fedeora repository, so there is no need to wget the packages and do it manually. Installing it via repository should also put eachs bin directory to the PATH environment variable. Or if you want to do it manually, also put eachs bin dir to the PATH environment variable. So there is no need to type "~/Downloads/apache/maven/apache-maven-3.3.9/bin/mvn -version" instead just "mvn -version".
But yeah, ant and maven was not proper installed on your system, that's why it was not working for you. Your "Fix-Solution" is just a regular installation of ant and maven: http://maven.apache.org/install.html

Just as a hint, take a look at the linux file hirarchy: https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
you will find some useful tips where to manually install/put software/scripts etc. There is no really right or wrong, but running scripts from other places, here e.g. /home/user/Downloads leads often to a wrong SELinux context. For this case it is not risky but putting things criss-cross and just adding allow rules defeats the purpose of SELinux, in case you still have it enabled :) if not, I would recommend to it anyway as this just leads to a proper installed environment.

from jicofo.

coresh avatar coresh commented on July 24, 2024

Dear @lorsulic,

  1. IMHO: application should be builds "out-of-the-box".
  2. General goal of fix-solution not to concerning re-build/overwriting default ant, mvn distributive applications.
  3. Your attention to the smile near SELinux was superfluously for level of your experience

from jicofo.

bgrozev avatar bgrozev commented on July 24, 2024

outdated

from jicofo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.