-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error reading assemblies: No assembly descriptors found #24
Comments
Hi @antonio-pedro99, The initial import used the maven assembly plugin to generate a JAR with dependencies. It looks like the plugin was removed in 9b8756d by @scholzj. He did keep the version definition but commented it out: https://github.com/strimzi/metrics-reporter/blob/main/pom.xml#L110. I'm not sure if it was done for a specific reason or if it's only temporary. In the meantime, you can uncomment the version definition and add the following to the <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven.assembly.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals><goal>single</goal></goals>
</execution>
</executions>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin> |
It is working on the CIs. So I'm not sure this is a problem of something missing but more some kind of environment issue or some issue with what is being run? |
Is the CI running |
I guess it does not. And I'm not sure what would such command be even expected to do TBH. |
As mentioned the assembly plugin can be used to produce an uber JAR. |
I know what the assembly plugin does, but I never saw it used in that way. I think it should be removed from the README. |
I think we want to produce an uber JAR for this project. So what do you suggest we do? |
I'm not sure we want to produce Uber JAR. I do not think we tend to do it for other similar projects. We would normally produce the regular JARs and if needed a ZIP / TGZ archive with all the required dependencies. |
Doing my homework and checking other Strimzi projects do, it seems we want to do something similar to what is done in https://github.com/strimzi/kafka-kubernetes-config-provider. So builds should produce source archives, and archives of the metrics-reporter JAR + JAR dependencies (with the license and readme). |
@mimaison Sounds like a plan. Should I do it? |
Maybe let's see if @OwenCorrigan76 or @antonio-pedro99 would be interested in contributing this? |
@OwenCorrigan76 Sure. Feel free to ping me for help or review. |
Using similar to other Strimzi projects, this is the contents of
And this is the contents of
Does this look like all of the dependencies are present for the Metrics Reporter? This is everything that was in the previously used uber jar:
This is the assembly.xml file:
|
That looks about right. Can you open a PR so we can take a look? |
Fixed in #27, closing |
I am trying to set up the project locally, and facing the following error
From where can I get the assembly descriptor?
The text was updated successfully, but these errors were encountered: