You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/01/03 17:51:00 UTC

[jira] [Commented] (KARAF-7316) Fallback distribution in verify mojo always fail to resolve

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

ASF GitHub Bot commented on KARAF-7316:
---------------------------------------

splatch opened a new pull request #1474:
URL: https://github.com/apache/karaf/pull/1474


   This commit introduces very basic support for semi standard group:artifact:type[:classifier]:version syntax.
   In case if all parts are given they take over computed values.
   If version is missing - computed one is used.
   If type is missing - zip is assumed.
   If classifier is missing (which is common) empty string will be used.
   
   This should simplify handling of basic feature verification projects.
   
   Signed-off-by: Łukasz Dywicki <lu...@code-house.org>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@karaf.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Fallback distribution in verify mojo always fail to resolve
> -----------------------------------------------------------
>
>                 Key: KARAF-7316
>                 URL: https://issues.apache.org/jira/browse/KARAF-7316
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.7
>            Reporter: Łukasz Dywicki
>            Assignee: Łukasz Dywicki
>            Priority: Major
>
> The {{VerifyMojo}} has several places where "distribution" is being used. Its primary function is to provide properties needed to launch feature resolution.
> Given that we usually can revert to plugin version when we do "verify" call it should succeed as long as maven configuration is proper. This is not a case for 4.2.7 and upper releases too as constructed "distribution" url is simply invalid. Instead of downloading {{apache-karaf-4.2.7.zip}} id requests an artifact with extra {{null}} classifier:
> {code:java}
> [DEBUG] http-outgoing-0: set socket timeout to 5000
> [DEBUG] Executing request GET /maven2/org/apache/karaf/apache-karaf/4.2.7/apache-karaf-4.2.7-null.zip HTTP/1.1
> [DEBUG] Target auth state: UNCHALLENGED
> [DEBUG] Proxy auth state: UNCHALLENGED
> [DEBUG] http-outgoing-0 >> GET /maven2/org/apache/karaf/apache-karaf/4.2.7/apache-karaf-4.2.7-null.zip HTTP/1.1
> [DEBUG] http-outgoing-0 >> Cache-control: no-cache
> [DEBUG] http-outgoing-0 >> Cache-store: no-store
> [DEBUG] http-outgoing-0 >> Pragma: no-cache
> [DEBUG] http-outgoing-0 >> User-Agent: Aether
> [DEBUG] http-outgoing-0 >> Host: repo.maven.apache.org
> [DEBUG] http-outgoing-0 >> Connection: Keep-Alive
> [DEBUG] http-outgoing-0 >> Accept-Encoding: gzip,deflate
> [DEBUG] http-outgoing-0 >> "GET /maven2/org/apache/karaf/apache-karaf/4.2.7/apache-karaf-4.2.7-null.zip HTTP/1.1[\r][\n]"
> [DEBUG] http-outgoing-0 >> "Cache-control: no-cache[\r][\n]"
> [DEBUG] http-outgoing-0 >> "Cache-store: no-store[\r][\n]"
> [DEBUG] http-outgoing-0 >> "Pragma: no-cache[\r][\n]"
> [DEBUG] http-outgoing-0 >> "User-Agent: Aether[\r][\n]"
> [DEBUG] http-outgoing-0 >> "Host: repo.maven.apache.org[\r][\n]"
> [DEBUG] http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
> [DEBUG] http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"
> [DEBUG] http-outgoing-0 >> "[\r][\n]"
> [DEBUG] http-outgoing-0 << "HTTP/1.1 404 Not Found[\r][\n]"
> {code}
> Obviously this artifact id is invalid.
> In practice all projects I have seen have {{distribution}} parameter set as well as {{provided}} dependency with specific karaf framework or distro to avoid failures of this small glitch.
> I believe this is improper behavior, not sure when it was introduced, and could be fixed to avoid propagation of karaf dependency into basic projects which attempt to build & verify feature file.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)