The following comment has been added to this issue:
Author: Per Olesen
Created: Thu, 23 Oct 2003 3:06 PM
Body:
To Don:
> Give us your version of a better message
Hmm, ... looking back, I might be better able to interpret the given message now. But
now I also know more about maven, than I did before :-) Maybe something pointing out
more precisely, the value that is wrong.
Looking at the sources, I think it is Repository.splitSCMConnection(...) which throws
the exception with the msg. If it included the actual connection string, I would know
which text it was parsing when the error occurred. Maybe it could even say something
like "project.xml element '<connection>' contains the string '...' which is expected
to ...... bla bla".
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-897
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-897
Summary: Not very informative error message on xdoc template error
Type: Improvement
Status: Unassigned
Priority: Trivial
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
plugin-xdoc
Fix Fors:
1.1
Versions:
1.0-rc1
Assignee:
Reporter: Per Olesen
Created: Mon, 6 Oct 2003 1:56 PM
Updated: Wed, 8 Oct 2003 10:26 AM
Description:
Hi,
Had a problem where a wrong value inside the project.xml <repository><connection>....
element gave me a not very informative error message:
File...... file:/home/polesen/.maven/plugins/maven-xdoc-plugin-1.4/
Element... velocity:merge
Line...... 399
Column.... 9
Invocation of method 'getCvsRoot' in class org.apache.maven.project.Repository threw
exception class java.lang.IllegalArgumentException : repository connection string
contains more than six tokens
It took me some time, and some searching around inside the xdoc plugin files, to find
out what my problem was.
I do not know if it is easy to give a better message, or if it is a result of the use
of velocity templates!? Anyways, I think a newcomer will have some problems finding
out what's wrong!
/Per
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]