[jira] (MRESOURCES-156) Wrong example at http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
Sergey Zakusov created MRESOURCES-156: - Summary: Wrong example at http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html Key: MRESOURCES-156 URL: https://jira.codehaus.org/browse/MRESOURCES-156 Project: Maven 2.x Resources Plugin Issue Type: Bug Reporter: Sergey Zakusov Priority: Trivial Warning: Do not filter files with binary content like images! This will most likely result in corrupt output. If you have both text files and binary files as resources, you need to declare two mutually exclusive resource sets. The first resource set defines the files to be filtered and the other resource set defines the files to copy unaltered as illustrated below: project ... build ... resources resource directorysrc/main/resources/directory filteringtrue/filtering includes include**/*.xml/include /includes /resource resource directorysrc/main/resources/directory filteringfalse/filtering excludes exclude**/*.xml/exclude /excludes /resource ... /resources ... /build ... /project -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRESOURCES-156) Wrong example at http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
[ https://jira.codehaus.org/browse/MRESOURCES-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=288161#comment-288161 ] Sergey Zakusov commented on MRESOURCES-156: --- sorry, it was my mistake Wrong example at http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html Key: MRESOURCES-156 URL: https://jira.codehaus.org/browse/MRESOURCES-156 Project: Maven 2.x Resources Plugin Issue Type: Bug Reporter: Sergey Zakusov Priority: Trivial Warning: Do not filter files with binary content like images! This will most likely result in corrupt output. If you have both text files and binary files as resources, you need to declare two mutually exclusive resource sets. The first resource set defines the files to be filtered and the other resource set defines the files to copy unaltered as illustrated below: project ... build ... resources resource directorysrc/main/resources/directory filteringtrue/filtering includes include**/*.xml/include /includes /resource resource directorysrc/main/resources/directory filteringfalse/filtering excludes exclude**/*.xml/exclude /excludes /resource ... /resources ... /build ... /project -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRESOURCES-156) Wrong example at http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
[ https://jira.codehaus.org/browse/MRESOURCES-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Zakusov closed MRESOURCES-156. - Resolution: Not A Bug Wrong example at http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html Key: MRESOURCES-156 URL: https://jira.codehaus.org/browse/MRESOURCES-156 Project: Maven 2.x Resources Plugin Issue Type: Bug Reporter: Sergey Zakusov Priority: Trivial Warning: Do not filter files with binary content like images! This will most likely result in corrupt output. If you have both text files and binary files as resources, you need to declare two mutually exclusive resource sets. The first resource set defines the files to be filtered and the other resource set defines the files to copy unaltered as illustrated below: project ... build ... resources resource directorysrc/main/resources/directory filteringtrue/filtering includes include**/*.xml/include /includes /resource resource directorysrc/main/resources/directory filteringfalse/filtering excludes exclude**/*.xml/exclude /excludes /resource ... /resources ... /build ... /project -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (MCHANGELOG-120) Add inputEncoding parameter
Add inputEncoding parameter --- Key: MCHANGELOG-120 URL: http://jira.codehaus.org/browse/MCHANGELOG-120 Project: Maven 2.x Changelog Plugin Issue Type: Improvement Affects Versions: 2.2 Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 20:31:09+0300) Java version: 1.6.0_23, vendor: Sun Microsystems Inc. Default locale: ru_RU, platform encoding: Cp1251 OS name: windows 7, version: 6.1, arch: x86, family: windows svn, version 1.6.16 (r1073529) Reporter: Sergey Zakusov The plugin generates changelog reports incorrectly when there is used Cirillic in commit log messages. So it is required to specify character encoding (CP866/CP1251) to parse changelog response truly. -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MRELEASE-103) No SCM URL was provided to perform the release from
[ http://jira.codehaus.org/browse/MRELEASE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=262521#action_262521 ] Sergey Zakusov commented on MRELEASE-103: - I've had the same problem with maven-release-plugin:2.1. SCM configured like it specified by Gabriele. No SCM URL was provided to perform the release from --- Key: MRELEASE-103 URL: http://jira.codehaus.org/browse/MRELEASE-103 Project: Maven 2.x Release Plugin Issue Type: Bug Components: scm Environment: solaris Reporter: Olivier Lamy Priority: Blocker Fix For: 2.0-beta-5 Attachments: olamy.tar.gz The stack trace says : DEBUG] Trace org.apache.maven.BuildFailureException: No SCM URL was provided to perform the release from at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor .java:555) I included a test case with multi modules project (you need to change scm url in all poms to complete the test). Strange because all scm parts are filled in all modules. To test it, I launch ./buildis.sh $svnuser $svnpwd Olivier -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (MPMD-131) Configuration does not work when it is specified in pluginManagement block
Configuration does not work when it is specified in pluginManagement block -- Key: MPMD-131 URL: http://jira.codehaus.org/browse/MPMD-131 Project: Maven 2.x PMD Plugin Issue Type: Bug Components: PMD Affects Versions: 2.5 Environment: Apache Maven 3.0.2 (r1056850; 2011-01-09 03:58:10+0300) Java version: 1.6.0_22, vendor: Sun Microsystems Inc. Java home: C:\Program Files\Java\jdk1.6.0_22\jre Default locale: ru_RU, platform encoding: Cp1251 OS name: windows xp, version: 5.1, arch: x86, family: windows Reporter: Sergey Zakusov When I configure maven-pmd-plugin in pluginManagement block - it does not work: build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.5/version configuration targetJdk1.6/targetJdk /configuration /plugin /plugins /pluginManagement /build reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.5/version /plugin /plugins /reporting But when I configure it in reporting block - it works fine: build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.5/version /plugin /plugins /pluginManagement /build reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.5/version configuration targetJdk1.6/targetJdk /configuration /plugin /plugins /reporting -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MWAR-128) war goal does not copy empty directories from webapp directory
[ http://jira.codehaus.org/browse/MWAR-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=259853#action_259853 ] Sergey Zakusov commented on MWAR-128: - So, as a workaround I should include a temp file in every empty folder.. Hm.. Is there another workaround? war goal does not copy empty directories from webapp directory -- Key: MWAR-128 URL: http://jira.codehaus.org/browse/MWAR-128 Project: Maven 2.x WAR Plugin Issue Type: Bug Affects Versions: 2.0.2 Reporter: Ken Geis I have an empty directory src/main/webapp/WEB-INF/logs. I expect it to be created in target when the war goal tells me Copy webapp webResources to ... It does not get created. -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (SCM-387) CvsScmProviderRepository returns wrong CVSROOT for local repository
CvsScmProviderRepository returns wrong CVSROOT for local repository --- Key: SCM-387 URL: http://jira.codehaus.org/browse/SCM-387 Project: Maven SCM Issue Type: Bug Components: maven-scm-provider-cvs Affects Versions: 1.1 Reporter: Sergey Zakusov Priority: Blocker For local repository getCvsRoot() returns just the root path without transport type - see getCvsRootForCvsPass: {code:title=CvsScmProviderRepository.java|borderStyle=solid} /** * @return The cvs root */ public String getCvsRoot() { String root = getCvsRootForCvsPass(); return removeDefaultPortFromCvsRoot( root ); } private String removeDefaultPortFromCvsRoot( String root ) { if ( root != null root.indexOf( :2401 ) 0 ) { root = root.substring( 0, root.indexOf( :2401 ) ) + : + root.substring( root.indexOf( :2401 ) + 5 ); } return root; } /** * @return The cvs root stored in .cvspass */ public String getCvsRootForCvsPass() { if ( getUser() != null ) { return getCvsRootWithCorrectUser( getUser() ); } else { if ( AbstractCvsScmProvider.TRANSPORT_LOCAL.equals( getTransport() ) ) { return cvsroot; } else { throw new IllegalArgumentException( Username isn't defined. ); } } } /** * @param user user name * @return */ private String getCvsRootWithCorrectUser( String user ) { //:transport:rest_of_cvsroot int indexOfUsername = getTransport().length() + 2; int indexOfAt = cvsroot.indexOf( @ ); String userString = user == null ? : : + user; if ( indexOfAt 0 ) { cvsroot = : + getTransport() + userString + cvsroot.substring( indexOfAt ); } else { cvsroot = : + getTransport() + userString + @ + cvsroot.substring( indexOfUsername ); } return cvsroot; } {code} And if user was set directly, then the getCvsRootWithCorrectUser logic will be wrong. So the method should be changed like: {code:title=CvsScmProviderRepository.java|borderStyle=solid} /** * @return The cvs root stored in .cvspass */ public String getCvsRootForCvsPass() { String result; String transport = getTransport(); if ( AbstractCvsScmProvider.TRANSPORT_LOCAL.equals( transport ) ) { result = : + transport + : + cvsroot; } else if ( getUser() != null ) { result = getCvsRootWithCorrectUser( getUser() ); } else { throw new IllegalArgumentException( Username isn't defined. ); } return result; } {code} -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SCM-387) CvsScmProviderRepository returns wrong CVSROOT for local repository
[ http://jira.codehaus.org/browse/SCM-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=139039#action_139039 ] Sergey Zakusov commented on SCM-387: To reproduce just specify SCM URL like {{scm:cvs|local|c:/cvsroot|test}} CvsScmProviderRepository returns wrong CVSROOT for local repository --- Key: SCM-387 URL: http://jira.codehaus.org/browse/SCM-387 Project: Maven SCM Issue Type: Bug Components: maven-scm-provider-cvs Affects Versions: 1.1 Reporter: Sergey Zakusov Priority: Blocker For local repository getCvsRoot() returns just the root path without transport type - see getCvsRootForCvsPass: {code:title=CvsScmProviderRepository.java|borderStyle=solid} /** * @return The cvs root */ public String getCvsRoot() { String root = getCvsRootForCvsPass(); return removeDefaultPortFromCvsRoot( root ); } private String removeDefaultPortFromCvsRoot( String root ) { if ( root != null root.indexOf( :2401 ) 0 ) { root = root.substring( 0, root.indexOf( :2401 ) ) + : + root.substring( root.indexOf( :2401 ) + 5 ); } return root; } /** * @return The cvs root stored in .cvspass */ public String getCvsRootForCvsPass() { if ( getUser() != null ) { return getCvsRootWithCorrectUser( getUser() ); } else { if ( AbstractCvsScmProvider.TRANSPORT_LOCAL.equals( getTransport() ) ) { return cvsroot; } else { throw new IllegalArgumentException( Username isn't defined. ); } } } /** * @param user user name * @return */ private String getCvsRootWithCorrectUser( String user ) { //:transport:rest_of_cvsroot int indexOfUsername = getTransport().length() + 2; int indexOfAt = cvsroot.indexOf( @ ); String userString = user == null ? : : + user; if ( indexOfAt 0 ) { cvsroot = : + getTransport() + userString + cvsroot.substring( indexOfAt ); } else { cvsroot = : + getTransport() + userString + @ + cvsroot.substring( indexOfUsername ); } return cvsroot; } {code} And if user was set directly, then the getCvsRootWithCorrectUser logic will be wrong. So the method should be changed like: {code:title=CvsScmProviderRepository.java|borderStyle=solid} /** * @return The cvs root stored in .cvspass */ public String getCvsRootForCvsPass() { String result; String transport = getTransport(); if ( AbstractCvsScmProvider.TRANSPORT_LOCAL.equals( transport ) ) { result = : + transport + : + cvsroot; } else if ( getUser() != null ) { result = getCvsRootWithCorrectUser( getUser() ); } else { throw new IllegalArgumentException( Username isn't defined. ); } return result; } {code} -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (SCM-384) CVS providers ignore module specified by SCM URL
CVS providers ignore module specified by SCM URL Key: SCM-384 URL: http://jira.codehaus.org/browse/SCM-384 Project: Maven SCM Issue Type: Bug Components: maven-scm-provider-cvs Affects Versions: 1.1 Reporter: Sergey Zakusov Priority: Critical If you specify a module in SCM URL, for example: scm:cvs:pserver:cvs:[EMAIL PROTECTED]:/cvsroot:samba - the module will be ignored for all commands. Expected behaviour: the specified module should be a root for all operations and if some command returns paths - the paths should be relative for specified module. -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (SCM-381) Extend API to support remote commands like rlist, rlog
Extend API to support remote commands like rlist, rlog -- Key: SCM-381 URL: http://jira.codehaus.org/browse/SCM-381 Project: Maven SCM Issue Type: New Feature Components: maven-scm-api Affects Versions: 1.x Reporter: Sergey Zakusov We propose to extend the existing API to support some remote commands - it's a really required feature to allow work with SCMs without Working Copies. For a start there should be done the following commands: # *rlist* - to list remotely repository entries; # *rinfo* - to get information about repository entries; # *rlog* - to get change log of repository entries; # *rcat* - to get file contents remotely. It can be specified as a new interface extended from ScmManager: {code:title=ScmRemoteManager.java|bolderStyle=solid} public interface ScmRemoteManager extends ScmManager { /** * Lists remotely each element specified by Bi_fileSet/B in the repository. * * @param i_repository the source control system to use * @param i_fileSet the entries (files and/or directories) to list * @param i_recursive descend recursively * @param i_version use the version defined by the branch/tag/revision * @return The list of entries in the repository * @throws ScmException if the command cannot be performed * @see ScmManager#list(ScmRepository, ScmFileSet, boolean, ScmVersion) to work with Working Copy */ ListScmResult rlist(ScmRepository i_repository, ScmFileSet i_fileSet, boolean i_recursive, ScmVersion i_version) throws ScmException; /** * Retrieves information about each remote element specified by Bi_fileSet/B. * * @param i_repository the source control system to use * @param i_fileSet the entries (files and/or directories) to get information * @param i_version the branch/tag/revision to use * @return Information about each requested entry from the repository * @throws ScmException if the command cannot be performed */ InfoScmResult rinfo(ScmRepository i_repository, ScmFileSet i_fileSet, ScmVersion i_version) throws ScmException; /** * Retrieves log information about each remote element specified by Bi_fileSet/B. * * @param i_repository the source control system to use * @param i_fileSet the entries (files and/or directories) to get information * @param i_startVersion the start branch/tag/revision * @param i_endVersion the end branch/tag/revision * @return Log information about each requested entry from the repository * @throws ScmException if the command cannot be performed * @see ScmManager#changeLog(ScmRepository, ScmFileSet, ScmVersion, ScmVersion) to work with Working Copy */ ChangeLogScmResult rlog(ScmRepository i_repository, ScmFileSet i_fileSet, ScmVersion i_startVersion, ScmVersion i_endVersion) throws ScmException; /** * Fetches the contents and/or properties of each remote element specified by Bi_fileSet/B. * * @param i_repository the source control system to use * @param i_fileSet the files to get content * @param i_version the branch/tag/revision to use * @return Contents and/or properties of each requested file from the repository * @throws ScmException if the command cannot be performed */ CatScmResult rcat(ScmRepository i_repository, ScmFileSet i_fileSet, ScmVersion i_version) throws ScmException; } {code} -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (SCM-380) CvsStatusConsumer cannot be used for CvsJavaListCommand and CvsExeListCommand
[ http://jira.codehaus.org/browse/SCM-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Zakusov updated SCM-380: --- Attachment: AbstractCvsListCommand.patch In addition AbstractCvsListCommand.executeListCommand does not pass modules specified to list. Fixed. CvsStatusConsumer cannot be used for CvsJavaListCommand and CvsExeListCommand - Key: SCM-380 URL: http://jira.codehaus.org/browse/SCM-380 Project: Maven SCM Issue Type: Bug Components: maven-scm-provider-cvs Affects Versions: 1.1 Environment: C:\cvs --version Concurrent Versions System (CVS) 1.12.13a (client) Copyright (C) 2005 Free Software Foundation, Inc. Senior active maintainers include Larry Jones, Derek R. Price, and Mark D. Baushke. Please see the AUTHORS and README files from the CVS distribution kit for a complete list of contributors and copyrights. CVS may be copied only under the terms of the GNU General Public License, a copy of which can be found with the CVS distribution kit. Specify the --help option for further information about CVS C:\cvs -H rls Usage: cvs rls [-e | -l] [-RP] [-r rev] [-D date] [path...] -d Show dead revisions (with tag when specified). -e Display in CVS/Entries format. -l Display all details. -P Prune empty directories. -R List recursively. -r rev Show files with revision or tag. -D date Show files from date. (Specify the --help global option for a list of other help options) Reporter: Sergey Zakusov Priority: Blocker Attachments: AbstractCvsListCommand.patch, maven-scm-providers-cvs.patch http://mail-archives.apache.org/mod_mbox/maven-scm-dev/200805.mbox/[EMAIL PROTECTED] -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (SCM-380) CvsStatusConsumer cannot be used for CvsJavaListCommand and CvsExeListCommand
CvsStatusConsumer cannot be used for CvsJavaListCommand and CvsExeListCommand - Key: SCM-380 URL: http://jira.codehaus.org/browse/SCM-380 Project: Maven SCM Issue Type: Bug Components: maven-scm-provider-cvs Affects Versions: 1.1 Environment: C:\cvs --version Concurrent Versions System (CVS) 1.12.13a (client) Copyright (C) 2005 Free Software Foundation, Inc. Senior active maintainers include Larry Jones, Derek R. Price, and Mark D. Baushke. Please see the AUTHORS and README files from the CVS distribution kit for a complete list of contributors and copyrights. CVS may be copied only under the terms of the GNU General Public License, a copy of which can be found with the CVS distribution kit. Specify the --help option for further information about CVS C:\cvs -H rls Usage: cvs rls [-e | -l] [-RP] [-r rev] [-D date] [path...] -d Show dead revisions (with tag when specified). -e Display in CVS/Entries format. -l Display all details. -P Prune empty directories. -R List recursively. -r rev Show files with revision or tag. -D date Show files from date. (Specify the --help global option for a list of other help options) Reporter: Sergey Zakusov Priority: Blocker Attachments: maven-scm-providers-cvs.patch http://mail-archives.apache.org/mod_mbox/maven-scm-dev/200805.mbox/[EMAIL PROTECTED] -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira