You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Lee Gibbons <lg...@yahoo.co.uk> on 2009/03/06 12:26:02 UTC

maven changlog plugin producing empty change log

Hi,

Change logs are not being produced for me when I run mvn site.
I'm using apache-maven-2.0.9

In my pom I have
 <scm>
    <connection>scm:svn:https://repo.url/dir1/dir2</connection>
    <developerConnection>scm:svn:https://repo.url/dir1/dir2</developerConnection>
    <url>https://repo.url/dir1/dir2</url>
  </scm>
  
And also
<reporting>
  <plugins>			
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-changelog-plugin</artifactId>	        	 	        	
    </plugin>  	      	
  </plugins>			
</reporting>

Firstly the command 
  mvn changelog:changelog
shows
  Executing: svn --non-interactive log -v -r "{2009-02-04 10:51:07 +0000}:{2009-03-07 10:51:07 +0000}" https://repo.url/dir1/dir2
the change log produced contains
<?xml version="1.0" encoding="ISO-8859-1"?>
<changelog>
	<changeset datePattern="yyyyMMdd HH:mm:ss z" start="20090204 10:51:07 GMT" end="20090307 10:51:07 GMT"></changeset>
</changelog>

If I issue the command 
  svn --non-interactive log -v -r "{2009-02-04 10:51:07 +0000}:{2009-03-07 10:51:07 +0000}" https://repo.url/dir1/dir2
the changes are listed	

If I issue the command
  mvn scm:changelog
The following appears on the console
  Executing: cmd.exe /X /C "svn --non-interactive log -v https://repo.url/dir1/dir2"
but no changes are listed

If I issue the command
  mvn -X scm:changelog
the changes are listed

and if I run 
  cmd.exe /X /C "svn --non-interactive log -v https://repo.url/dir1/dir2"
the changes are also listed

I'm debugging through this locally on windows vista but ultimately I want this to work via hudson on a unix box.
Could the use of https in the scm connection be causing problems for maven ? but if this was the case mvn -X would not work and it does.
Is there anything else I could try to highlight where the problem could be ?

Many thanks

lgdeveloper


      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: maven changlog plugin producing empty change log

Posted by lguk <le...@gmail.com>.
Thanks Todd 

This could well be it, our author field looks far from standard

lgdeveloper
-- 
View this message in context: http://www.nabble.com/maven-changlog-plugin-producing-empty-change-log-tp22372214p22410099.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: maven changlog plugin producing empty change log

Posted by Todd Thiessen <th...@nortel.com>.
I have had a problem with the change log command wrt to how it parses
for the author. It expects it to be in a very specific format. If you
have changed how svn displays the author, then this is likely why it is
failing.

For example, by default, svn will display the user ID of the person who
made the change. Often this is an employee ID in corporations. However,
it isn't apparant who made the change when looking at the logs this way.
So we decided to include the person's name along with the author in the
log. The maven SCM change log breaks in this scenario.

I believe this to be a bug in the maven SCM plugin and have gone as far
to fix it in my own checkout. But I have not yet created a patch for
submission back to the main trunk.

---
Todd Thiessen
 

> -----Original Message-----
> From: Lee Gibbons [mailto:lgdeveloper@yahoo.co.uk] 
> Sent: Friday, March 06, 2009 6:26 AM
> To: users@maven.apache.org
> Subject: maven changlog plugin producing empty change log
> 
> 
> Hi,
> 
> Change logs are not being produced for me when I run mvn site.
> I'm using apache-maven-2.0.9
> 
> In my pom I have
>  <scm>
>     <connection>scm:svn:https://repo.url/dir1/dir2</connection>
>     
> <developerConnection>scm:svn:https://repo.url/dir1/dir2</devel
> operConnection>
>     <url>https://repo.url/dir1/dir2</url>
>   </scm>
>   
> And also
> <reporting>
>   <plugins>			
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-changelog-plugin</artifactId>	        
> 	 	        	
>     </plugin>  	      	
>   </plugins>			
> </reporting>
> 
> Firstly the command
>   mvn changelog:changelog
> shows
>   Executing: svn --non-interactive log -v -r "{2009-02-04 
> 10:51:07 +0000}:{2009-03-07 10:51:07 +0000}" 
> https://repo.url/dir1/dir2 the change log produced contains 
> <?xml version="1.0" encoding="ISO-8859-1"?> <changelog>
> 	<changeset datePattern="yyyyMMdd HH:mm:ss z" 
> start="20090204 10:51:07 GMT" end="20090307 10:51:07 
> GMT"></changeset> </changelog>
> 
> If I issue the command
>   svn --non-interactive log -v -r "{2009-02-04 10:51:07 
> +0000}:{2009-03-07 10:51:07 +0000}" https://repo.url/dir1/dir2
> the changes are listed	
> 
> If I issue the command
>   mvn scm:changelog
> The following appears on the console
>   Executing: cmd.exe /X /C "svn --non-interactive log -v 
> https://repo.url/dir1/dir2"
> but no changes are listed
> 
> If I issue the command
>   mvn -X scm:changelog
> the changes are listed
> 
> and if I run
>   cmd.exe /X /C "svn --non-interactive log -v 
> https://repo.url/dir1/dir2"
> the changes are also listed
> 
> I'm debugging through this locally on windows vista but 
> ultimately I want this to work via hudson on a unix box.
> Could the use of https in the scm connection be causing 
> problems for maven ? but if this was the case mvn -X would 
> not work and it does.
> Is there anything else I could try to highlight where the 
> problem could be ?
> 
> Many thanks
> 
> lgdeveloper
> 
> 
>       
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org