Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 68075 invoked from network); 20 Jan 2011 15:28:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jan 2011 15:28:12 -0000 Received: (qmail 54451 invoked by uid 500); 20 Jan 2011 15:28:12 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 54371 invoked by uid 500); 20 Jan 2011 15:28:12 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 54141 invoked by uid 99); 20 Jan 2011 15:28:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jan 2011 15:28:11 +0000 X-ASF-Spam-Status: No, hits=-1994.5 required=10.0 tests=ALL_TRUSTED,FRT_ROLEX,FSL_RU_URL,FUZZY_ROLEX X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jan 2011 15:28:05 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0KFRi7M021763 for ; Thu, 20 Jan 2011 15:27:44 GMT Message-ID: <7748863.82861295537264369.JavaMail.jira@thor> Date: Thu, 20 Jan 2011 10:27:44 -0500 (EST) From: "Gary Gregory (JIRA)" To: issues@commons.apache.org Subject: [jira] Issue Comment Edited: (CODEC-109) Allow the build to run with Maven 2 and Maven 3 In-Reply-To: <16816667.71221295485543632.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CODEC-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984218#action_12984218 ] Gary Gregory edited comment on CODEC-109 at 1/20/11 10:26 AM: -------------------------------------------------------------- Maven 2.2.1: This fixes it: http://jira.codehaus.org/browse/MPIR-197?focusedCommentId=224508&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_224508 "Seems that I should put maven-site-plugin and maven-project-info-reports-plugin into build tags except the reporting tags." So I added this to the build section: {code:xml} org.apache.maven.plugins maven-project-info-reports-plugin 2.3.1 org.apache.maven.plugins maven-site-plugin 2.2 {code} Which is also in the reporting section. On Maven 3.0.2, it seems to mess up the build: {noformat} [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for commons-codec:commons-codec:jar:1.4.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-idea-plugin is missing. @ org.apache.commons:commons-parent:17, C:\Users\ggregory\.m2\repository\or g\apache\commons\commons-parent\17\commons-parent-17.pom, line 317, column 15 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Commons Codec 1.4.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4:clean (default-clean) @ commons-codec --- [INFO] Deleting C:\Users\ggregory\b\svn\apache.org\commons\codec\trunk\target [INFO] [INFO] --- maven-site-plugin:2.2:site (default-site) @ commons-codec --- [INFO] Parent project loaded from repository: org.apache.commons:commons-parent:pom:17 [INFO] Parent project loaded from repository: org.apache:apache:pom:7 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.936s [INFO] Finished at: Thu Jan 20 10:20:36 EST 2011 [INFO] Final Memory: 9M/106M [INFO] ------------------------------------------------------------------------ {noformat} What? How can that be? Is the 2.x site plugin in the build section overriding my maven-3 profile? Here is the full POM: {code:xml} org.apache.commons commons-parent 17 4.0.0 commons-codec commons-codec 1.4.1-SNAPSHOT Commons Codec 2002 The codec package contains simple encoder and decoders for various formats such as Base64 and Hexadecimal. In addition to these widely used encoders and decoders, the codec package also maintains a collection of phonetic encoding utilities. http://commons.apache.org/codec/ jira http://issues.apache.org/jira/browse/CODEC scm:svn:http://svn.apache.org/repos/asf/commons/proper/codec/trunk scm:svn:https://svn.apache.org/repos/asf/commons/proper/codec/trunk http://svn.apache.org/viewvc/commons/proper/codec/trunk maven-3 ${basedir} org.apache.maven.plugins maven-site-plugin 3.0-beta-3 maven-site-plugin attach-descriptor attach-descriptor Henri Yandell bayard bayard@generationjava.com Tim OBrien tobrien tobrien@apache.org -6 Scott Sanders sanders sanders@totalsync.com Rodney Waldhoff rwaldhoff rwaldhoff@apache.org Daniel Rall dlr dlr@finemaltcoding.com Jon S. Stevens jon jon@collab.net Gary D. Gregory ggregory ggregory@apache.org http://www.garygregory.com Seagull Software http://www.seagullsoftware.com -5 David Graham dgraham dgraham@apache.org Julius Davies julius julius@apache.org http://juliusdavies.ca/ -8 Christopher O'Brien siege@preoccupied.net hex md5 architecture Martin Redington Representing xml-rpc Jeffery Dever Representing http-client Steve Zimmermann steve.zimmermann@heii.com Documentation Benjamin Walstrum ben@walstrum.com Oleg Kalnichevski oleg@ural.ru Representing http-client Dave Dribin apache@dave.dribin.org DigestUtil Alex Karasulu aok123 at bellsouth.net Submitted Binary class and test Matthew Inger mattinger at yahoo.com Submitted DIFFERENCE algorithm for Soundex and RefinedSoundex Jochen Wiedmann jochen@apache.org Base64 code [CODEC-69] Sebastian Bazley sebb@apache.org Streaming Base64 junit junit 3.8.2 test 1.4 1.4 codec 1.4 CODEC 12310464 UTF-8 UTF-8 src/java src/test org.apache.maven.plugins maven-project-info-reports-plugin 2.3.1 org.apache.maven.plugins maven-site-plugin 2.2 org.apache.maven.plugins maven-surefire-plugin **/*Test.java **/Test*.java **/*AbstractTest.java maven-assembly-plugin src/assembly/bin.xml src/assembly/src.xml gnu org.apache.maven.plugins maven-project-info-reports-plugin 2.3.1 org.apache.maven.plugins maven-site-plugin 2.2 org.apache.maven.plugins maven-changes-plugin 2.1 ${basedir}/src/changes/changes.xml %URL%/%ISSUE% changes-report org.apache.maven.plugins maven-checkstyle-plugin 2.6 ${basedir}/checkstyle.xml false ${basedir}/LICENSE-header.txt org.codehaus.mojo cobertura-maven-plugin 2.3 org.apache.maven.plugins maven-pmd-plugin 2.4 org.codehaus.mojo findbugs-maven-plugin 2.3.1 org.codehaus.mojo clirr-maven-plugin 2.2.2 1.4 info org.apache.maven.plugins maven-javadoc-plugin 2.7 true http://java.sun.com/j2se/1.4.2/docs/api/ {code} was (Author: ggregory@seagullsw.com): This fixes it: http://jira.codehaus.org/browse/MPIR-197?focusedCommentId=224508&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_224508 "Seems that I should put maven-site-plugin and maven-project-info-reports-plugin into build tags except the reporting tags." > Allow the build to run with Maven 2 and Maven 3 > ----------------------------------------------- > > Key: CODEC-109 > URL: https://issues.apache.org/jira/browse/CODEC-109 > Project: Commons Codec > Issue Type: Improvement > Affects Versions: 1.4 > Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400) > Apache Maven 3.0.2 (r1056850; 2011-01-08 19:58:10-0500) > Java version: 1.6.0_23 > Java home: C:\Program Files\Java\jdk1.6.0_23\jre > Default locale: en_US, platform encoding: Cp1252 > OS name: "windows vista" version: "6.0" arch: "amd64" Family: "windows" > Reporter: Gary Gregory > Assignee: Gary Gregory > > Allow the build to run with Maven 2 and Maven 3 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.