A project in my university requires the .git and .gitingnore to be outside the project folder. However it also requires that my .gitignore be included in the zip created by a maven package. I have put the .git, .gitignore and the project in the same parent folder. Basically what I am trying to achieve is something like this in the .xml file concerned with the maven zip plugin:
<fileSet>
<directory>../</directory>
<includes>
<include>.gitignore</include>
</includes>
<outputDirectory>./</outputDirectory>
</fileSet>
in order to be able to access the .gitignore that is in the parent folder. this however obviously does not work. Is there any way I could get a similar result?
the .gitignore file is excluded by maven from the zip. To include it, the following tag has to be put before the tag:
<useDefaultExcludes>false</useDefaultExcludes>