You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2022/11/27 13:24:00 UTC
[jira] [Reopened] (MDEP-812) Error opening zip file or JAR manifest missing : ${groupId:artifactId:jar}
[ https://issues.apache.org/jira/browse/MDEP-812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elliotte Rusty Harold reopened MDEP-812:
----------------------------------------
Oops, closed wrong bug
> 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: properties
> Reporter: Kamalpreet
> Priority: Blocker
> Attachments: dependency-tree.txt, log-1.txt, log.txt
>
>
> 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}
> Why maven-dependency-plugin is not able to resolve jar path? Is there anyway to fix this issue? Any help is much appreciated.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)