0

I have a parent maven module parent as follows :

<groupId>com</groupId>
<artifactId>parent</artifactId>
<version>0.0.1</version>

<modules>
<module>c1</module>
<module>c2</module>
</modules>

c1 is a normal child module of the same version 0.0.1 of same group id com.

The c2 module is of the same group id com and same version 0.0.1, however, uses a plugin under build that has a dependency on c1 as follows:

    <build>
        <plugins>
            <plugin>
                <groupId>com</groupId>
                <artifactId>c1</artifactId>
                <version>0.0.1</version>
            </plugin>
        </plugins>
    </build>

If I run mvn install on c1 and then run mvn package on parent then everything works fine. However, I do not want to run mvn install on c1. Is it possible to package it in a single command?

user1707873
  • 1,307
  • 2
  • 10
  • 10

0 Answers0