Kamalpreet opened MDEP-812 and commented
My profile :-
<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>
When running command
, I'm getting error
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)
Why maven-dependency-plugin is not able to resolve jar path? Is there anyway to fix this issue? Any help is much appreciated.
Attachments:
Issue Links:
- MNG-6058 Test dependencies should override application dependencies only during testing
("is caused by")
Kamalpreet opened MDEP-812 and commented
My profile :-
When running command
, I'm getting error
Why maven-dependency-plugin is not able to resolve jar path? Is there anyway to fix this issue? Any help is much appreciated.
Attachments:
Issue Links:
("is caused by")