On the command line
mvn install:install-file -Dfile=../DirtyMaths/target/dirtymaths-1.0.0-SNAPSHOT.jar -DgroupId=com.chrisnewland.dirtymaths -DartifactId=dirtymaths -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar
Edit your pom:
<dependency>
<groupId>com.chrisnewland.dirtymaths</groupId>
<artifactId>dirtymaths</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<groupId>com.chrisnewland.dirtymaths</groupId>
<artifactId>dirtymaths</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
I learnt this from mkyong: http://www.mkyong.com/maven/how-to-include-library-manully-into-maven-local-repository/