Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on Maven

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

The Central Repository

$HOME/.m2

maven: shade plugin, scala compile plugin, exclude manifest files, ...

import as maven project ...

find an updated version of scala archetype for maven

mvn package  
mvn clean package  
mvn compile  
mvn build  
mvn -e build

intellij scala mavn archtype is too ooooooooooold!!! wait for generate complete and then manaully update the pom file

Maven

https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/hdinsight/hdinsight-apache-spark-create-standalone-application.md

How to define a customized archetype for IntelliJ? If you use maven in intellij for scala, after choose archetype, update the old pom content!!!

http://maven.apache.org/

Configuration

Configuring Maven

You can either set up a proxy or mirror repositories to speed up Maven compilation (in China). Both of them are good ways and are easy to set up.

Using Mirrors for Repositories

Configuring a proxy

http://search.maven.org/#search%7Cga%7C1%7C

https://maven.apache.org/guides/introduction/introduction-to-archetypes.html

Comments