You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Henning P. Schmiedehausen" <hp...@intermeta.de> on 2002/12/27 15:05:48 UTC

Build Failure on JDK 1.3

Hi,

you wouldn't believe how much problems you can spare to the people
trying to use maven, if you would try to compile the maven on a JDK
1.3 from time to time.

Applying the following patch to the maven HEAD will actually make it
build on JDK 1.3.1_04 on RedHat Linux.

	Regards
		Henning


diff -urb jakarta-turbine-maven/src/plugins-build/changelog/project.xml ../jakarta-turbine-maven/src/plugins-build/changelog/project.xml
--- jakarta-turbine-maven/src/plugins-build/changelog/project.xml	Fri Dec  6 21:53:29 2002
+++ ../jakarta-turbine-maven/src/plugins-build/changelog/project.xml	Fri Dec 27 14:54:03 2002
@@ -95,6 +95,22 @@
     </dependency>
 
     <dependency>
+      <id>xerces</id>
+      <version>2.0.2</version>
+      <properties>
+        <classloader>root</classloader>
+      </properties>
+    </dependency>
+
+    <dependency>
+      <id>xml-apis</id>
+      <version>1.0.b2</version>
+      <properties>
+        <classloader>root</classloader>
+      </properties>
+    </dependency>
+
+    <dependency>
       <id>junit</id>
       <version>3.8.1</version>
     </dependency>
diff -urb jakarta-turbine-maven/src/plugins-build/j2ee/project.xml ../jakarta-turbine-maven/src/plugins-build/j2ee/project.xml
--- jakarta-turbine-maven/src/plugins-build/j2ee/project.xml	Sun Dec  8 04:11:38 2002
+++ ../jakarta-turbine-maven/src/plugins-build/j2ee/project.xml	Fri Dec 27 14:52:44 2002
@@ -103,6 +103,14 @@
     </dependency>
 
     <dependency>
+      <id>xerces</id>
+      <version>2.0.2</version>
+      <properties>
+        <classloader>root</classloader>
+      </properties>
+    </dependency>
+
+    <dependency>
       <id>xml-apis</id>
       <version>1.0.b2</version>
       <properties>
diff -urb jakarta-turbine-maven/src/plugins-build/jalopy/project.xml ../jakarta-turbine-maven/src/plugins-build/jalopy/project.xml
--- jakarta-turbine-maven/src/plugins-build/jalopy/project.xml	Wed Dec 18 05:57:45 2002
+++ ../jakarta-turbine-maven/src/plugins-build/jalopy/project.xml	Fri Dec 27 14:52:26 2002
@@ -109,6 +109,14 @@
     </dependency>
 
     <dependency>
+      <id>xerces</id>
+      <version>2.0.2</version>
+      <properties>
+        <classloader>root</classloader>
+      </properties>
+    </dependency>
+
+    <dependency>
       <id>xml-apis</id>
       <version>1.0.b2</version>
       <properties>
diff -urb jakarta-turbine-maven/src/plugins-build/pom/project.xml ../jakarta-turbine-maven/src/plugins-build/pom/project.xml
--- jakarta-turbine-maven/src/plugins-build/pom/project.xml	Fri Dec  6 21:53:30 2002
+++ ../jakarta-turbine-maven/src/plugins-build/pom/project.xml	Fri Dec 27 14:50:47 2002
@@ -116,6 +116,15 @@
     </dependency>
 
     <dependency>
+      <id>xerces</id>
+      <version>2.0.2</version>
+      <url>http://xml.apache.org/xerces2-j/</url>
+      <properties>
+        <classloader>root</classloader>
+      </properties>
+    </dependency>
+
+    <dependency>
       <id>isorelax</id>
       <version>20020414</version>
       <properties>
diff -urb jakarta-turbine-maven/src/plugins-build/struts/project.xml ../jakarta-turbine-maven/src/plugins-build/struts/project.xml
--- jakarta-turbine-maven/src/plugins-build/struts/project.xml	Sun Dec  8 04:10:18 2002
+++ ../jakarta-turbine-maven/src/plugins-build/struts/project.xml	Fri Dec 27 14:50:40 2002
@@ -78,6 +78,15 @@
     </dependency>
 
     <dependency>
