Skip to content

ResolveMojo should not be part of assemble cycle #3199

Description

@maxonfjvipon

There's a strange reason why ResolveMojo and MarkMojo are in assemble cycle.

ResolveMojo downloads .jar packages from Maven Central. Package contains .class files and directory EO-SOURCES with .eo source files.

MarkMojo scans EO-SOURCES directory and extends foreign-tojos with visible EO objects.

We actually need this MarkMojo inside assembly cycle because of atoms that may create EO objects that are not visible in EO sources.

So what we need:

  1. Move ResolveMojo out of assembly cycle so it downloads and unpack all jars after assembling only once.
  2. Introduce some mechanism of downloading all EO sources by the name of the dependency name:
  • name eo-runtime -> download all sources for eo-runtime,
  • name eo-collections -> download all sources for eo-collections

This mechanism should be placed instead of ResolveMojo in assemble cycle

@yegor256 WDYT?

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions