[ 
http://jira.codehaus.org/browse/MRRESOURCES-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Elliot Metsger updated MRRESOURCES-21:
--------------------------------------

    Attachment: MRRP-21.patch

Attached is a patch for this issue.  I'm not in love with the names.  Instead 
of "supplemental model" perhaps "stub model" is better/more accurate 
terminology.

It allows a new <configuration> element, <supplementalModelFile>.  By default 
${appendedResourceDirectory}/supplemental-models.xml is looked for, but can be 
overridden:

        <configuration>
          
<supplementalModelFile>path/to/supplemental-models.xml</supplementalModelFile>  
        <resourceBundles>
            
<resourceBundle>org.apache:apache-jar-resource-bundle:1.2</resourceBundle>
          </resourceBundles>
        </configuration>


The supplemental model file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<supplementalDataModels>
  <supplements>
    <supplement>
      <![CDATA[
                            <project>
                              <groupId>xerces</groupId>
                              <artifactId>xmlParserAPIs</artifactId>
                              <name>Apache Xerces</name>
                              <url>http://xerces.apache.org/</url>
                              <organization>
                                <name>Apache Software Foundation</name>
                                <url>http://www.apache.org/</url>
                              </organization>
                            </project>
                          ]]>
    </supplement>
  </supplements>
</supplementalDataModels>

The patch includes a Modello model for the supplemental-model.xml file.


> Supplement the data model used by Velocity
> ------------------------------------------
>
>                 Key: MRRESOURCES-21
>                 URL: http://jira.codehaus.org/browse/MRRESOURCES-21
>             Project: Maven 2.x Remote Resources Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.0-alpha-4
>         Environment: 
> https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-remote-resources-plugin
>  r523911.
>            Reporter: Elliot Metsger
>            Priority: Minor
>         Attachments: MRRP-21.patch
>
>
> Related to MRRESOURCES-2, I'd like to be able to deal with artifacts that 
> have incomplete POM's, because incomplete NOTICE files are generated.
> But instead of having the MRRP append to a locally managed NOTICE file like 
> MRRESOURCES-2, I'd like to augment the data model used by Velocity.
> The idea is that MRR plugin will take a parameter to a file which contains 
> POM XML snippits.  The ModelInheritanceAssembler merges the POM XML snippits 
> with the actual artifact POM.  Thoughts?  I'll plan on submitting a patch.

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

        

Reply via email to