[Re-sending from my subscribed address.]

Fri, 02 May 2025 13:25:23 +0200, /Steinar Bang/:

Platform: debian 12.10 "bookworm", amd64, java 21.0.4, maven 3.8.7, 
exec-maven-plugin 3.5.0

If I add the jar file containing the mainClass as a compile scope dependency on the project:
  
https://gist.github.com/steinarb/d177a1c1146fedf374608390fbbe4841#file-pom-xml-L119

Then this exec-maven-plugin runs (and does its thing, which is convert an XSD schema to a Relax-NG XML Notation schema):
  
https://gist.github.com/steinarb/d177a1c1146fedf374608390fbbe4841#file-pom-xml-L168

But having a compile scope dependency on the project adds msg-rngconverter as a transitive dependency on the project
[...]

Ideas? Tips? Something wrong in my config?

Does it work adding the dependency to the plugin dependencies, instead?

    <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <version>3.5.0</version>
        <dependencies>
            <dependency>
                <groupId>net.java.dev.msv</groupId>
                <artifactId>msv-rngconverter</artifactId>
                <version>2022.7</version>
            </dependency>
        </dependencies>
        <executions>
            ...
        </executions>
    </plugin>

--
Stanimir

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to