karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maggu2810 <...@git.apache.org>
Subject [GitHub] karaf pull request: KAR Mojo: fix metadata generation of artifacts
Date Tue, 24 Nov 2015 17:38:38 GMT
GitHub user maggu2810 reopened a pull request:

    https://github.com/apache/karaf/pull/102

    KAR Mojo: fix metadata generation of artifacts

    Problem description:
    * use the kmp to generate a kar that contains snapshot version
    * use the kmp to generate a custom distribution that fills the local
      repository of the distribution with the content of that kar
    * try to install the snapshot artifact (not using any other repository
      then the system directory
    * if your snapshots has been timestamped and a maven metadata XML does
      not exist on KAR creation the installation of the artifact will fail
    
    The KAR Mojo contains a workaround to use the base version of a snapshot
    instead of a timestamped one because it does not work in
    startup.properties.
    The metadata that is used for a snapshot artifact is generated (if not
    present) using the timestamped version. Also if there exists already a
    metadata, we can not use them without further checking for the
    version...
    Let's move the version fix in front of the metadata generation and
    generate the metadata for every snapshot.
    
    Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/maggu2810/karaf kmp-kar-snapshots

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/karaf/pull/102.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #102
    
----
commit ed512fc72181f3ab3a9437dc1bb727c1465940c1
Author: Markus Rathgeb <maggu2810@gmail.com>
Date:   2015-11-24T16:28:14Z

    KAR Mojo: fix metadata generation of artifacts
    
    Problem description:
    * use the kmp to generate a kar that contains snapshot version
    * use the kmp to generate a custom distribution that fills the local
      repository of the distribution with the content of that kar
    * try to install the snapshot artifact (not using any other repository
      then the system directory
    * if your snapshots has been timestamped and a maven metadata XML does
      not exist on KAR creation the installation of the artifact will fail
    
    The KAR Mojo contains a workaround to use the base version of a snapshot
    instead of a timestamped one because it does not work in
    startup.properties.
    The metadata that is used for a snapshot artifact is generated (if not
    present) using the timestamped version. Also if there exists already a
    metadata, we can not use them without further checking for the
    version...
    Let's move the version fix in front of the metadata generation and
    generate the metadata for every snapshot.
    
    Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message