Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the hidden features of Maven2? [closed]

What are the hidden features of Maven2?

like image 250
Kuukage Avatar asked Nov 22 '08 11:11

Kuukage


2 Answers

Take a look at dependency:analyze as well.

like image 26
Brian Fox Avatar answered Nov 07 '22 17:11

Brian Fox


You can use the settings.xml to force ALL maven builds running on your local machine to also use a locally installed maven proxy. Saving yourself and the network time.

<settings xmlns="http://maven.apache.org/POM/4.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                  http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <profile>
        <id>localcacheproxies</id>

        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>

        <repositories>
            <repository>
                <id>localCacheProxy</id>
                <url>http://my-local-proxy.com/maven-proxy</url>
            </repository>
        </repositories>
    </profile>
</profiles>

Note that the namespace headings in this settings.xml also gives a decent intellisense as opposed to other examples posted here. (create in your home directory .m2 folder on windows, linux and mac and all os'es)

like image 141
krosenvold Avatar answered Nov 07 '22 15:11

krosenvold