Pages

Showing posts with label Maven. Show all posts
Showing posts with label Maven. Show all posts

Thursday, January 16, 2014

Install Maven on Linux

http://stackoverflow.com/questions/12076326/how-to-install-maven2-on-redhat-linux

From the command line; you should be able to simply do:
wget http://mirrors.digipower.vn/apache/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz
  1. Run command above from the dir you want to extract maven to (e.g. /usr/local/apache-maven)
  2. run the following to extract the tar:
    tar xvf apache-maven-3.0.4-bin.tar.gz
  3. Next add the env varibles such as
    export M2_HOME=/usr/local/apache-maven/apache-maven-3.0.4
    export M2=$M2_HOME/bin
    export PATH=$M2:$PATH
  4. Verify
    mvn -version

Thursday, April 4, 2013

[Maven - POM file] javax.servlet:jsp-api:jar:2.1 is missing, no dependency information available

Trong maven web app project. 

BUILD FAILURE : The POM for javax.servlet:jsp-api:jar:2.1 is missing, no dependency information available

Với cấu hình maven dependency trong pom.xml.
Nguyên nhân : Servlet 2.5 đi với jsp 2.1, lỗi do groupId của jsp-api không đúng. Từ jsp 2.1 groupId sẽ là javax.servlet.jsp thay cho javax.servlet như các version trước.

Fixed :
Hoặc ta có thể sử dụng cặp  servlet 2.4 đi với jsp 2.0