[
https://issues.apache.org/jira/browse/RANGER-3755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17542027#comment-17542027
]
Aakash Nand commented on RANGER-3755:
-------------------------------------
[~williamlam] I see where you are coming from, I have faced this issue. This is
not a bug but a design. The distro module is usually built at the last after
all plugins are built so that is the reason why you are not able to see the tar
file. So to build the single trino-plugin and still get the tar file, you need
to add the following to root pom.xml under
{noformat}
<profile>
<id>ranger-trino-plugin</id>
<modules>
<module>agents-audit</module>
<module>agents-common</module>
<module>agents-cred</module>
<module>agents-installer</module>
<module>credentialbuilder</module>
<module>ranger-plugin-classloader</module>
<module>ranger-util</module>
<module>plugin-trino</module>
<module>ranger-trino-plugin-shim</module>
<module>distro</module> ====> ADD THIS LINE between Line Number 630 and
640
</modules>
</profile>{noformat}
Once you add this distro line you can try one of the the following which will
build only trino plugin for you and still create a tar file
{code:java}
mvn clean install -P 'ranger-trino-plugin,!ranger-jdk11' -am{code}
or
{code:java}
mvn clean compile package assembly:assembly -P ranger-trino-plugin{code}
> Build Plugin-Trino artifacts only with JDK 11
> ---------------------------------------------
>
> Key: RANGER-3755
> URL: https://issues.apache.org/jira/browse/RANGER-3755
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Affects Versions: 3.0.0, 2.2.0
> Reporter: Ramesh Mani
> Assignee: Ramesh Mani
> Priority: Major
> Fix For: 3.0.0, 2.3.0
>
>
> Plugin Trino needs jdk 11 and about to compile and build. In order to avoid
> build issue in Apache Ranger when including Plugin Trino, we need to enable a
> profile so that default build of Apache Ranger will use JDK 1.8 and Plugin
> Trino and its artifacts can be build with JDK 11 profile.
> To build Plugin Trino artifacts following command can be executed.
> mvn clean compile package -P ranger-trino-plugin
--
This message was sent by Atlassian Jira
(v8.20.7#820007)