Skip to content

Instantly share code, notes, and snippets.

@koraktor
Created April 15, 2011 07:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koraktor/921286 to your computer and use it in GitHub Desktop.
Save koraktor/921286 to your computer and use it in GitHub Desktop.
Using a Git submodule as Maven parent project
_
\
project
|
|--.git--...
|
|--parent
| |
| |--.git
| |
| |--src
| | |
| | |--main
| | | |
| | | |--java--...
| | | \--resources--...
| | |
| | \--test
| | |
| | |--java--...
| | \--resources--...
| |
| \--pom.xml
|
|--src
| |
| |--main
| | |
| | |--java-...
| | \--resources-...
| |
| \--test
| |
| |--java-...
| \--resources-...
|
\--pom.xml
<project ...>
...
<parent>
<groupId>com.example</groupId>
<artifactId>parent</artifactId>
<version>1.0.0</version>
<relativePath>parent</relativePath>
</parent>
...
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment