ensure manifest.mf is correct for our shades (agent module)
diff --git a/winegrower-extension/winegrower-agent/pom.xml b/winegrower-extension/winegrower-agent/pom.xml
index d7ab20e..2978a81 100644
--- a/winegrower-extension/winegrower-agent/pom.xml
+++ b/winegrower-extension/winegrower-agent/pom.xml
@@ -34,6 +34,8 @@
<winegrower.build.name>${winegrower.build.name.base}.extension.agent</winegrower.build.name>
</properties>
+
+
<dependencies>
<dependency>
<groupId>org.apache.winegrower</groupId>
@@ -51,20 +53,19 @@
</dependencies>
<build>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
- <manifestEntries>
- <Automatic-Module-Name>${winegrower.build.name}</Automatic-Module-Name>
- <Premain-Class>org.apache.winegrower.extension.agent.WinegrowerAgent</Premain-Class>
- <Agent-Class>org.apache.winegrower.extension.agent.WinegrowerAgent</Agent-Class>
- <!-- for now no instrumentation -->
- <Can-Redefine-Classes>false</Can-Redefine-Classes>
- <Can-Retransform-Classes>false</Can-Retransform-Classes>
- </manifestEntries>
+ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
@@ -84,6 +85,9 @@
<descriptor>src/main/assembly/core.xml</descriptor>
<descriptor>src/main/assembly/jaxrs.xml</descriptor>
</descriptors>
+ <archive>
+ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+ </archive>
</configuration>
</execution>
</executions>
diff --git a/winegrower-extension/winegrower-agent/src/main/resources/META-INF/MANIFEST.MF b/winegrower-extension/winegrower-agent/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..11daa73
--- /dev/null
+++ b/winegrower-extension/winegrower-agent/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,15 @@
+Manifest-Version: 1.0
+Created-By: Apache Maven
+Automatic-Module-Name: ${winegrower.build.name}
+Can-Redefine-Classes: false
+Can-Retransform-Classes: false
+Agent-Class: org.apache.winegrower.extension.agent.WinegrowerAgent
+Premain-Class: org.apache.winegrower.extension.agent.WinegrowerAgent
+Implementation-Title: ${project.name}
+Implementation-URL: https://www.apache.org/winegrower/
+Implementation-Vendor-Id: ${project.groupId}
+Implementation-Vendor: The Apache Software Foundation
+Implementation-Version: ${project.version}
+Specification-Title: Apache Winegrower :: Extension :: Agent
+Specification-Vendor: The Apache Software Foundation
+Specification-Version: 1.0