Author: snoopdave Date: Fri Aug 10 09:36:21 2007 New Revision: 564665 URL: http://svn.apache.org/viewvc?view=rev&rev=564665 Log: Applying patch for: "Minimalistic maven integration" http://opensource.atlassian.com/projects/roller/browse/ROL-1527
"This patch roller_maven_ant_task_070810.patch (roller trunk #564549) enables deployment of the roller-weblogger.war file to a remote maven repository. Deployment is done via a new ant target (in the top level build.xml) by usage of the maven-ant-task. After installing this patch and the maven-ant-tasks-2.0.7.jar (from http://maven.apache.org/download.html) into roller_base_dir/tools/buildtime/maven/ you will be able to deploy the war file by issuing 'ant mvn-deploy'. " Added: roller/trunk/apps/weblogger/pom_ant_weblogger.xml Modified: roller/trunk/build.xml Added: roller/trunk/apps/weblogger/pom_ant_weblogger.xml URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/pom_ant_weblogger.xml?view=auto&rev=564665 ============================================================================== --- roller/trunk/apps/weblogger/pom_ant_weblogger.xml (added) +++ roller/trunk/apps/weblogger/pom_ant_weblogger.xml Fri Aug 10 09:36:21 2007 @@ -0,0 +1,11 @@ +<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"> + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.roller</groupId> + <artifactId>roller-weblogger</artifactId> + <name>Roller :: Weblogger :: Ant-WAR</name> + <version>4.0-SNAPSHOT</version> + <packaging>war</packaging> + +</project> \ No newline at end of file Modified: roller/trunk/build.xml URL: http://svn.apache.org/viewvc/roller/trunk/build.xml?view=diff&rev=564665&r1=564664&r2=564665 ============================================================================== --- roller/trunk/build.xml (original) +++ roller/trunk/build.xml Fri Aug 10 09:36:21 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<project name="toplevel" default="build" basedir="."> +<project name="toplevel" default="build" basedir="." xmlns:artifact="urn:maven-artifact-ant"> <!-- Build/test script intended to be run by build/test server. @@ -38,5 +38,25 @@ <ant dir="apps/planet" target="test" /> <ant dir="apps/weblogger" target="tests" /> </target> + + <target name="mvn-init"> + <xmlproperty file="pom.xml" prefix="pom.xml" /> + <path id="maven-ant-tasks.classpath" path="tools/buildtime/maven/maven-ant-tasks-2.0.7.jar" /> + <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" + classpathref="maven-ant-tasks.classpath" /> + </target> + + <!--This target will place the roller-weblogger.war file in a maven repository alongside with its + corresponding pom.xml file. Before deploying be sure to check the version tag in the + pom_ant_weblogger.xml file. + For real usage change the repository url to http://www.ibiblio.org/maven2 or some other + public repository of your choice. To test deployment localy use somting like file://localhost/xxx --> + <target name="mvn-deploy" depends="build, mvn-init"> + <artifact:pom id="maven.project" file="apps/weblogger/pom_ant_weblogger.xml" /> + <artifact:deploy file="apps/weblogger/dist/webapp/roller-weblogger.war"> + <remoteRepository url="file://localhost/maven/deploy/test"/> + <pom refid="maven.project"/> + </artifact:deploy> + </target> </project>
