As suggested by Stanimir if I remove the test-jar type and also the
includes like below then mvn package --projects=:agent -T 2 --also-make
works

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-jar-plugin</artifactId>
    <version>3.3.0</version>
    <executions>
        <execution>
            <goals>
                <goal>test-jar</goal>
            </goals>
        </execution>
    </executions>
</plugin>

But if I add back the below inclusion it again starts throwing the
NoClassDefFoundError

<configuration>
     <includes>
        <include>common/**</include>
     </includes>
</configuration>

On Thu, Mar 28, 2024 at 5:51 PM Stanimir Stamenkov
<s7a...@netscape.net.invalid> wrote:

> Thu, 28 Mar 2024, /Debraj Manna/:
>
> > Ok I can try that but I can see the type test-jar from the below
> > documentation
> >
> > https://maven.apache.org/guides/mini/guide-attached-tests.html
>
> I hadn't been aware of it.  It could be specific to the ear-plugin:
>
> * https://issues.apache.org/jira/browse/MEAR-216
>
>
> > On Thu, Mar 28, 2024 at 3:11 PM Stanimir Stamenkov wrote:
> >> Thu, 28 Mar 2024, /Debraj Manna/:
> >>
> >>> <dependency>
> >>>     <groupId>com.spotnana</groupId>
> >>>     <artifactId>synapse</artifactId>
> >>>     <version>0.0.1-SNAPSHOT</version>
> >>>     <classifier>tests</classifier>
> >>>     <type>test-jar</type>
> >>
> >> This doesn't seem right.  I'm not aware of <type>test-jar</type> –
> >> should be just <type>jar</type> (or just omit it as it is implied).
>
> --
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to