maveeeeeeeeeeeeeeeen

详见:http://maven.apache.org/general.html

指定为UTF-8编码

<properties>

        <spring.version>3.2.7.RELEASE</spring.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

    </properties>

跳过测试

-DskipTests=true

force update
http://stackoverflow.com/questions/4701532/force-maven-update

mvn clean install -U

-U seems to force update of all dependencies. If you want to update a single dependency without clean or -U you could just remove it from your local repo and then build. The example below if for updating slf4j-api 1.7.1-SNAPSHOT:

rm -rf ~/.m2/repository/org/slf4j/slf4j-api/1.7.1-SNAPSHOT
mvn compile

你可能感兴趣的:(maven)