Skip to content

hone-maven-plugin can't optimize classes in objectionary/kafka #479

Description

@volodya-lombrozo

I'm trying to run hone-maven-plugin on objectionary/kafka project with the following configuration:

def v = '0.23.3'
def hone = tasks.register('hone', Exec) {
  group = 'build'
  description = 'Run hone after Java compile'
  sourceSets.main.output.classesDirs.files.each { dir ->
    commandLine 'mvn',
            "-Dhone.timeout=700",
            "-Dhone.threads=0",
            "-Dhone.jeo-version=0.14.11",
            "-Dhone.grep-in=(66-69-6C-74-65-72|6D-61-70)",
            "-Dhone.rules=streams/*",
            "-Dhone.target=${project.buildDir}",
            "-Dhone.classes=${project.buildDir.toPath().relativize(dir.toPath())}",
            "org.eolang:hone-maven-plugin:${v}:pull",
            "org.eolang:hone-maven-plugin:${v}:optimize"
  }
}

Note: even if I use 0.23.3 version - it's not fully true: I had to fix the
latest version of hone-maven-plugin to make it compatible with Java 17.

When the plugin starts I get the following error:

[INFO] >> No grep-in match for 41/57 MessageGenerator.xmir (644K), skipping
[INFO] >> No grep-in match for 38/57 JsonConverterGenerator.xmir (1.4M), skipping
[INFO] >> No grep-in match for 43/57 MessageSpec$1.xmir ( 32K), skipping
[INFO] >> No grep-in match for 42/57 MessageSpec.xmir (232K), skipping
[INFO] >> No grep-in match for 45/57 MetadataJsonConvertersGenerator.xmir (252K), skipping
[INFO] >> No grep-in match for 44/57 MessageSpecType.xmir ( 60K), skipping
[INFO] >> No grep-in match for 46/57 MetadataRecordTypeGenerator.xmir (440K), skipping
[INFO] >> No grep-in match for 47/57 RequestListenerType.xmir ( 44K), skipping
[INFO] >> No grep-in match for 49/57 SchemaGenerator$MessageInfo.xmir ( 20K), skipping
[INFO] >> No grep-in match for 48/57 SchemaGenerator.xmir (728K), skipping
[INFO] >> No grep-in match for 50/57 StructRegistry.xmir (256K), skipping
[INFO] >> No grep-in match for 51/57 StructRegistry$1.xmir ( 44K), skipping
[INFO] >> No grep-in match for 52/57 StructRegistry$StructInfo.xmir ( 32K), skipping
[INFO] >> No grep-in match for 55/57 TypeClassGenerator.xmir ( 12K), skipping
[INFO] >> No grep-in match for 56/57 VersionConditional.xmir (372K), skipping
[INFO] >> No grep-in match for 57/57 Versions.xmir (264K), skipping
[INFO] >> Timeout in 40/57 MessageDataGenerator.xmir (5.0M) after 2 seconds
[WARNING] >> [ERROR]: Couldn't traverse though given XMIR, cause: The @base attribute must be either ['∅'|'Φ'] or start with ['Φ.'|'ξ.'|'.']
[WARNING] >> XMIR:
[WARNING] >> <?xml version="1.0" encoding="UTF-8"?>
[WARNING] >> <o base="Q.jeo.class" name="@"/>
[WARNING] >>

It seems, that hone-maven-plugin doesn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions