[ 
https://issues.apache.org/jira/browse/FELIX-1747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Felix Meschberger updated FELIX-1747:
-------------------------------------

    Attachment: FELIX-1747-apache-parent-7-v2.patch

Final proposed patch to simplify the generation of compliant Apache Felix 
releases.

This patch has the following properties:

* Version is 2-SNAPSHOT (It is common to simply count up the version numbers of 
parent POMs instead of using structured version numbers)

* Less artifacts are generated than before: The *-bin* artifacts are not 
generated any longer. IMHO this is not a big issue because the mainly useful 
artifacts are still generated: the bundle(s), the sources JAR for the Maven 
Repository, the source-release JAR (official object of the vote), and the 
JavaDoc JAR

* If the project has a changelog.txt file in the root folder (e.g. scr, 
configadmin, webconsole) the file is copied to the META-INF folder in the built 
artifacts (or the root folder of the source-release JAR).

* At the end of the build two additional plugins check the validity of the 
build artifacts: The RAT plugin verifies ASL headers in the files and the Ianal 
plugin verifies the existence of the LICENSE and NOTICE files.

I have tested the parent pom (after applying attached patch 
FELIX-1747-apache-parent-7-v2.patch) with the configadmin project and think, 
that the result is ok.

> Use Remote Resources Plugin to generate the legal files
> -------------------------------------------------------
>
>                 Key: FELIX-1747
>                 URL: https://issues.apache.org/jira/browse/FELIX-1747
>             Project: Felix
>          Issue Type: Wish
>            Reporter: Felix Meschberger
>         Attachments: FELIX-1747-apache-parent-7-v2.patch, 
> FELIX-1747-apache-parent-7.patch, 
> FELIX-1747-parent-pom-with-felix-assembly-descriptors.patch, 
> FELIX-1747-parent-pom.patch
>
>
> Richard Hall started a discussion on the dev list to redo the Apache Felix 
> NOTICE file [1] and also created a Wiki page as the basis for further 
> discussion [2].
> I have now tried to convert the WebConsole project and the parent pom into 
> using the remote resources plugin.
> The parent POM is modified to depend on the Apache parent 6, which already 
> includes the remote resources plugin setup. I also added the 
> maven-ianal-plugin which verifies the presence of the legal files (and IIRC 
> also runs rat on the source). I will attach the parent pom patch.
> Note, that depending on the Apache parent 6, we can even get rid of most of 
> our release profile setup, which is already present in the Apache parent 6.
> The modified Web Console project is available in my sandbox at [3]. The 
> changes are
>   - depend on the snapshot parent pom (expecting modification patch applied)
>   - removed all notice and license files from root folder
>   - created src/main/appended-resources folder with the following contents
>       - supplemental-models.xml for the JSON additional information (this 
> file is required only for incomplete dependencies)
>       - LICENSE.vm - additional licenses in one single file - will be merged 
> with ASL2 file
>       - NOTICE.vm - additional notes (only silk icons are required here)
> The result is the correct LICENSE file (ASL2 plus all dependent licenses) and 
> correct NOTICE only containining required notes and finally a DEPENDENCIES 
> file listing M2 dependencies with their organizational and license 
> information.
> One thing that is still missing from this setup is the correct setup of the 
> maven assembly plugin: This plugin does not pack the generated LICENSE and 
> NOTICE files using the plugin provided descriptors. The solution would be to 
> define our own descriptors in a separate project, which we can refer to in 
> the assembly plugin setup (see [4] for how we could do this). This would 
> simplify parent pom setup for releases even more because we could define the 
> descriptors without bz2 generation and directly attach the generated 
> assemblies.
> [1] http://markmail.org/thread/x2gcnlwil46imks3
> [2] 
> http://cwiki.apache.org/confluence/display/FELIX/NOTICE+file+template+%28PROPOSED%29
> [3] http://svn.apache.org/repos/asf/felix/sandbox/fmeschbe/webconsole_notice
> [4] 
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to