Permalink
Browse files

Customizing eclipse build.

Putting elipse classes in eclipse-classes.  If they're
co-located with target, the two compilers (maven and eclipse)
step on each others' toes.  Also customizing the project names.

A bit of a mystery whether this needs to happen in all the
poms or just some of them, but this seems to work.
  • Loading branch information...
1 parent 0c29545 commit 09f4418d508b1dcb67e2431381c37668b84ab4db Philip Zeyliger committed May 12, 2012
Showing with 35 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +12 −1 attach-api/pom.xml
  3. +9 −0 core/pom.xml
  4. +1 −1 jtop/pom.xml
  5. +12 −1 pom.xml
View
@@ -2,3 +2,4 @@ target/
.classpath
.settings
.project
+eclipse-classes
View
@@ -16,6 +16,17 @@
<target>1.6</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins </groupId>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.9</version>
+ <configuration>
+ <projectNameTemplate>jvmtools-${project.artifactId}</projectNameTemplate>
+ <buildOutputDirectory>eclipse-classes</buildOutputDirectory>
+ <downloadSources>true</downloadSources>
+ <downloadJavadocs>true</downloadJavadocs>
+ </configuration>
+ </plugin>
</plugins>
</build>
-</project>
+</project>
View
@@ -36,6 +36,15 @@
<target>1.6</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins </groupId>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.9</version>
+ <configuration>
+ <buildOutputDirectory>eclipse-classes</buildOutputDirectory>
+ <projectNameTemplate>jvmtools-${project.artifactId}</projectNameTemplate>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>
View
@@ -48,4 +48,4 @@
</plugin>
</plugins>
</build>
-</project>
+</project>
View
13 pom.xml
@@ -22,7 +22,18 @@
<target>1.6</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins </groupId>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.9</version>
+ <configuration>
+ <projectNameTemplate>jvmtools-${project.artifactId}</projectNameTemplate>
+ <buildOutputDirectory>eclipse-classes</buildOutputDirectory>
+ <downloadSources>true</downloadSources>
+ <downloadJavadocs>true</downloadJavadocs>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
</build>
-</project>
+</project>

0 comments on commit 09f4418

Please sign in to comment.