Bring some reliability in the eclipse and maven mixed builds 79/2679/1
authorGiovanni Meo <gmeo@cisco.com>
Tue, 12 Nov 2013 19:00:04 +0000 (20:00 +0100)
committerGiovanni Meo <gmeo@cisco.com>
Tue, 12 Nov 2013 19:00:04 +0000 (20:00 +0100)
Please look at:
https://lists.opendaylight.org/pipermail/controller-dev/2013-November/002083.html
for explanation of the issue and fix provided by:
http://stackoverflow.com/questions/10208313/eclipse-auto-build-output-interacts-with-maven-command-line-build-output

Change-Id: Ie91105f5efb9448f3dff4136d9de046069ac191f
Signed-off-by: Giovanni Meo <gmeo@cisco.com>
.gitignore
opendaylight/commons/opendaylight/pom.xml
opendaylight/md-sal/pom.xml

index 1f0563ac05660ff15bbde44d5b2e481c8b87a884..bb3e26faf5ee24f0f3080cbd311a87c55f7430b2 100644 (file)
@@ -8,6 +8,7 @@ repository
 workspace
 *~
 target
+target-ide
 .classpath
 .project
 .settings
index 2a818067cec223101b907c90a79d4a4f84cea622..8feb1600b5f9c84e444f3a060d84ae418e1015f9 100644 (file)
   </pluginRepositories>
 
   <profiles>
+    <profile>
+      <id>IDE</id>
+      <activation>
+        <property>
+          <name>m2e.version</name>
+        </property>
+      </activation>
+      <build>
+        <!-- Put the IDE's build output in a folder other than target, so that IDE builds don't interact with Maven builds -->
+        <directory>target-ide</directory>
+      </build>
+    </profile>
     <profile>
       <id>viewbuild</id>
       <activation>
       </plugins>
     </pluginManagement>
   </build>
-
-  <dependencies>
-  </dependencies>
 </project>
index 1ff7f2dc302e1218f8a494cdb0b4f0c9811a7548..99ce4933b5483a8f2eaccd0c09332ea63b1d2ae8 100644 (file)
                 <module>test</module>
             </modules>
         </profile>
+        <profile>
+          <id>IDE</id>
+          <activation>
+            <property>
+              <name>m2e.version</name>
+            </property>
+          </activation>
+          <build>
+            <!-- Put the IDE's build output in a folder other than target, so that IDE builds don't interact with Maven builds -->
+            <directory>target-ide</directory>
+          </build>
+        </profile>
     </profiles>
 
     <properties>