본문 바로가기

maven

IntelliJ tomcat 구동시 유의사항 IntelliJ 로 Web application 을 구동하는 경우에 war: exploded 혹은 war 로 deploy 를 하게 된다. 보통 web application 을 개발할 시 maven 을 사용하게 되는데, IntelliJ 에서 제공하는 Make 는 library dependency 를 잘 고려하 여 컴파일을 하지만, tomcat 을 이용하여 deploy 할 경우, dependency 들을 잘 반영하여 war packaging 을 하지 못한다.그리하여 maven pom.xml 파일에 library 들을 잘 명시하더라도 막상 해당 web application 을 구동하면 NoClassFound Exception 이 발생한다.이를 방지하고자 maven 으로 package 혹은 compile 을 이.. 더보기
slick maven setting I have been working on developing Database CRUD application in Scala nowadays. As you know, writing CRUD application in Java or Scala is very tedious and needs a lot of boilerplate codes.So before knowing Slick, I have to implement all the DB connection and CRUD codes manually. But, I come to know there is a convenient component called 'Slick' which does such jobs. So I chose Slick for my DB app.. 더보기
maven - set properties file content from command line 1. enable filtering of resources like below (아래와 같이 resource filtering 을 활성화 시킨다) src/main/resources true 2. then, declare a place holder in your src/main/resources/my.properties, like below.(properties 파일에 대입할 변수를 아래와 같이, 선언한다 => ${db.server.ip}) prop1 = blah prop2 = ${db.server.ip} 3. declare properties and it's value in a profile.(maven 의 설정파일인 pom.xml 에 아래와 같이 properties 파일에 대한 변수와 값을 설정한다.).. 더보기