update so addl source paths added automatically in eclipse, with exclusions 
modified as appropriate for cli maven or for m2e eclipse maven


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/commit/b9e25d89
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/tree/b9e25d89
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/diff/b9e25d89

Branch: refs/heads/0.4.0
Commit: b9e25d89f9c766c5231b34a0bc794e93726925ac
Parents: 77dc439
Author: Alex Heneveld <[email protected]>
Authored: Fri Jul 27 12:56:14 2012 +0100
Committer: Alex Heneveld <[email protected]>
Committed: Fri Jul 27 12:56:14 2012 +0100

----------------------------------------------------------------------
 usage/web-console/pom.xml | 101 +++++++++++++++++++++++++++++++++++++----
 1 file changed, 92 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/b9e25d89/usage/web-console/pom.xml
----------------------------------------------------------------------
diff --git a/usage/web-console/pom.xml b/usage/web-console/pom.xml
index 960127a..9e32adc 100644
--- a/usage/web-console/pom.xml
+++ b/usage/web-console/pom.xml
@@ -375,6 +375,98 @@
                 </plugins>
             </build>
         </profile>
+        <!-- preventing compiler from doing anything during compile phase, as 
grails does what it needs
+             (when we aren't running from eclipse, that is; if running in 
eclipse our exclusions impact build path) -->
+        <profile>
+            <id>cli_brooklyn-web-console</id>
+            <activation>
+                <property>
+                    <name>!m2e.version</name>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-compiler-plugin</artifactId>
+                        <configuration>
+                            <excludes>
+                                <exclude>**/*.*</exclude>
+                            </excludes>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+        <!--  when running in eclipse we need these (profile automatically 
activated by m2e.version property set by m2e) -->
+        <profile>
+            <id>org.eclipse.m2e_brooklyn-web-console</id>
+            <activation>
+                <property>
+                    <name>m2e.version</name>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>build-helper-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>add-source</id>
+                                <phase>generate-sources</phase>
+                                <goals>
+                                    <goal>add-source</goal>
+                                </goals>
+                                <configuration>
+                                    <sources>
+                                        <source>grails-app/conf</source>
+                                        <source>grails-app/controllers</source>
+                                        <source>grails-app/domain</source>
+                                        <source>grails-app/i18n</source>
+                                        <source>grails-app/services</source>
+                                        <source>grails-app/taglib</source>
+                                        <source>grails-app/utils</source>
+                                        <source>grails-app/views</source>
+                                    </sources>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+                <pluginManagement>
+                    <plugins>
+                        <plugin>
+                            <groupId>org.eclipse.m2e</groupId>
+                            <artifactId>lifecycle-mapping</artifactId>
+                            <version>1.0.0</version>
+                            <configuration>
+                                <lifecycleMappingMetadata>
+                                    <pluginExecutions>
+                                        <!-- not sure if this is needed, but 
moving it from root pom at least is an improvement -->
+                                        <pluginExecution>
+                                            <pluginExecutionFilter>
+                                                <groupId>org.grails</groupId>
+                                                
<artifactId>grails-maven-plugin</artifactId>
+                                                
<versionRange>[1.3.7,)</versionRange>
+                                                <goals>
+                                                    <goal>init</goal>
+                                                    
<goal>config-directories</goal>
+                                                    <goal>maven-compile</goal>
+                                                    <goal>maven-war</goal>
+                                                </goals>
+                                            </pluginExecutionFilter>
+                                            <action>
+                                                <ignore />
+                                            </action>
+                                        </pluginExecution>
+                                    </pluginExecutions>
+                                </lifecycleMappingMetadata>
+                            </configuration>
+                        </plugin>
+                    </plugins>
+                </pluginManagement>
+            </build>
+        </profile>
     </profiles>
 
     <build>
@@ -431,15 +523,6 @@
                 </configuration>
             </plugin>
             <plugin>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <configuration>
-                    <!-- preventing compiler from doing anything during 
compile phase -->
-                    <excludes>
-                        <exclude>**/*.*</exclude>
-                    </excludes>
-                </configuration>
-            </plugin>
-            <plugin>
                 <artifactId>maven-jar-plugin</artifactId>
                 <executions>
                     <execution>

Reply via email to