You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kamalpreet (Jira)" <ji...@apache.org> on 2022/07/29 07:15:00 UTC
[jira] [Created] (MDEP-812) Error opening zip file or JAR manifest missing : ${groupId:artifactId:jar}
Kamalpreet created MDEP-812:
-------------------------------
Summary: Error opening zip file or JAR manifest missing : ${groupId:artifactId:jar}
Key: MDEP-812
URL: https://issues.apache.org/jira/browse/MDEP-812
Project: Maven Dependency Plugin
Issue Type: Bug
Components: resolve
Reporter: Kamalpreet
My profile :-
{code:java}
<profiles>
<profile>
<id>test</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>getClasspathFilenames</id>
<goals>
<goal>properties</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<classpathScope>test</classpathScope>
<executable>java</executable>
<arguments>
<argument>-javaagent:${groupId:artifactId:jar}
</argument>
<argument>-classpath</argument>
<classpath/>
<argument>sampleTest</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles> {code}
When running command
{code:java}
mvn exec:exec -P test{code}
, I'm getting error
{code:java}
Error opening zip file or JAR manifest missing : ${groupId:artifactId:jar}
Error occurred during initialization of VM
agent library failed to init: instrument
[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:166)
at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:1000){code}
Is there anyway to fix this issue? Any help is much appreciated.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)