Am Montag, den 26.03.2007, 00:08 -0400 schrieb Adam Constabaris:
> This isn't directly related, but I do have a pom for the i18n  
> dependency, which also requires patching the pom for the core  
> subproject.  If nobody's yet done a build.xml, I'll take a look at  
> generating one of those and submitting a patch.

I just saw your mail after I checked out Abdera and had fixed the Maven
build, because I did also stumble upon the missing pom.xml in i18n.

You find my version of the pom.xml attached in the hope it might be
useful. I derived the file from the neighbor json dependency package.

I also found that I had to disable the JUnit test machinery an the
"security" package, in order to get a successful "mvn install" run.
Obviously, this is not the preferred method to deal with failing tests.

Sorry for not providing a build.xml, I'm addicted to Maven ...

Best regards,

Jörg


Index: dependencies/i18n/pom.xml
===================================================================
--- dependencies/i18n/pom.xml   (Revision 0)
+++ dependencies/i18n/pom.xml   (Revision 0)
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  The ASF licenses this file to You
+  under the Apache License, Version 2.0 (the "License"); you may not
+  use this file except in compliance with the License.
+  You may obtain a copy of the License at
+ 
+      http://www.apache.org/licenses/LICENSE-2.0
+ 
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.  For additional information regarding
+  copyright in this work, please see the NOTICE file in the top level
+  directory of this distribution. -->
+<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.abdera</groupId>
+  <artifactId>i18n</artifactId>
+  <packaging>jar</packaging>
+  <name>I18N (From Abdera)</name>
+  <version>1.0</version>
+  <description>Abdera-Hosted I18N with Apache License.</description>
+  <inceptionYear>2006</inceptionYear>
+  <url>http://incubator.apache.org/abdera</url>
+  <scm>
+    
<connection>scm:svn:http://svn.apache.org/repos/asf/incubator/abdera/java/trunk/dependencies/json/</connection>
+    
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/abdera/java/trunk/dependencies/json/</developerConnection>
+    
<url>http://svn.apache.org/repos/asf/incubator/abdera/java/trunk/dependencies/json/</url>
+  </scm>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>generate-sources</phase>
+            <configuration>
+              <tasks>
+                <mkdir dir="${basedir}/target" />
+                <get src="http://json.org/java/apache.zip"; 
dest="${basedir}/target/apache.zip" usetimestamp="true"/>
+                <unzip src="${basedir}/target/apache.zip" 
dest="${basedir}/target/generated-sources/main/java" />
+                <move 
file="${basedir}/target/generated-sources/main/java/apache" 
tofile="${basedir}/target/generated-sources/main/java/json" />
+              </tasks>
+              
<sourceRoot>${project.build.directory}/generated-sources/main/java</sourceRoot>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <source>1.5</source>
+          <target>1.5</target>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.2</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <distributionManagement>
+    <snapshotRepository>
+      <id>apache.snapshots</id>
+      <name>Apache SNAPSHOT Repository</name>
+      
<url>scp://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
+    </snapshotRepository>
+    <repository>
+      <id>apache.incubating</id>
+      <name>Apache Incubating Repository</name>
+      
<url>scp://people.apache.org/www/people.apache.org/repo/m2-incubating-repository</url>
+    </repository>
+  </distributionManagement>
+</project>
Index: core/pom.xml
===================================================================
--- core/pom.xml        (Revision 522631)
+++ core/pom.xml        (Arbeitskopie)
@@ -46,5 +46,10 @@
       <groupId>org.apache.geronimo.specs</groupId>
       <artifactId>geronimo-activation_1.0.2_spec</artifactId>
     </dependency>
+    <dependency>
+      <groupId>org.apache.abdera</groupId>
+      <artifactId>i18n</artifactId>
+      <version>1.0</version>
+    </dependency>
   </dependencies>
 </project>
Index: pom.xml
===================================================================
--- pom.xml     (Revision 522631)
+++ pom.xml     (Arbeitskopie)
@@ -281,6 +281,7 @@
   </dependencyManagement>
   
   <modules>
+    <module>dependencies/i18n</module>
     <module>dependencies/json</module>
     <module>core</module>
     <module>parser</module>
Index: security/pom.xml
===================================================================
--- security/pom.xml    (Revision 522631)
+++ security/pom.xml    (Arbeitskopie)
@@ -37,6 +37,16 @@
     
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/abdera/java/trunk/security/</developerConnection>
     
<url>http://svn.apache.org/repos/asf/incubator/abdera/java/trunk/security/</url>
   </scm>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <skip>true</skip>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
   <dependencies>
       <dependency>
         <groupId>junit</groupId>

Reply via email to