[ http://jira.codehaus.org/browse/MNG-483?page=comments#action_44258 ] 

John Casey commented on MNG-483:
--------------------------------

1. Okay, I get it now...that's easy enough to handle.

2. What about having something like:

<project>
  ...
  <build>
    ...
    <attachments>
      <source>true</source>
    </attachments>
  </build>
</project>

in order to turn on/off source attachments? the values in the attachments 
stanza could be a free-form DOM or somesuch, with the maven-source-plugin 
checking for ${project.buildAttachments}.isEnabled( "source" ) or 
somesuch...and the inheritance assembler could do a DOM merge with local-wins 
for the child to override the value in the super-pom. WDYT?

3. I'd agree that maybe the super-pom should have a profile inline that 
specifies the source plugin, and is activated by -DsourceArtifact=true or 
somesuch. Then, we get away from checking for -SNAPSHOT, and only releases and 
very explicit usages would activate that profile.

4. will do. Is someone already working on this part (or on the assembly mojo's 
lack of execution in the package phase)?

> sort out artifact attachment
> ----------------------------
>
>          Key: MNG-483
>          URL: http://jira.codehaus.org/browse/MNG-483
>      Project: Maven 2
>         Type: Bug
>     Reporter: Brett Porter
>     Assignee: John Casey
>     Priority: Blocker
>      Fix For: 2.0-beta-1

>
>
> currently, there is an attachArtifact call inside the plugin building the 
> attachment. It imposes a m-a and m-p dependency, as well as an 
> artifactFactory requirement to be able to construct the artifact to attach.
> sort out
> - if there is an easier way to achieve this
> - how to retain the default source binding, but also how to turn it off
> - how to make the source binding happen only on "release" (bear in mind 
> people may not be using the release plugin... a profile was the original idea)
> - how to bind assembly similarly

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to