The following comment has been added to this issue:
Author: Dennis Lundberg
Created: Sat, 24 Jul 2004 9:47 AM
Body:
I have found the reason why 2 happens.
In the file
maven-plugins/xdoc/src/plugin-resources/templates/cvs-usage.xml
on line 90 we do
#set ($connscm = $repository.getScmType())
A look inside the class
org.apache.maven.project.Repository
shows that the method getScmType() returns the type for the non-developer-connection.
In the scenario for this issue that would be very empty. So it seems that there is a
need for something like this in that class:
/**
* Get the SCM type for developers
*/
public String getDeveloperScmType() {
if ( isValid( getDeveloperConnection() ) )
{
return splitSCMConnection(getDeveloperConnection())[1];
}
return null;
}
One would the change the line in cvs-usage.xml to
#set ($connscm = $repository.geDevelopertScmType())
I will be adding patches shortly but since I have not yet tried building Maven from
source, I can not confirm that they actually work.
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPXDOC-114?page=comments#action_22255
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPXDOC-114
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPXDOC-114
Summary: cvs-usage presumes pserve protocol on <connection>
Type: Bug
Status: Open
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-xdoc-plugin
Assignee: Jason van Zyl
Reporter: Erik Husby
Created: Wed, 7 Jul 2004 4:10 PM
Updated: Sat, 24 Jul 2004 9:47 AM
Description:
The Repository report makes some assumptions about ones use of cvs that are not
necessarily true.
1. The pom.repository.connection is assumed to be the pserve protocol. Not true for
our in-house projects.
2. The pom.repository.developerConnection is only displayed when there is a
pom.repository.connection entry. The two fields are not connected.
3. The CVS Access behind firewall is always included if pom.repository.connection is
specified. This is not true in our in-house environment.
The changelog report works fine if only pom.repository.developerConnection is
specified, I would like to not specify pom.repository.connnection
Problem#1 can be addressed by examinging the cvs protocol and adjusting the comments.
Problem#2 I experimented with modifing the cvs-usage.xml but not being knowledge in
velocity, I could not see why problem #2 occurs.
Problem#3 can be solved in a number of ways from an addition to the pom.repository or
by an additional maven-xdoc-plugin property.
---------------------------------------------------------------------
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]