You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "juergen.schumacher" <ju...@ir-team.com> on 2006/07/24 17:06:44 UTC

changes plugin and jira-report

Hi,
I need the changes plugin to create a report about the changes done in jira.
So far (after a while, try and error) the plugin could logon the jira
system. Here the output:

[INFO] Succesfully logged in into JIRA.
[INFO] Downloading
http://localhost:8083/jira/secure/IssueNavigator.jspa?view=rss&pid=10000&sorter/field=created&sorter/order=DESC&sorter/field=priority&sorter/order=DESC&tempMax=100&reset=true&decorator=none
[WARNING] Received: [503]
org.xml.sax.SAXParseException: White spaces are required between publicId
and sy
stemId...................
.........................

As you can see there is an error complaining about white spaces.

Whats that? Had anybody similar effects and maybe any Idea ??? I found one
in this forum with similar error messages but no solution.

I like maven but its a kind of hard work !

Have a nice day,
Juergen
-- 
View this message in context: http://www.nabble.com/changes-plugin-and-jira-report-tf1992932.html#a5469274
Sent from the Maven - Users forum at Nabble.com.


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


RE: changes plugin and jira-report

Posted by Denis Cabasson <de...@insee.fr>.

Roald Bankras wrote:
> 
> Hey Dennis
> 
> I've taken a look at the new changes plugin, including the documentation,
> but I run into a problem when I try to add a filter to my report
> configuration. When I add the following filter to the pom, running changes
> gives a 500 error.
> 
> <filter>&amp;sorter/field=priority&amp;sorter/order=DESC&amp;sorter/field=updated&amp;sorter/order=DESC&amp;sorter/field=fixVersions&amp;sorter/order=ASC</filter>
> 
> It seems that the leading &amp; is removed from the url.
> 

Looks like a bug to me. The leading &amp; is indeed stripped from the
filter, while when filter is built automatically, it gets a leading &amp;
Fill a jira issue for this...



Roald Bankras wrote:
> 
> A small comment on the document is that I'd also put an example with a
> configuration in there. For the user not familiar with the configuration
> tag, the tags describes don't mean a thing.
> 
Have a look at the examples provided. Even though they don't adress your
problem at all, you can see how to use the configuration element there.

Denis
-- 
View this message in context: http://www.nabble.com/changes-plugin-and-jira-report-tf1992932.html#a5535753
Sent from the Maven - Users forum at Nabble.com.


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


Re: changes plugin and jira-report

Posted by Denis Cabasson <de...@insee.fr>.

dennisl-2 wrote:
> 
> How about we add a parameter "useJiraProxy" to the appropriate mojo. 
> Default value would be true, meaning that a proxy will be used if one is 
> defined in settings.xml. If you set it to false, no proxy would be used 
> when connecting to JIRA whether a proxy is defined or not.
> 

I have tried opening a JIRA issue on the subject:
http://jira.codehaus.org/browse/MNG-2457

To me, the relevant place is the nonProxyHost list, in the settings.xml, but
this list is mostly ignored by plugins using the proxy settings....

You can vote for this issue, and maybe one ofe the Maven gurus will think of
a solution :)

Denis.
-- 
View this message in context: http://www.nabble.com/changes-plugin-and-jira-report-tf1992932.html#a5487745
Sent from the Maven - Users forum at Nabble.com.


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


Re: changes plugin and jira-report

Posted by Dennis Lundberg <de...@apache.org>.
juergen.schumacher wrote:
> Ok, I found now the solution and would like to share with others:
> In the source JiraDownloader2.java from the plugin source I found
> "determineProxy( cl );" Here the proxy from the settings.xml will be
> determined. But this didnt work in my network. The proxy is necessary to
> connect to repositories but for the access to my JIRA-Server it wont work
> because its inside the internal network. 
> The reason its the security policy in our network but if other users have
> similar effects maybe a parameter may help. Maybe there are other ways too
> but I am more than happy (after hours) it works for me.
> 
> Juergen

How about we add a parameter "useJiraProxy" to the appropriate mojo. 
Default value would be true, meaning that a proxy will be used if one is 
defined in settings.xml. If you set it to false, no proxy would be used 
when connecting to JIRA whether a proxy is defined or not.

-- 
Dennis Lundberg

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


Re: changes plugin and jira-report

Posted by "juergen.schumacher" <ju...@ir-team.com>.
Ok, I found now the solution and would like to share with others:
In the source JiraDownloader2.java from the plugin source I found
"determineProxy( cl );" Here the proxy from the settings.xml will be
determined. But this didnt work in my network. The proxy is necessary to
connect to repositories but for the access to my JIRA-Server it wont work
because its inside the internal network. 
The reason its the security policy in our network but if other users have
similar effects maybe a parameter may help. Maybe there are other ways too
but I am more than happy (after hours) it works for me.

Juergen
-- 
View this message in context: http://www.nabble.com/changes-plugin-and-jira-report-tf1992932.html#a5485712
Sent from the Maven - Users forum at Nabble.com.


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


Re: changes plugin and jira-report

Posted by "juergen.schumacher" <ju...@ir-team.com>.
Hi,
as an additional Info: In the jira-result.xml (which is on my site a html
formatted file) I found
"http://localhost:8083/jira/secure/IssueNavigator.jspa?" and connection
refused. But in the log (I posted before) it says the correct url which
actually shows the correct issues manually. Maybe this points to
something????
This thing already takes hours and I couldnt solve it right now.

Please Help !

Have a nice day,
juergen
-- 
View this message in context: http://www.nabble.com/changes-plugin-and-jira-report-tf1992932.html#a5484663
Sent from the Maven - Users forum at Nabble.com.


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


Re: changes plugin and jira-report

Posted by "juergen.schumacher" <ju...@ir-team.com>.
Hi,
thx you for the hint. I tried the snapshot you recommended. But still the
same result.
When I use the download-URL directly in the browser it shows the correct
result. But the file which the plugin creates (jira-results.xml) is in fact
a html file. So, sure the code cant read the html file while expecting a xml
formatted file. I think there must be a bug between downloading the jira
issues and writing the file jira-results.xml. Is that maybe the case?? But
how other people could create then the jira-report??
I really appreciate any more info because thats for our project very
important.

Thank you again and have a nice day,
juergen
-- 
View this message in context: http://www.nabble.com/changes-plugin-and-jira-report-tf1992932.html#a5482093
Sent from the Maven - Users forum at Nabble.com.


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


Re: changes plugin and jira-report

Posted by Dennis Lundberg <de...@apache.org>.
juergen.schumacher wrote:
> Hi,
> I need the changes plugin to create a report about the changes done in jira.
> So far (after a while, try and error) the plugin could logon the jira
> system. Here the output:
> 
> [INFO] Succesfully logged in into JIRA.
> [INFO] Downloading
> http://localhost:8083/jira/secure/IssueNavigator.jspa?view=rss&pid=10000&sorter/field=created&sorter/order=DESC&sorter/field=priority&sorter/order=DESC&tempMax=100&reset=true&decorator=none
> [WARNING] Received: [503]
> org.xml.sax.SAXParseException: White spaces are required between publicId
> and sy
> stemId...................
> .........................
> 
> As you can see there is an error complaining about white spaces.
> 
> Whats that? Had anybody similar effects and maybe any Idea ??? I found one
> in this forum with similar error messages but no solution.

Hi

What version of the plugin are you using? I published a 
2.0-beta-2-SNAPSHOT for the Apache version of the plugin last week. 
Please try it out if you are using the one from Mojo. Use this in your pom:

<project>
   ...
   <reporting>
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-changes-plugin</artifactId>
         <reportSets>
           <reportSet>
             <reports>
               <report>jira-report</report>
             </reports>
           </reportSet>
         </reportSets>
       </plugin>
     </plugins>
   </reporting>
   ...
</project>

You can view a snapshot of the documentation (still a work in progress) 
for that version of the plugin here:
   http://people.apache.org/~dennisl/maven-changes-plugin/

Note that you may need to add the snapshot repository at Apache to be 
able to download it. You can do this in your pom as well:

<project>
...
   <pluginRepositories>
     <pluginRepository>
       <id>apache-snapshots</id>
       <name>Apache snapshots</name>
       <url>http://people.apache.org/maven-snapshot-repository/</url>
     </pluginRepository>
   </pluginRepositories>
...
</project>


<snip/>

-- 
Dennis Lundberg

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