I think it's always been like this. Typing $ mvn package assembly:assembly
builds the binary package. While $ mvn package -Ppackage builds the source package. This is how it's documented on https://cwiki.apache.org/confluence/display/WHIRR/How+To+Release, although I agree that it's confusing, and could be improved. Cheers, Tom BTW when doing a release do not add -Pvoldemort for the reasons explained on https://issues.apache.org/jira/browse/WHIRR-442. On Thu, Dec 8, 2011 at 4:36 PM, Patrick Hunt <[email protected]> wrote: > I reset back 1 prior to 442 being committed and I see the same problem. > > Patrick > > On Thu, Dec 8, 2011 at 3:19 PM, Andrei Savu <[email protected]> wrote: >> $ mvn -DskipTests -Pjavadoc -Ppackage clean package assembly:assembly >> >> also fails for me in a similar fashion but: >> >> $ mvn -DskipTests -Pvoldemort clean package assembly:assembly >> >> creates the files as expected. I am also running mvn 3.0.3. >> >> -rw-r--r-- 1 andreisavu staff 4.9K Dec 9 01:14 >> whirr-0.7.0-SNAPSHOT-tests.jar >> -rw-r--r-- 1 andreisavu staff 19M Dec 9 01:17 >> whirr-0.7.0-SNAPSHOT.tar.gz >> >> I am not sure if this because of 446 or 442 >> >> On Fri, Dec 9, 2011 at 12:57 AM, Patrick Hunt <[email protected]> wrote: >> >>> I noticed this issue while trying to verify >>> https://issues.apache.org/jira/browse/WHIRR-442 (I have the latest >>> trunk): >>> >>> when I run the following: >>> $ mvn -DskipTests -Pjavadoc -Ppackage clean package assembly:assembly >>> it declares success. >>> >>> It is generating >>> >>> -rw-rw-r-- 1 phunt phunt 221367 2011-12-08 14:35 >>> whirr-0.7.0-SNAPSHOT-src.tar.gz >>> -rw-rw-r-- 1 phunt phunt 221374 2011-12-08 14:36 >>> whirr-0.7.0-SNAPSHOT.tar.gz >>> >>> shouldn't the binary artifact be much larger? When I unpack either >>> archive I get "whirr-0.7.0-SNAPSHOT-src/" >>> >>> I tried both mvn2 and mvn3 - same results. Bug or I'm doing something >>> wrong? >>> >>> Patrick >>> >>> mvn --version >>> Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800) >>> Maven home: /home/phunt/bin/apache-maven-3.0.3 >>> Java version: 1.6.0_26, vendor: Sun Microsystems Inc. >>> Java home: /usr/lib/jvm/java-6-sun-1.6.0.26/jre >>> Default locale: en_US, platform encoding: UTF-8 >>> OS name: "linux", version: "3.0.0-13-generic-pae", arch: "i386", family: >>> "unix" >>>
