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:
- Move
ResolveMojo out of assembly cycle so it downloads and unpack all jars after assembling only once.
- 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?
There's a strange reason why
ResolveMojoandMarkMojoare inassemblecycle.ResolveMojodownloads.jarpackages fromMaven Central. Package contains.classfiles and directoryEO-SOURCESwith.eosource files.MarkMojoscansEO-SOURCESdirectory and extendsforeign-tojoswith visible EO objects.We actually need this
MarkMojoinsideassemblycycle because of atoms that may create EO objects that are not visible in EO sources.So what we need:
ResolveMojoout ofassemblycycle so it downloads and unpack alljarsafter assembling only once.eo-runtime-> download all sources foreo-runtime,eo-collections-> download all sources foreo-collectionsThis mechanism should be placed instead of
ResolveMojoinassemblecycle@yegor256 WDYT?