+      <id>xerces</id>
+      <version>2.0.2</version>
+      <url>http://xml.apache.org/xerces2-j/</url>
+      <properties>
+        <classloader>root</classloader>
+      </properties>
+    </dependency>
+
+    <dependency>
       <id>ant</id>
       <version>1.5.1</version>
       <properties>





-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     hps@intermeta.de

Am Schwabachgrund 22  Fon.: 09131 / 50654-0   info@intermeta.de
D-91054 Buckenhof     Fax.: 09131 / 50654-20   

Re: Build Failure on JDK 1.3

Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
Jason van Zyl <ja...@zenplex.com> writes:

>I only develop using Redhat and a 1.3.1 JDK so you must have some other
>problem.

>> Applying the following patch to the maven HEAD will actually make it
>> build on JDK 1.3.1_04 on RedHat Linux.

>No, I don't think that is the solution. We certainly don't want to go
>having to jam everything in the root classloader. I'll ask around on IRC
>and see if anyone is having the difficulty you are having.

I found the problem. Because of some maven trouble with other 
projects, I have had

maven.junit.fork = true

in my build.properties. Commenting this out allows me to build
the HEAD without this patch.

This is, however, not a real solution for my problem, now I have to
edit my build.properties depending on the project.

As some of the plugins actually refer xerces, I see no reason why the
other plugins (which need it only for testing) shouldn't.

	Regards
		Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     hps@intermeta.de

Am Schwabachgrund 22  Fon.: 09131 / 50654-0   info@intermeta.de
D-91054 Buckenhof     Fax.: 09131 / 50654-20   

Re: Build Failure on JDK 1.3

Posted by Jason van Zyl <ja...@zenplex.com>.
On Fri, 2002-12-27 at 09:05, Henning P. Schmiedehausen wrote:
> Hi,
> 
> you wouldn't believe how much problems you can spare to the people
> trying to use maven, if you would try to compile the maven on a JDK
> 1.3 from time to time.

I only develop using Redhat and a 1.3.1 JDK so you must have some other
problem.

> Applying the following patch to the maven HEAD will actually make it
> build on JDK 1.3.1_04 on RedHat Linux.

No, I don't think that is the solution. We certainly don't want to go
having to jam everything in the root classloader. I'll ask around on IRC
and see if anyone is having the difficulty you are having.

