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

Nissim Shiman commented on NIFI-9579:
-------------------------------------

Issue is resolved as of NIFI-11703 (Thank you [~exceptionfactory] ) for apache 
nifi 2.0 branch

Not sure if this solution can work on 1.x branch as solution uses 
[swagger-maven-plugin-jakarta|https://github.com/apache/nifi/blob/rel/nifi-2.0.0-M2/nifi-registry/nifi-registry-core/nifi-registry-web-api/pom.xml#L91]
 and when moving the changes from NIFI-11703 and compiling with java 8, am 
seeing 

{code}
Execution default of goal 
io.swagger.core.v3:swagger-maven-plugin-jakarta:2.2.19:resolve failed: An API 
incompatibility was encountered while executing 
io.swagger.core.v3:swagger-maven-plugin-jakarta:2.2.19:resolve: 
java.lang.UnsupportedClassVersionError: jakarta/ws/rs/Path has been compiled by 
a more recent version of the Java Runtime (class file version 55.0), this 
version of the Java Runtime only recognizes class file versions up to 52.0
{code}

(This is not seen when compiling on java 11)

> swagger-maven-plugin depends on log4j.  Use newer one (when made available)
> ---------------------------------------------------------------------------
>
>                 Key: NIFI-9579
>                 URL: https://issues.apache.org/jira/browse/NIFI-9579
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.15.2
>            Reporter: Nissim Shiman
>            Priority: Major
>
> Note: This only affects nifi dev environments - not the apache nifi product.
> At the moment building apache nifi will result in log4j-1.2.16.jar in one's 
> maven local repo.
> This is due to swagger-maven-plugins which pulls these in when used [1] [2] 
> swagger-maven-plugin is know to have this dependency but it is unclear how 
> soon this will be acted on
> [3] .  When swagger-maven-plugin has this resolved, update to new version.
>  
> [1] 
> [https://github.com/apache/nifi/blob/rel/nifi-1.15.2/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/pom.xml#L60-L62|https://github.com/apache/nifi/blob/rel/nifi-1.15.2/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/pom.xml#L61-L62]
> [2] 
> [https://github.com/apache/nifi/blob/rel/nifi-1.15.2/nifi-registry/nifi-registry-core/nifi-registry-web-api/pom.xml#L55-L57]
> [3] [https://github.com/kongchen/swagger-maven-plugin/issues/875]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to