Anticipate future fix for missing .gitignore in archetypes' projects 06/39106/3
authorMichael Vorburger <vorburger@redhat.com>
Thu, 19 May 2016 12:13:59 +0000 (14:13 +0200)
committerTom Pantelis <tpanteli@brocade.com>
Tue, 14 Jun 2016 22:00:19 +0000 (22:00 +0000)
see https://issues.apache.org/jira/browse/MRESOURCES-190 (or
http://stackoverflow.com/questions/7981060/maven-archetype-plugin-doesnt-let-resources-in-archetype-resources-through/37322323#37322323)

BTW: The current solution in
opendaylight-startup/src/main/resources/META-INF/maven/archetype-metadata.xml
doesn't seem to work (for me; I don't get a .gitignore ..). At least
with this it will work when we'll upgrade from current
maven-resources-plugin 2.7 to 3.0 (not yet released) some time in the
future.

PS: The removed /config/.gitignore is an unrelated minor clean.

Change-Id: I3d7d8708eb128d975879094f3775439e11721668
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
opendaylight/archetypes/pom.xml
opendaylight/config/config-api/.gitignore [deleted file]

index b22b37c..c1b7463 100644 (file)
         </plugin>
       </plugins>
     </pluginManagement>
         </plugin>
       </plugins>
     </pluginManagement>
+    <plugins>
+      <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-resources-plugin</artifactId>
+          <configuration>
+            <!-- Required so that .gitignore gets included in archetypes; see https://issues.apache.org/jira/browse/MRESOURCES-190 -->
+            <addDefaultExcludes>false</addDefaultExcludes>
+          </configuration>
+      </plugin>
+    </plugins>
   </build>
 
   <modules>
   </build>
 
   <modules>
diff --git a/opendaylight/config/config-api/.gitignore b/opendaylight/config/config-api/.gitignore
deleted file mode 100644 (file)
index 6590c79..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-target
-.classpath
-.settings
-/target

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.