Hi all,
I thought it's about time I tried building Velocity from the
repository, and here's what happened.
I executed maven. ## I like new stuff :)
It said "There ain't no jdbc-2.0.jar". (In Japanese)
Well, I was using JDK 1.5, so I just removed that dependency.
## It also gave a lot of warnings about "enum" being a keyword. :)
I tried again.
It said "What's a Logger?". (In Japanese)
I found this issue in bugzilla.
http://issues.apache.org/bugzilla/show_bug.cgi?id=27824
So I changed the Log4j version from 1.1.3 to 1.2.8.
I tried again.
It said "java:jar is deprecated and will be removed. Please use jar:jar".
Well, that's not much of a problem, but I fixed maven.xml anyways.
Excited as can be, I ran my Velocity tests.
I got a NullPointerException. There seems to be no default
properties. Well, they weren't in the jar. I fixed the project.xml
to add them as resources.
Finally, I got a working Velocity build. Hurray!
Well, it looks like maven isn't the main way to build Velocity, so I
won't open a bugzilla issue (yet). I've attached the patch to this
mail (if attached files are supported). If anybody thinks it's
needed, I'll open an issue and post the patch there.
Best regards,
-- Shinobu Kawai
--
Shinobu Kawai <[EMAIL PROTECTED]>
Index: maven.xml
===================================================================
RCS file: /home/cvspublic/jakarta-velocity/maven.xml,v
retrieving revision 1.1
diff -u -r1.1 maven.xml
--- maven.xml 12 Dec 2002 23:28:21 -0000 1.1
+++ maven.xml 9 Oct 2004 13:43:33 -0000
@@ -1,2 +1,2 @@
-<project default="java:jar">
+<project default="jar:jar">
</project>
Index: project.xml
===================================================================
RCS file: /home/cvspublic/jakarta-velocity/project.xml,v
retrieving revision 1.3
diff -u -r1.3 project.xml
--- project.xml 19 Feb 2004 23:22:25 -0000 1.3
+++ project.xml 9 Oct 2004 13:43:33 -0000
@@ -4,7 +4,7 @@
<pomVersion>3</pomVersion>
<id>velocity</id>
<name>Velocity</name>
- <currentVersion>1.4-dev</currentVersion>
+ <currentVersion>1.5-dev</currentVersion>
<organization>
<name>Apache Software Foundation</name>
<url>http://jakarta.apache.org/</url>
@@ -161,7 +161,7 @@
<dependency>
<id>log4j</id>
- <version>1.1.3</version>
+ <version>1.2.8</version>
</dependency>
<dependency>
@@ -174,11 +174,6 @@
<version>2.0.2</version>
</dependency>
- <dependency>
- <id>jdbc</id>
- <version>2.0</version>
- </dependency>
-
</dependencies>
<build>
@@ -198,9 +193,12 @@
</unitTest>
<resources>
- <includes>
- <include>**/*.properties</include>
- </includes>
+ <resource>
+ <directory>src/java</directory>
+ <includes>
+ <include>**/*.properties</include>
+ </includes>
+ </resource>
</resources>
</build>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]