karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-4222) Add a flag to add-features-to-repo and install-kar to include conditions
Date Sat, 09 Jan 2016 20:42:39 GMT

    [ https://issues.apache.org/jira/browse/KARAF-4222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15090774#comment-15090774
] 

Jean-Baptiste Onofré commented on KARAF-4222:
---------------------------------------------

See:

{code}
    private void copyBundlesConditionalToDestRepository(List<? extends BundleInfo> artifactRefsConditional)
throws MojoExecutionException {
        for (BundleInfo artifactRef : artifactRefsConditional) {
            if (ignoreDependencyFlag || (!ignoreDependencyFlag && !artifactRef.isDependency()))
{
                Artifact artifact = resourceToArtifact(artifactRef.getLocation(), skipNonMavenProtocols);
                // Avoid getting NPE on artifact.getFile in some cases 
                resolveArtifact(artifact, remoteRepos);
                if (artifact != null) {
                    copy(artifact, repository);
                }
            }
        }
    }
{code}

> Add a flag to add-features-to-repo and install-kar to include conditions
> ------------------------------------------------------------------------
>
>                 Key: KARAF-4222
>                 URL: https://issues.apache.org/jira/browse/KARAF-4222
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-tooling
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>
> Right now, the add-features-to-repo goal (and depending of the config, the install-kar
one) doesn't include the conditional artifacts in the resulting system folder.
> It may cause issue to create an offline-ready distribution.
> I will add a flag in the add-features-to-repo and install-kar goals to include all conditional
resources.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message