Skip to content

Skip maven provisio:provision when building modules #15946

Open
@kokosing

Description

@kokosing

This is issue is maybe for a discussion than actual task.

Whenever we are building any Trino module we always run mvn provisio:provision during Mavenpackage phase. That produces the zip file. Usually building the zip file takes a half of the time of building the plugin. Next that zip files are used to build tar.gz (the content is decompressed and compressed again). It looks like there is space for improvement. For example if we could skip buiding zip files and instead we could build tar.gz file directly from dependency model per each plugin, than way we could:

  • make the build way faster
  • there will be less maven artifacts (zip files are not used elsewhere)

Notice that skipping of building zip files can be done with -DskipProvision (jvanzyl/provisio#61).

Having trino-maven-plugin to build zip is very nice feature for external Trino plugins that then are easy to distribute and so easy to install in Trino installation. So I don't think we should remove that functionality. Maybe zip files should be only build for releases?

Metadata

Metadata

Assignees

No one assigned

    Labels

    dxIssues or pull requests related to developer experiencemaintenanceProject maintenance task

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions