Hi Alex,

ok ... I'll write one mail summing up all ;-)

1. First of all ... it was not that Maven isn't able to, it was just that it 
wasn't configured to. Unfortunately I didn't have the time to spend on 
fine-tuning the build as I did want to get FlexJS flying ;-)

2. In the apache master pom there are some settings that are inherited. These 
default values were only active if the "apache-release" plugin is activated. 
Unfortunately as soon as that's active the artifacts are automatically PGP 
signed and this was what was causing the problems as this is not possible on 
the build.apache.org agents.

3. What Om did, was to manually add the same (or similar) descriptors (sort of 
an xml pack list on how to build a distribution) and confiugred that in the 
pluginManagement section of Maven. This doesn't enable a plugin, but if it is 
manually enabled, it's where it gets it's configuration from. He then added 
"assembly:single" to the maven command, which tells maven to enable the 
"assembly" plugin and execute the "single" goal. In general this shouldn't have 
any influence on the build itself. What I'm a little concerned about though is 
that I'm not quite sure, if this doesn't overwrite the configuration of the 
"apache-release" profile. So mabe it would be a good idea to wrap that change 
in a "flex-ci-build" profile (or whatever name we want to give it). Then we're 
safe.

But thanks Om that you solved this ... I just thought it wasn't that critical 
to stop working on Falcon.

Just another question ... does someone wanting to release something usually 
vote +1 for that?

Chris

________________________________________
Von: Alex Harui <aha...@adobe.com>
Gesendet: Freitag, 14. November 2014 06:14
An: dev@flex.apache.org
Betreff: Re: [FlexJS] First successful build of a FlexJS application using 
Flexmojos

Maybe I misunderstood Chris, but his explanation was that “mvn deploy”
would create the source-release.zip.  Which it does just fine, so I’m not
sure we need or should have another target to create it.  We’ll see what
Chris says.  But that’s why I was saying that Maven seems less flexible
(at least from the defaults).  It sort expects that nobody needs a source
zip until you deploy it to the staging repo.  Feels like Maven is saying
“that’s just the way we do it”.

-Alex

On 11/13/14, 5:18 PM, "OmPrakash Muppirala" <bigosma...@gmail.com> wrote:

>I added the source release target and updated the Jenkins job.
>
>The source packages can be found here now:
>https://builds.apache.org/view/E-G/view/Flex/job/flex-tool-api/lastSuccess
>fulBuild/artifact/flex-tool-api/target/
>
>Thanks,
>Om
>
>On Thu, Nov 13, 2014 at 4:30 PM, OmPrakash Muppirala
><bigosma...@gmail.com>
>wrote:
>
>> Okay, I see what's happening.  There is no 'build source package' target
>> for this project.  Usually, we use Ant to zip all the relevant files
>>into a
>> .zip and .tz file.
>>
>> I will see what it takes to add an equivalent mvn target to achieve the
>> same thing.
>>
>> Thanks,
>> Om
>>
>> On Thu, Nov 13, 2014 at 3:52 PM, OmPrakash Muppirala
>><bigosma...@gmail.com
>> > wrote:
>>
>>> On Thu, Nov 13, 2014 at 3:30 PM, Alex Harui <aha...@adobe.com> wrote:
>>>
>>>>
>>>>
>>>> On 11/13/14, 3:19 PM, "OmPrakash Muppirala" <bigosma...@gmail.com>
>>>> wrote:
>>>>
>>>> >>
>>>> >> In fact, when trying to review the potential release candidate, it
>>>> >>turned
>>>> >> out to be difficult (impossible?) for Maven to provide the source
>>>> >>artifact
>>>> >> on the CI server without actually deploying the artifact to a Maven
>>>> >> server.
>>>> >
>>>> >
>>>> >Can you please explain what "for Maven to provide the source
>>>>artifact on
>>>> >the CI server" means?  What are you trying to do?
>>>>
>>>> In our new no-RC workflow, we are trying to get Jenkins to post builds
>>>> with artifacts.  For TDF, we have this:
>>>>
>>>>
>>>>http://apacheflexbuild.cloudapp.net:8080/job/flex-utilities_tour-de-fle
>>>>x-re
>>>> lease/
>>>>
>>>><http://apacheflexbuild.cloudapp.net:8080/job/flex-utilities_tour-de-fl
>>>>ex-release/>
>>>>
>>>> Click on “Last Successful Artifacts” and somewhere in there is the
>>>>source
>>>> package.
>>>>
>>>> Over at
>>>>https://builds.apache.org/view/E-G/view/Flex/job/flex-tool-api/
>>>> We have “Last Successful Artifacts”, but despite my asking several
>>>>times,
>>>> Chris was unable to get the build to leave the source-release.zip file
>>>> there.  He said that would require running the “deploy” command which
>>>> would try to upload the artifacts to the Maven staging server.  My
>>>> takeaway was that Maven didn’t have a “build” command that would just
>>>> compile artifacts and not deploy them. That’s why I drew the analogy
>>>>to
>>>> not being able to get pepperoni on one side and sausage on the other.
>>>> The
>>>> Maven assumption is that you would always deploy any built artifacts.
>>>>
>>>>
>>> Are we sure that the source-release.zip is actually getting built?  I
>>> don't see it in the 'target' directory in the workspace.
>>> I do see a flex-tool-api-1.1.0-SNAPSHOT.jar  here[1] which seems to be
>>> the only artifact getting built.
>>>
>>> Thanks,
>>> Om
>>>
>>> [1]
>>>
>>>https://builds.apache.org/view/E-G/view/Flex/job/flex-tool-api/lastSucce
>>>ssfulBuild/artifact/flex-tool-api/target/
>>>
>>>
>>>> -Alex
>>>>
>>>>
>>>
>>

Reply via email to