Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[KARAF-4145] KAR Mojo: fix metadata generation of artifacts #102

Merged
merged 1 commit into from Nov 24, 2015
Merged

[KARAF-4145] KAR Mojo: fix metadata generation of artifacts #102

merged 1 commit into from Nov 24, 2015

Conversation

maggu2810
Copy link
Contributor

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

@maggu2810 maggu2810 closed this Nov 24, 2015
@maggu2810 maggu2810 reopened this Nov 24, 2015
@maggu2810 maggu2810 changed the title KAR Mojo: fix metadata generation of artifacts [KARAF-4145] KAR Mojo: fix metadata generation of artifacts Nov 24, 2015
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>
@asfgit asfgit merged commit 85e882d into apache:master Nov 24, 2015
@maggu2810 maggu2810 deleted the kmp-kar-snapshots branch February 7, 2019 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants