Re: How to include only certain test packages in a maven test-jar & all non test code in a non test jar?

2024-03-30 Thread Stanimir Stamenkov
Sat, 30 Mar 2024, /Debraj Manna/: 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 [...] But if I add back the below inclusion it again starts throwing the NoClassDefFoundError [...] At least f

Re: How to include only certain test packages in a maven test-jar & all non test code in a non test jar?

2024-03-29 Thread Debraj Manna
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 org.apache.maven.plugins maven-jar-plugin 3.3.0 test-jar But if I a

Re: How to include only certain test packages in a maven test-jar & all non test code in a non test jar?

2024-03-28 Thread Stanimir Stamenkov
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-21

Re: How to include only certain test packages in a maven test-jar & all non test code in a non test jar?

2024-03-28 Thread 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 On Thu, Mar 28, 2024 at 3:11 PM Stanimir Stamenkov wrote: > Thu, 28 Mar 2024, /Debraj Manna/: > > > But I am still facing issues in the below case. > > [

Re: How to include only certain test packages in a maven test-jar & all non test code in a non test jar?

2024-03-28 Thread Stanimir Stamenkov
Thu, 28 Mar 2024, /Debraj Manna/: But I am still facing issues in the below case. [...] com.spotnana synapse 0.0.1-SNAPSHOT tests test-jar This doesn't seem right. I'm not aware of test-jar – should be just jar (or just omit it as it is implied). test Now if I am try

Re: How to include only certain test packages in a maven test-jar & all non test code in a non test jar?

2024-03-28 Thread Debraj Manna
Gary Somehow your message went into my spam folder. The idea was in synapse there were certain utility classes which other modules should only use while writing integration tests with synapse. The test classes are not expected to be used in non-test code by other modules. synapse also contains t

Re: How to include only certain test packages in a maven test-jar & all non test code in a non test jar?

2024-03-27 Thread Debraj Manna
As suggested the below config is working fine org.apache.maven.plugins maven-jar-plugin 3.3.0 test-jar

Re: How to include only certain test packages in a maven test-jar & all non test code in a non test jar?

2024-03-22 Thread Stanimir Stamenkov
See my reply below the quote... Fri, 22 Mar 2024, /Debraj Manna/: [...] I tried the below org.springframework.boot spring-boot-maven-plugin true org.apache.maven.plugins maven-jar-plugin

Re: How to include only certain test packages in a maven test-jar & all non test code in a non test jar?

2024-03-22 Thread Gary Gregory
I think the "simple" solution is to use 2 maven modules, then you don't need to do anything special. The layout does not make sense to me so I must be missing something. If the common code is needed for both main and test, then it should be in main. You can put that common code in its own package t

How to include only certain test packages in a maven test-jar & all non test code in a non test jar?

2024-03-22 Thread Debraj Manna
I have a Maven module named synapse. main java package1 A.java test java common C.java package1 ATest.java Can someone let me know if in Maven I can create a non-executable jar containing all non-test code (main/) and another test-jar containing only the code un