You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whirr.apache.org by Patrick Hunt <ph...@cloudera.com> on 2011/12/08 23:57:40 UTC

build issue generating src/bin artifacts.

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"

Re: build issue generating src/bin artifacts.

Posted by Andrei Savu <an...@cloudsoftcorp.com>.
>
>
> 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.
>

I have just checked the "How to Release" instructions and everything seems
to be working fine.


> BTW when doing a release do not add -Pvoldemort for the reasons
> explained on https://issues.apache.org/jira/browse/WHIRR-442.
>
>
I think we need -Pvoldemort because we still want to ship Voldemort as a
service that can be
started with the CLI interface without the  .jar file used for testing. I
have submitted a small
change to WHIRR-442 to remove the file from the binary release.

-- Andrei

Re: build issue generating src/bin artifacts.

Posted by Tom White <to...@cloudera.com>.
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 <ph...@cloudera.com> 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 <sa...@gmail.com> 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 <ph...@cloudera.com> 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"
>>>

Re: build issue generating src/bin artifacts.

Posted by Patrick Hunt <ph...@cloudera.com>.
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 <sa...@gmail.com> 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 <ph...@cloudera.com> 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"
>>

Re: build issue generating src/bin artifacts.

Posted by Andrei Savu <sa...@gmail.com>.
$ 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 <ph...@cloudera.com> 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"
>