> 	Regards
> 		Henning
> 
> 
> diff -urb jakarta-turbine-maven/src/plugins-build/changelog/project.xml ../jakarta-turbine-maven/src/plugins-build/changelog/project.xml
> --- jakarta-turbine-maven/src/plugins-build/changelog/project.xml	Fri Dec  6 21:53:29 2002
> +++ ../jakarta-turbine-maven/src/plugins-build/changelog/project.xml	Fri Dec 27 14:54:03 2002
> @@ -95,6 +95,22 @@
>      </dependency>
>  
>      <dependency>
> +      <id>xerces</id>
> +      <version>2.0.2</version>
> +      <properties>
> +        <classloader>root</classloader>
> +      </properties>
> +    </dependency>
> +
> +    <dependency>
> +      <id>xml-apis</id>
> +      <version>1.0.b2</version>
> +      <properties>
> +        <classloader>root</classloader>
> +      </properties>
> +    </dependency>
> +
> +    <dependency>
>        <id>junit</id>
>        <version>3.8.1</version>
>      </dependency>
> diff -urb jakarta-turbine-maven/src/plugins-build/j2ee/project.xml ../jakarta-turbine-maven/src/plugins-build/j2ee/project.xml
> --- jakarta-turbine-maven/src/plugins-build/j2ee/project.xml	Sun Dec  8 04:11:38 2002
> +++ ../jakarta-turbine-maven/src/plugins-build/j2ee/project.xml	Fri Dec 27 14:52:44 2002
> @@ -103,6 +103,14 @@
>      </dependency>
>  
>      <dependency>
> +      <id>xerces</id>
> +      <version>2.0.2</version>
> +      <properties>
> +        <classloader>root</classloader>
> +      </properties>
> +    </dependency>
> +
> +    <dependency>
>        <id>xml-apis</id>
>        <version>1.0.b2</version>
>        <properties>
> diff -urb jakarta-turbine-maven/src/plugins-build/jalopy/project.xml ../jakarta-turbine-maven/src/plugins-build/jalopy/project.xml
> --- jakarta-turbine-maven/src/plugins-build/jalopy/project.xml	Wed Dec 18 05:57:45 2002
> +++ ../jakarta-turbine-maven/src/plugins-build/jalopy/project.xml	Fri Dec 27 14:52:26 2002
> @@ -109,6 +109,14 @@
>      </dependency>
>  
>      <dependency>
> +      <id>xerces</id>
> +      <version>2.0.2</version>
> +      <properties>
> +        <classloader>root</classloader>
> +      </properties>
> +    </dependency>
> +
> +    <dependency>
>        <id>xml-apis</id>
>        <version>1.0.b2</version>
>        <properties>
> diff -urb jakarta-turbine-maven/src/plugins-build/pom/project.xml ../jakarta-turbine-maven/src/plugins-build/pom/project.xml
> --- jakarta-turbine-maven/src/plugins-build/pom/project.xml	Fri Dec  6 21:53:30 2002
> +++ ../jakarta-turbine-maven/src/plugins-build/pom/project.xml	Fri Dec 27 14:50:47 2002
> @@ -116,6 +116,15 @@
>      </dependency>
>  
>      <dependency>
> +      <id>xerces</id>
> +      <version>2.0.2</version>
> +      <url>http://xml.apache.org/xerces2-j/</url>
> +      <properties>
> +        <classloader>root</classloader>
> +      </properties>
> +    </dependency>
> +
> +    <dependency>
>        <id>isorelax</id>
>        <version>20020414</version>
>        <properties>
> diff -urb jakarta-turbine-maven/src/plugins-build/struts/project.xml ../jakarta-turbine-maven/src/plugins-build/struts/project.xml
> --- jakarta-turbine-maven/src/plugins-build/struts/project.xml	Sun Dec  8 04:10:18 2002
> +++ ../jakarta-turbine-maven/src/plugins-build/struts/project.xml	Fri Dec 27 14:50:40 2002
> @@ -78,6 +78,15 @@
>      </dependency>
>  
>      <dependency>
> +      <id>xerces</id>
> +      <version>2.0.2</version>
> +      <url>http://xml.apache.org/xerces2-j/</url>
> +      <properties>
> +        <classloader>root</classloader>
> +      </properties>
> +    </dependency>
> +
> +    <dependency>
>        <id>ant</id>
>        <version>1.5.1</version>
>        <properties>
> 
> 
-- 
jvz.

Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


Re: Build Failure on JDK 1.3

Posted by di...@multitask.com.au.
Changelog compiles fine for me on Win2k JDK 1.3.1_06 without this patch.
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au


henning@forge.intermeta.de wrote on 28/12/2002 01:05:48 AM:

