You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by jb...@apache.org on 2006/08/31 17:00:39 UTC

svn commit: r438948 - /incubator/tuscany/java/pom/parent/pom.xml

Author: jboynes
Date: Thu Aug 31 08:00:38 2006
New Revision: 438948

URL: http://svn.apache.org/viewvc?rev=438948&view=rev
Log:
add eclipse and sourcecheck profiles to parent pom

Modified:
    incubator/tuscany/java/pom/parent/pom.xml

Modified: incubator/tuscany/java/pom/parent/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/pom/parent/pom.xml?rev=438948&r1=438947&r2=438948&view=diff
==============================================================================
--- incubator/tuscany/java/pom/parent/pom.xml (original)
+++ incubator/tuscany/java/pom/parent/pom.xml Thu Aug 31 08:00:38 2006
@@ -26,6 +26,7 @@
     </parent>
     <groupId>org.apache.tuscany</groupId>
     <artifactId>parent</artifactId>
+    <packaging>pom</packaging>
     <name>Apache Tuscany Project Parent</name>
     <description>Parent POM defining settings that can be used across Tuscany</description>
     <version>1-SNAPSHOT</version>
@@ -34,6 +35,10 @@
         <maven>2.0.4</maven>
     </prerequisites>
 
+    <properties>
+        <notice.dir>.</notice.dir>
+    </properties>
+
     <scm>
         <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/tuscany/java</connection>
         <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/tuscany/java</developerConnection>
@@ -61,4 +66,43 @@
             <url>scp://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
         </snapshotRepository>
     </distributionManagement>
+
+    <profiles>
+        <profile>
+            <!-- this is kind of a hack for eclipse.   Eclipse doesn't like "." as a resource directory as then you have
+            source directories inside a source directory which causes all kinds of errors.  We'll just point
+            the resources directory back to the resources directory.   The NOTICE and LICSENSE files
+            won't be included in the eclipse builds, but it at least works.
+            -->
+            <id>eclipse</id>
+            <properties>
+                <notice.dir>src/main/resources</notice.dir>
+            </properties>
+        </profile>
+        <profile>
+            <id>sourcecheck</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-checkstyle-plugin</artifactId>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-pmd-plugin</artifactId>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-compiler-plugin</artifactId>
+                        <configuration>
+                            <source>1.5</source>
+                            <target>1.5</target>
+                            <showDeprecation>true</showDeprecation>
+                            <compilerArgument>-Xlint:unchecked,deprecation,fallthrough,finally</compilerArgument>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org