]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed scopes for generated Maven pom.xml files (#9299)
authorArtur Signell <artur@vaadin.com>
Wed, 29 Aug 2012 11:43:31 +0000 (14:43 +0300)
committerArtur Signell <artur@vaadin.com>
Sun, 9 Sep 2012 08:22:59 +0000 (11:22 +0300)
client/build.xml
client/ivy.xml
common.xml
server/ivy.xml

index 99dbb268d5389f294cc0539c486d85dd1fc860a6..09c22ab36ed32d78572a0503e0e5d380af0e52e9 100644 (file)
        <property name="result.dir" value="result" />
 
        <path id="classpath.compile.custom">
-               <fileset file="${gwt.user.jar}"/>
+               <!-- Could possibly compile GWT files also here to verify that
+               a) the same dependencies are used and
+               b) all dependencies have been declared
+               -->
+               <fileset file="${gwt.user.jar}" />
        </path>
 
        <target name="jar">
index 953ca51a61e3c13051ab03d5df195c9609c1d0f4..1e2bc41bd4940df39f29c2b78d2d94dff65af0e5 100644 (file)
     <publications>
         <artifact></artifact>
     </publications>
-    <dependencies>
+    <dependencies defaultconf="build" defaultconfmapping="build,ide->master">
+        <!-- API DEPENDENCIES -->
+
+        <!-- LIBRARY DEPENDENCIES (compile time) -->
+        <!-- Project modules -->
         <dependency org="com.vaadin" name="vaadin-shared"
-            rev="${vaadin.version}" conf="build"></dependency>
+            rev="${vaadin.version}" conf="build->build"></dependency>
         <dependency org="com.vaadin" name="vaadin-server"
-            rev="${vaadin.version}" conf="build"></dependency>
+            rev="${vaadin.version}" conf="build->build"></dependency>
 
-        <!-- gwt-dev dependencies -->
-        <dependency org="net.sourceforge.cssparser" name="cssparser"
-            rev="0.9.5" />
+        <!-- gwt-user dependencies -->
+        <dependency org="org.w3c.css" name="sac" rev="1.3"
+            conf="build" />
 
     </dependencies>
 
index 7eef3f1b00cc59932b901835e14f16ec395c60fa..2e9341c4236c2f12f0ec932ab3f3be07b45fced8 100644 (file)
@@ -21,9 +21,9 @@
                <fail unless="result.dir" message="No result.dir parameter given" />
                <property name="ivy.xml" location="${result.dir}/../ivy.xml" />
                <property name="pom.xml" location="${result.dir}/pom.xml" />
-               <ivy:makepom templatefile="${vaadin.basedir}/pom-template.xml" ivyfile="${ivy.xml}" pomfile="${pom.xml}" conf="compile, runtime">
-                       <mapping conf="compile" scope="compile" />
-                       <mapping conf="runtime" scope="runtime" />
+               <ivy:makepom templatefile="${vaadin.basedir}/pom-template.xml" ivyfile="${ivy.xml}" pomfile="${pom.xml}" conf="build, build-provided">
+                       <mapping conf="build" scope="compile" />
+                       <mapping conf="build-provided" scope="provided" />
                </ivy:makepom>
        </target>
 
        </target>
 
        <target name="dependencies" description="Resolves dependencies needed by this module">
-               <ivy:resolve resolveid="common" conf="build" />
-               <ivy:cachepath pathid="classpath.compile.dependencies" conf="build" />
+               <ivy:resolve resolveid="common" conf="build, build-provided" />
+               <ivy:cachepath pathid="classpath.compile.dependencies" conf="build, build-provided" />
        </target>
 
        <target name="clean">
index 0d0a12257597a35dc0cbbe3f30a150dc49c607c4..7f964f01f22de57f7fe94d537132cd7bd4095042 100644 (file)
@@ -8,6 +8,7 @@
 
     <configurations>
         <conf name="build" />
+        <conf name="build-provided" />
         <conf name="ide" />
         <conf name="tests" />
     </configurations>
         <artifact></artifact>
     </publications>
     <dependencies>
+        <!-- API DEPENDENCIES -->
+
         <!-- Liferay Portal Service -->
         <dependency org="com.liferay.portal" name="portal-service"
-            rev="6.0.2" />
+            rev="6.0.2" conf="build-provided,ide -> master" />
         <!--Servlet API version 2.5 -->
         <dependency org="javax.servlet" name="servlet-api"
-            rev="2.5" />
+            rev="2.5" conf="build-provided,ide -> master" />
 
         <!--Portlet API version 2.0 (JSR-286) -->
         <dependency org="javax.portlet" name="portlet-api"
-            rev="2.0" />
+            rev="2.0" conf="build-provided,ide -> master" />
+
         <!-- Google App Engine -->
         <dependency org="com.google.appengine" name="appengine-api-1.0-sdk"
-            rev="1.2.1" />
+            rev="1.2.1" conf="build-provided,ide -> master" />
         <dependency org="javax.validation" name="validation-api"
-            rev="1.0.0.GA" conf="build,ide->master,sources" />
+            rev="1.0.0.GA" conf="build-provided,ide -> master" />
+
+        <!-- LIBRARY DEPENDENCIES (compile time) -->
+        <!-- Project modules -->
+        <dependency org="com.vaadin" name="vaadin-shared"
+            rev="${vaadin.version}" conf="build"></dependency>
+        <dependency org="com.vaadin" name="vaadin-buildhelpers"
+            rev="${vaadin.version}" conf="build"></dependency>
+
         <!-- Jsoup for BootstrapHandler -->
-        <dependency org="org.jsoup" name="jsoup" rev="1.6.3" />
+        <dependency org="org.jsoup" name="jsoup" rev="1.6.3"
+            conf="build,ide -> master" />
+
+        <!-- TESTING DEPENDENCIES -->
 
         <!-- TestBench tests -->
         <dependency org="commons-codec" name="commons-codec"
         <dependency org="junit" name="junit" rev="4.5"
             conf="tests,ide -> master" />
         <dependency org="org.easymock" name="easymock" rev="3.0"
-            conf="tests,ide-> master, runtime(*)" />
+            conf="tests,ide-> master" />
         <dependency org="org.hsqldb" name="hsqldb" rev="2.2.6"
-            conf="tests,ide -> master, runtime(*)" />
+            conf="tests,ide -> master" />
 
-        <!-- Project modules -->
-        <dependency org="com.vaadin" name="vaadin-shared"
-            rev="${vaadin.version}" conf="build"></dependency>
-        <dependency org="com.vaadin" name="vaadin-buildhelpers"
-            rev="${vaadin.version}" conf="build"></dependency>
     </dependencies>
 
 </ivy-module>