Skip to content

Commit

Permalink
eclipse: use target-ide/ instead of target/ as output folder under M2E
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Aug 21, 2018
1 parent 8d7129b commit a9f5fa5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
!.gitignore
!.travis.yml
target/
target-ide/
*.iml
logs/
*.releaseBackup
Expand Down
19 changes: 16 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@
</goals>
<configuration>
<sources>
<source>${basedir}/target/generated-sources</source>
<source>${basedir}/${project.build.directory}/generated-sources</source>
</sources>
</configuration>
</execution>
Expand Down Expand Up @@ -424,7 +424,7 @@
</goals>
<configuration>
<!-- Sets the path to the file which contains the execution data. -->
<dataFile>target/jacoco.exec</dataFile>
<dataFile>${project.build.directory}/jacoco.exec</dataFile>
</configuration>
</execution>
</executions>
Expand Down Expand Up @@ -476,7 +476,7 @@
The file is:
target/classes/META-INF/maven/dependencies.properties
${project.build.directory}/classes/META-INF/maven/dependencies.properties
-->
<plugin>
<groupId>org.apache.servicemix.tooling</groupId>
Expand Down Expand Up @@ -773,6 +773,19 @@
</plugins>
</build>
</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>

<distributionManagement>
Expand Down

0 comments on commit a9f5fa5

Please sign in to comment.