The ClassNotFoundException is now gone (as of 278619). I did a little testing and found that the trailing "/" problem also effects the scm plugin. When I execute
maven scm:checkout -Dmaven.scm.tag=MAVEN_1_0_2
from maven core, I get the same error as with the JDiff plugin (i.e. it tries to check out http://svn.apache.org/repos/asf/maven/maven-1/core/trunk/tags/MAVEN_1_0_2)

I am happy to patch both plugins to remove the trailing "/", but I think it would be better to encapsulate the code that computes ${scmConnection} in both plugins and I frankly don't know how to do that correctly in Jelly. There is a goal in the scm plugin called "scm:find-connection" that sets the *local* variable scmConnection. The right thing to do is to patch that code and then somehow allow the jdiff plugin to use the same goal and share the property. Is this possible?

Phil

Phil Steitz wrote:
Looks like there are two problems, the first one is my mistake. In the projects that I tested for svn, the pom.repository.connection omits the trailing "/", which must make the scm plugin ignore the "trunk" and append the tag to the tagBase. The project below includes the /. Unless there is a better way to handle this, the trailing / should be removed if it is there. Sorry I missed this.

The second problem is that with the changed dependency, I am now getting a ClassNotFoundException:

[javadoc] java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser [javadoc] at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:121) [javadoc] JDiff: reading the old API in from file '/home/phil/math/MATH_1_1/target/jdiff/MATH_1_0.xml'...SAXException: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
    [javadoc]     at jdiff.XMLToAPI.readFile(XMLToAPI.java:51)
    [javadoc]     at jdiff.JDiff.startGeneration(JDiff.java:83)
    [javadoc]     at jdiff.JDiff.start(JDiff.java:29)

Phil

Arnaud HERITIER wrote:

I never used this plugin but when I try it, it fails.

in maven core I launch :

maven jdiff -Dmaven.jdiff.old.tag=MAVEN_1_0_2 -Dmaven.jdiff.new.tag=maven-1.1-beta-1

jdiff:
[mkdir] Created dir: D:\Work\Dev\apache-maven-1.1\core\trunk\target\jdiff\maven-1.1-beta-1 Working directory: D:\Work\Dev\apache-maven-1.1\core\trunk\target\jdiff\maven-1.1-beta-1 Command line: svn --non-interactive checkout http://svn.apache.org/repos/asf/maven/maven-1/core/trunk/tags/maven-1.1-beta-1
maven-1.1-beta-1
Provider message:
The svn command failed.
Command output:
svn: URL 'http://svn.apache.org/repos/asf/maven/maven-1/core/trunk/tags/maven-1.1-beta-1' doesn't exist


The generated url is incorrect :
http://svn.apache.org/repos/asf/maven/maven-1/core/trunk/tags/maven-1.1-beta-1
Instead of
http://svn.apache.org/repos/asf/maven/maven-1/core/tags/maven-1.1-beta-1

But I have no xerces error

Arnaud



-----Message d'origine-----
De : Arnaud HERITIER [mailto:[EMAIL PROTECTED] Envoyé : dimanche 4 septembre 2005 08:59
À : 'Maven Developers List'
Objet : RE: svn commit: r278563 - /maven/maven-1/plugins/trunk/jdiff/project.xml

Perhaps not.
Nut I didn't see it because there's no test.

I'll check it.

Arnaud


-----Message d'origine-----
De : Brett Porter [mailto:[EMAIL PROTECTED] Envoyé : dimanche 4 septembre 2005 08:46 À : Maven Developers List Objet : Re:


svn commit:

r278563 - /maven/maven-1/plugins/trunk/jdiff/project.xml

Sorry about that. I had a copy in my local repo.

Does the expression in plugin.jelly still find it?

- Brett

[EMAIL PROTECTED] wrote:


Author: aheritier
Date: Sat Sep  3 23:35:00 2005
New Revision: 278563

URL: http://svn.apache.org/viewcvs?rev=278563&view=rev
Log:
xerces-1.6.2.jar doesn't exist.

Modified:
  maven/maven-1/plugins/trunk/jdiff/project.xml

Modified: maven/maven-1/plugins/trunk/jdiff/project.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/jdi


ff/project

.xml?rev=278563&r1=278562&r2=278563&view=diff
=============================================================


==========

=======
--- maven/maven-1/plugins/trunk/jdiff/project.xml (original)
+++ maven/maven-1/plugins/trunk/jdiff/project.xml Sat Sep  3


23:35:00

+++ 2005
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
-
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
@@ -17,7 +16,6 @@
* limitations under the License.
*/
-->
-
<project>
 <extend>../plugin-parent/project.xml</extend>
 <pomVersion>3</pomVersion>
@@ -82,7 +80,7 @@
   </dependency>
   <dependency>
     <groupId>xerces</groupId>
-      <artifactId>xerces</artifactId>
+      <artifactId>xercesImpl</artifactId>
     <version>2.6.2</version>
   </dependency>
 </dependencies>



---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED] For


additional

commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to