[
https://issues.apache.org/jira/browse/FLUME-3464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
xuwenping updated FLUME-3464:
-----------------------------
Attachment: image-2023-03-29-22-38-34-291.png
> Flume search master branch failed to build
> ------------------------------------------
>
> Key: FLUME-3464
> URL: https://issues.apache.org/jira/browse/FLUME-3464
> Project: Flume
> Issue Type: Bug
> Reporter: xuwenping
> Priority: Major
> Attachments: image-2023-03-29-22-38-34-291.png
>
>
> Hello, as mentioned before, I found that flume search will have some
> unexpected situations when the project is built, as follows:
> {code:java}
> [ERROR] [ERROR] Some problems were encountered while processing the POMs:
> [FATAL] Non-resolvable parent POM for
> org.apache.flume:flume-search:1.0.0-SNAPSHOT: Could not find artifact
> org.apache.flume:flume-parent:pom:1.10.0-SNAPSHOT and 'parent. relativePath'
> po
> ints at wrong local POM @ line 21, column 11 {code}
> After I upgraded the parent pom to 1.11.1-SNAPSHOT, the project still had
> issues, as follows:
> {code:java}
> Could not find artifact
> org.apache.flume:flume-dependencies:pom:1.0.0-SNAPSHOT in apache.snapshots
> (https://repository.apache.org/snapshots) {code}
> For this, I introduced the following dependencies, and the project
> compilation finally succeeded.
>
> {code:java}
> <dependency>
> <groupId>org.apache.flume</groupId>
> <artifactId>flume-dependencies</artifactId>
> <version>${flume.version}</version>
> <scope>import</scope>
> <type>pom</type>
> </dependency> {code}
> Then, when I execute the packaging command, the error is still as follows
> {code:java}
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-jar-plugin:3.2.2:jar (default-jar) on project
> flume-elasticsearch-sink: Error assembling JAR: Invalid automatic module name:
> '' -> [Help 1] {code}
> So, I added the following dependencies.
> {code:java}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-jar-plugin</artifactId>
> <version>${mvn-jar-plugin.version}</version>
> <executions>
> <execution>
> <id>default-jar</id>
> <goals>
> <goal>jar</goal>
> </goals>
> <configuration>
> <archive>
> <manifestEntries>
> <Specification-Title>${project.name}</Specification-Title>
> <Specification-Version>${project.version}</Specification-Version>
>
> <Specification-Vendor>${project.organization.name}</Specification-Vendor>
> <Implementation-Title>${project.name}</Implementation-Title>
>
> <Implementation-Version>${project.version}</Implementation-Version>
>
> <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
> <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
>
> <X-Compile-Source-JDK>${maven.compiler.source}</X-Compile-Source-JDK>
>
> <X-Compile-Target-JDK>${maven.compiler.target}</X-Compile-Target-JDK>
>
> <Automatic-Module-Name>org.apache.flume.sink.elasticsearch</Automatic-Module-Name>
> </manifestEntries>
> </archive>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> Finally, the content as described above was submitted, thank you for taking
> time out of your busy schedule to view.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]