------ Configuring the Trac Report ------ David Roussel ------ 2009-10-02 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Configuring the Trac Report * Configuring your Trac instance The plugin needs to be told details of your Trac installation so that it can connect and query the open tickets. The Trac installation needs to be accessible via no authentication, basic authentication or NTLM authentication. If you've used form authentication then you are out of luck. Your Trac installation needs to have the {{{http://trac-hacks.org/wiki/XmlRpcPlugin}XML-RPC plugin}} installed and working for this plugin to be able to read the tickets. ** Basic Report Configuration The most basic report configuration is read from the <<<\>>> section of your POM. This should work with no additional configuration, but by default all ticket will be listed +-----------------+ trac http://mytracserver.local/trac/MYPROJECT/ +-----------------+ ** Configuring a Custom Query The exact query can configured in the <<<\>>> element. See {{{http://trac.edgewall.org/wiki/TracQuery}TracQuery}} for the exact syntax. +-----------------+ ... org.apache.maven.plugins maven-changes-plugin ${project.version} status=accepted&status=assigned&status=new&status=reopened&order=priority&component=\${project.artifactId} ... +-----------------+ ** Configuring Basic Authentication If your Trac is protected by basic authentication then you'll need to add the <<<\>>> and <<<\>>> configuration elements so that the plugin knows who to authenticate as. +-----------------+ ... org.apache.maven.plugins maven-changes-plugin ${project.version} my username my password ... +-----------------+ ** Configuring NTLM Authentication If you have your Trac sitting behind Apache on Windows with mod_sspi doing authentication with Active Directory, then the plugin should authenticate to the server as the current user without any extra config. No <<<\>>> and <<<\>>> configuration elements are needed. ** Using custom encoding If you have to support non-western encodings, then specify an <<<\>>> in the configuration. +-----------------+ ... org.apache.maven.plugins maven-changes-plugin ${project.version} ... Windows-31J ... +-----------------+