Author: remy.maucherat(a)jboss.com
Date: 2008-04-29 11:04:39 -0400 (Tue, 29 Apr 2008)
New Revision: 600
Added:
trunk/res/pom.xml
Modified:
trunk/dist.xml
Log:
- Add Maven support from Paul Gier. Of course it doesn't work.
- Error is:
[exec] [INFO]
------------------------------------------------------------------------
[exec] [ERROR] BUILD ERROR
[exec] [INFO]
------------------------------------------------------------------------
[exec] [INFO] Error deploying artifact: Unsupported Protocol: 'dav': Cannot
find wagon which supports the requested protocol: dav
[exec]
[exec] Component descriptor cannot be found in the component repository:
org.apache.maven.wagon.Wagondav.
[exec] [INFO]
------------------------------------------------------------------------
Modified: trunk/dist.xml
===================================================================
--- trunk/dist.xml 2008-04-28 18:42:26 UTC (rev 599)
+++ trunk/dist.xml 2008-04-29 15:04:39 UTC (rev 600)
@@ -283,6 +283,36 @@
</target>
+ <target name="maven" description="Upload to Maven repository; if this
looks like a hack, it's because it's one">
+
+ <filter token="VERSION" value="${version}"/>
+ <copy file="res/pom.xml" todir="${tomcat.jars}"
filtering="true"/>
+
+ <property name="jbossweb.jar.location"
value="output/jars/jbossweb.jar"/>
+
+ <!-- Use this to deploy release versions. The url should point to a local
+ - checkout of
repository.jboss.org. -->
+ <!--<property name="maven.repository.url"
value="dav:https://repository.jboss.org/maven2"/>
+ <property name="maven.repository.id"
value="repository.jboss.org"/>-->
+
+ <!-- Use this url to deploy to the snapshot repository -->
+ <property name="maven.repository.url"
value="dav:https://snapshots.jboss.org/maven2"/>
+ <property name="maven.repository.id"
value="snapshots.jboss.org"/>
+
+ <!-- Linux/Unix execs -->
+ <exec dir="." executable="/bin/sh" os="Linux">
+ <arg value="-c" />
+ <arg value="mvn deploy:deploy-file -Dfile=${jbossweb.jar.location}
-DpomFile=${tomcat.jars}/pom.xml -Durl=${maven.repository.url} -Dpackaging=jar
-DrepositoryId=${maven.repository.id}"/>
+ </exec>
+
+ <!-- Windows exec -->
+ <exec dir="." executable="cmd" os="Windows NT">
+ <arg value="/c" />
+ <arg value="mvn deploy:deploy-file -Dfile=${jbossweb.jar.location}
-DpomFile=${tomcat.jars}\\pom.xml -Durl=${maven.repository.url} -Dpackaging=jar
-DrepositoryId=${maven.repository.id}"/>
+ </exec>
+
+ </target>
+
<!-- Packages the core zip distro -->
<target name="package-zip">
<copy todir="${tomcat.dist}/bin">
Added: trunk/res/pom.xml
===================================================================
--- trunk/res/pom.xml (rev 0)
+++ trunk/res/pom.xml 2008-04-29 15:04:39 UTC (rev 600)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-parent</artifactId>
+ <version>3</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>jboss</groupId>
+ <artifactId>jbossweb</artifactId>
+ <version>@VERSION@</version>
+ <description>JBoss Web</description>
+</project>