I know that I know nothing

change default tomcat port in maven tomcat using maven parameter

clock September 5, 2015 20:22 by author Administrator

i want to run one app in two port for test in spring-session and redis Cool :D

mvn tomcat:run -Dmaven.tomcat.port=8081

change default tomcat webapp directory in maven tomcat 7 plugin

clock July 29, 2015 18:53 by author Administrator









create custom dependency in maven

clock April 9, 2015 18:33 by author Administrator

mvn install:install-file -Dfile=/azizkhani/font.jar -DgroupId=org.roshan  -DartifactId=font -Dversion=1 -Dpackaging=jar

install maven in mac os

clock November 14, 2014 20:55 by author Administrator

brew install maven

maven test

clock October 7, 2012 22:42 by author Administrator

go to directory that have .pom

write this line

mvn -Dtest=TestApp1#testPrintHelloWorld test

package com.core;
public class App {
	public static void main(String[] args) {
	public static String getHelloWorld() {
		return "Hello World";
	public static String getHelloWorld2() {
		return "Hello World 2";

package com.core;
import junit.framework.Assert;
import org.junit.Test;
public class TestApp1 {
	public void testPrintHelloWorld() {
		Assert.assertEquals(App.getHelloWorld(), "Hello World");

About the author

 Welcome to this web site . This page has two purposes: Sharing information about my professional life such as articles, presentations, etc.
This website is also a place where I would like to share content I enjoy with the rest of the world. Feel free to take a look around, read my blog

Java,J2EE,Spring Framework,JQuery,

Hibernate,NoSql,Cloud,SOA,Rest WebService and Web Stack tech...


Month List

Sign In