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

Can't build chronos on Fedora 20 - StringUtils missing #216

Closed
gregsheremeta opened this issue May 20, 2014 · 5 comments
Closed

Can't build chronos on Fedora 20 - StringUtils missing #216

gregsheremeta opened this issue May 20, 2014 · 5 comments

Comments

@gregsheremeta
Copy link

Can't build chronos on Fedora 20. http://pastebin.com/w1fuY3si

This happens for me on both 2.1.0 and master.

Mesos is already installed via RPM.

[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.1.0:compile (scala-compile-first) on project chronos: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.1.0:compile failed: A required class was missing while executing net.alchim31.maven:scala-maven-plugin:3.1.0:compile: org/apache/commons/lang/StringUtils
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>net.alchim31.maven:scala-maven-plugin:3.1.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy

I tried adding commons-lang directly into the scala-maven-plugin pom. I also tried adding it as a plugin dependency in chronos's pom. No effect.

greg@starbase:~/chronos/chronos-2.1.0$ locate commons-lang
/home/greg/.m2/repository/commons-lang
/home/greg/.m2/repository/commons-lang/commons-lang
/home/greg/.m2/repository/commons-lang/commons-lang/2.1
/home/greg/.m2/repository/commons-lang/commons-lang/2.4
/home/greg/.m2/repository/commons-lang/commons-lang/2.5
/home/greg/.m2/repository/commons-lang/commons-lang/2.1/_remote.repositories
/home/greg/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.pom
/home/greg/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.pom.lastUpdated
/home/greg/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.pom.sha1
/home/greg/.m2/repository/commons-lang/commons-lang/2.4/_remote.repositories
/home/greg/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.pom
/home/greg/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.pom.lastUpdated
/home/greg/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.pom.sha1
/home/greg/.m2/repository/commons-lang/commons-lang/2.5/_remote.repositories
/home/greg/.m2/repository/commons-lang/commons-lang/2.5/commons-lang-2.5.jar
/home/greg/.m2/repository/commons-lang/commons-lang/2.5/commons-lang-2.5.jar.lastUpdated
/home/greg/.m2/repository/commons-lang/commons-lang/2.5/commons-lang-2.5.jar.sha1
/home/greg/.m2/repository/commons-lang/commons-lang/2.5/commons-lang-2.5.pom
/home/greg/.m2/repository/commons-lang/commons-lang/2.5/commons-lang-2.5.pom.lastUpdated
/home/greg/.m2/repository/commons-lang/commons-lang/2.5/commons-lang-2.5.pom.sha1
/usr/share/doc/apache-commons-lang
/usr/share/doc/apache-commons-lang/LICENSE.txt
/usr/share/doc/apache-commons-lang/NOTICE.txt
/usr/share/doc/apache-commons-lang/PROPOSAL.html
/usr/share/doc/apache-commons-lang/RELEASE-NOTES.txt
/usr/share/java/apache-commons-lang.jar
/usr/share/java/commons-lang.jar
/usr/share/maven-effective-poms/JPP-apache-commons-lang.pom
/usr/share/maven-fragments/apache-commons-lang.xml
/usr/share/maven-poms/JPP-apache-commons-lang.pom
greg@starbase:~/chronos/chronos-2.1.0$ yum list install apache-commons-lang
Loaded plugins: etckeeper, langpacks, refresh-packagekit
Installed Packages
apache-commons-lang.noarch                                            2.6-13.fc20                                            @fedora
greg@starbase:~/chronos/chronos-2.1.0$

Perhaps something to do with apache-commons-lang being installed?

@alex-wells
Copy link

I was suffering the same problem with commons-lang; after much head-scratching it turns out you need to do

mvn dependency:purge-local-repository 

as commons-lang has somehow become corrupted. When you next compile or package, all the dependencies will be refreshed and should download correctly for you

@beenhead
Copy link

Helped with Ubuntu build as well - thanks!

@gregsheremeta
Copy link
Author

Doesn't help me on Fedora 20. I can even delete my entire ~/.m2/repository and that doesn't work.

Thanks, though.

Chronos devs? Help please?

@lingmann
Copy link

@gregsheremeta This might be related to the issue we are seeing when building Chronos on Ubuntu 14.04. See my comment on #211 for a possible workaround...

@gregsheremeta
Copy link
Author

@lingmann THANK YOU. That did it.

So, like Ubuntu, it is an issue with the default maven install provided with Fedora 20.
Downloading 3.0.5 and running that directly does the trick.

~/apache-maven-3.0.5/bin/mvn package

Cheers.

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

5 participants