> Hi,
> 
> you wouldn't believe how much problems you can spare to the people
> trying to use maven, if you would try to compile the maven on a JDK
> 1.3 from time to time.
> 
> Applying the following patch to the maven HEAD will actually make it
> build on JDK 1.3.1_04 on RedHat Linux.
> 
>    Regards
>       Henning
> 
> 
> diff -urb jakarta-turbine-maven/src/plugins-build/changelog/project.
> xml ../jakarta-turbine-maven/src/plugins-build/changelog/project.xml
> --- jakarta-turbine-maven/src/plugins-build/changelog/project.xml 
> Fri Dec  6 21:53:29 2002
> +++ ../jakarta-turbine-maven/src/plugins-build/changelog/project.xml
> Fri Dec 27 14:54:03 2002
> @@ -95,6 +95,22 @@
>      </dependency>
> 
>      <dependency>
> +      <id>xerces</id>
> +      <version>2.0.2</version>
> +      <properties>
> +        <classloader>root</classloader>
> +      </properties>
> +    </dependency>
> +
> +    <dependency>
> +      <id>xml-apis</id>
> +      <version>1.0.b2</version>
> +      <properties>
> +        <classloader>root</classloader>
> +      </properties>
> +    </dependency>
> +
> +    <dependency>
>        <id>junit</id>
>        <version>3.8.1</version>
>      </dependency>
> diff -urb jakarta-turbine-maven/src/plugins-build/j2ee/project.xml 
> ../jakarta-turbine-maven/src/plugins-build/j2ee/project.xml
> --- jakarta-turbine-maven/src/plugins-build/j2ee/project.xml   Sun 
> Dec  8 04:11:38 2002
> +++ ../jakarta-turbine-maven/src/plugins-build/j2ee/project.xml 
> Fri Dec 27 14:52:44 2002
> @@ -103,6 +103,14 @@
>      </dependency>
> 
>      <dependency>
> +      <id>xerces</id>
> +      <version>2.0.2</version>
> +      <properties>
> +        <classloader>root</classloader>
> +      </properties>
> +    </dependency>
> +
> +    <dependency>
>        <id>xml-apis</id>
>        <version>1.0.b2</version>
>        <properties>
> diff -urb jakarta-turbine-maven/src/plugins-build/jalopy/project.xml
> ../jakarta-turbine-maven/src/plugins-build/jalopy/project.xml
> --- jakarta-turbine-maven/src/plugins-build/jalopy/project.xml   Wed
> Dec 18 05:57:45 2002
> +++ ../jakarta-turbine-maven/src/plugins-build/jalopy/project.xml 
> Fri Dec 27 14:52:26 2002
> @@ -109,6 +109,14 @@
>      </dependency>
> 
>      <dependency>
> +      <id>xerces</id>
> +      <version>2.0.2</version>
> +      <properties>
> +        <classloader>root</classloader>
> +      </properties>
> +    </dependency>
> +
> +    <dependency>
>        <id>xml-apis</id>
>        <version>1.0.b2</version>
>        <properties>
> diff -urb jakarta-turbine-maven/src/plugins-build/pom/project.xml ..
> /jakarta-turbine-maven/src/plugins-build/pom/project.xml
> --- jakarta-turbine-maven/src/plugins-build/pom/project.xml   Fri 
> Dec  6 21:53:30 2002
> +++ ../jakarta-turbine-maven/src/plugins-build/pom/project.xml   Fri
> Dec 27 14:50:47 2002
> @@ -116,6 +116,15 @@
>      </dependency>
> 
>      <dependency>
> +      <id>xerces</id>
> +      <version>2.0.2</version>
> +      <url>http://xml.apache.org/xerces2-j/</url>
> +      <properties>
> +        <classloader>root</classloader>
> +      </properties>
> +    </dependency>
> +
> +    <dependency>
>        <id>isorelax</id>
>        <version>20020414</version>
>        <properties>
> diff -urb jakarta-turbine-maven/src/plugins-build/struts/project.xml
> ../jakarta-turbine-maven/src/plugins-build/struts/project.xml
> --- jakarta-turbine-maven/src/plugins-build/struts/project.xml   Sun
> Dec  8 04:10:18 2002
> +++ ../jakarta-turbine-maven/src/plugins-build/struts/project.xml 
> Fri Dec 27 14:50:40 2002
> @@ -78,6 +78,15 @@
>      </dependency>
> 
>      <dependency>
> +      <id>xerces</id>
> +      <version>2.0.2</version>
> +      <url>http://xml.apache.org/xerces2-j/</url>
> +      <properties>
> +        <classloader>root</classloader>
> +      </properties>
> +    </dependency>
> +
> +    <dependency>
>        <id>ant</id>
>        <version>1.5.1</version>
>        <properties>
> 
> 
> 
> 
> 
> -- 
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
> INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     hps@intermeta.de
> 
> Am Schwabachgrund 22  Fon.: 09131 / 50654-0   info@intermeta.de
> D-91054 Buckenhof     Fax.: 09131 / 50654-20 
> 
> --
> To unsubscribe, e-mail:   <mailto:turbine-maven-dev-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:turbine-maven-dev-
> help@jakarta.apache.org>
> 

> ForwardSourceID:NT0009C6EE