Check your version of commons-lang, mine was version 2.6 used sudo find / | grep commons-lang
add to the dependencies before plugins and ensure id starts with I not i:
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
Does not build as per wiki there is no controller/opendaylight/distribution/opendaylight/target in order to ./run.sh So I am looking for that now ??
Answer from Mick Williams on Stack OverflowCheck your version of commons-lang, mine was version 2.6 used sudo find / | grep commons-lang
add to the dependencies before plugins and ensure id starts with I not i:
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
Does not build as per wiki there is no controller/opendaylight/distribution/opendaylight/target in order to ./run.sh So I am looking for that now ??
Since OP did not specify details I guess this may be about running maven on Ubuntu 14.
Maven packaging on Ubuntu seems to have some "issue".
After apt-get install maven in Ubuntu 14.04.1 LTS and attempting to package my project with mvn package I got the same exception.
Workaround from comment on github is:
sudo ln -s ../../java/commons-lang.jar /usr/share/maven/lib
That fixed maven at least in my case.
Try running the following commands and examine the output:
$ mvn dependency:tree
$ mvn help:effective-pom
Look for commons-lang, maybe something will draw your attention like excludes or dependency overrides. Also, is:
$ mvn dependency:copy-dependencies
copying commons-lang JAR to your target?
Adding following dependency to pom.xml in dependencies tag helped me:
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.1</version>
</dependency>
Fixed! I have downloaded manually maven 3.5 under https://maven.apache.org/download.cgi and copied file commons-lang3-3.5.jar to C:\Program Files\NetBeans 8.2\java\maven\lib\. I'm using NetBeans 8.2 with Maven as Plug-In.
Try adding this dependency in your pom.xml:
Copy<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
Thanks for all replies, i solved it by downloading manually the .jar file from the following link and overwrite the existing jar downloaded by maven. (i don't know why it started working after manual download, but after all, its working)
http://commons.apache.org/proper/commons-lang/download_lang.cgi
If you sure that jar file includes StringEscapeUtils in the classpath you should clean the project.
Download apache-lang common from apache jakarta sie:
http://commons.apache.org/lang/
After getting jar file please put this jar in your project's build path, if you are not able to find build path then go Jdeveloper help file and type "build path" and you will get all intrustion over there.
Download commons-lang and throw it into your /WEB-INF/lib folder.
If its not a web application you have to check how you can add it to your build path with JDeveloper.
I received the same error, I added to my pom.xml file the following lines and worked fine after maven install:
<dependencies>
<!-- commons lang dependency -->
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
</dependencies>
In case you use maven and Ubuntu 14.04:
This can be caused by the maven version included in Ubuntu 14.04, and the workaround is to download the maven tarball from http://maven.apache.org/download.cgi and use that version instead of the default version provided by the distribution.
More information: https://github.com/airbnb/chronos/issues/211
EDIT: You can also add a symlink to commons-lang.jar to avoid having to do a custom install (Source and @Shoham in the comments)
cd /usr/share/maven/lib
sudo ln -s ../../java/commons-lang.jar .
Verify that the paths are correct on your system before attempting. They should work for Ubuntu 14.04 OOTB, but always verify.