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
add back the below inclusion it again starts throwing the NoClassDefFoundError common/** On Thu, Mar 28, 2024 at 5:51 PM Stanimir Stamenkov wrote: > Thu, 28 Mar 2024, /Debraj Manna/: > > > Ok I can try that but I can see the type test-jar from the below >

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 th

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
ust > 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 > to signal its specific purpose. > > Gary > > > On Fri, Mar 22, 2024, 3:29 AM Debraj Manna > wrote: > > &g

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
--projects=:agent,:synapse -T 2 --also-make 2. and remove the configuration.includes section in test-jar execution goal Is this the expected behaviour with --also-make? On Fri, Mar 22, 2024 at 4:34 PM Stanimir Stamenkov wrote: > See my reply below the quote... > > Fri, 22 Mar 2024, /Deb

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

Re: Maven 4.0 release timeline

2023-12-20 Thread Debraj Manna
8aNCvW?h=2OV2Xb8OY1yozkosb4XLJzGzmH5eCx0rkkaq0thqbr4==https://www.javaadvent.com/2021/12/from-maven-3-to-maven-5.html > > PS. Most of the above was exactly one Google search away...: "Maven 4" > > > -Original Message- > > From: Karl Heinz Marbaise > >

Maven 4.0 release timeline

2023-12-17 Thread Debraj Manna
Can someone let me know when Maven 4 is expected to be released? Where can I view its release timelines?

Re: Re: How to log in surefire which test classes are executed in which surefire thread?

2023-09-14 Thread Debraj Manna
Created https://issues.apache.org/jira/browse/SUREFIRE-2195 On Thu, Sep 14, 2023 at 1:23 PM Olivier Lamy wrote: > Please create a jira to attach files as this will not be displayed > here in the mailing list. > > On Thu, 14 Sept 2023 at 17:50, Debraj Manna > wrote: > >

Re: Re: How to log in surefire which test classes are executed in which surefire thread?

2023-09-14 Thread Debraj Manna
, sometimes it says Test Run 2, etc. On Wed, Sep 13, 2023 at 12:11 PM Debraj Manna wrote: > I am using a surefire dependency like below. Do I have to add anything in > the plugin dependency for running tests in parallel using Junit5? > > > org.apache.maven.plugins > maven-surefir

Re: Re: How to log in surefire which test classes are executed in which surefire thread?

2023-09-13 Thread Debraj Manna
ire 3.1.2 and junit 5.9.3 (Oh I have to upgrade :) ) > If you have a simple reproducer project, this would help > > On Wed, 13 Sept 2023 at 04:07, Debraj Manna > wrote: > > > > I am still facing the issue with > > junit.jupiter.execution.parallel.config.fixed.parallelism

Re: Re: How to log in surefire which test classes are executed in which surefire thread?

2023-09-12 Thread Debraj Manna
I am still facing the issue with junit.jupiter.execution.parallel.config.fixed.parallelism=3, JUnit5 Version = 5.10.0 and surefire 3.1.2 On Tue, Sep 12, 2023 at 6:34 PM Debraj Manna wrote: > Olivier > > Can you please let me know what version of Surefire and JUnit5 you are > using

Re: Re: How to log in surefire which test classes are executed in which surefire thread?

2023-09-12 Thread Debraj Manna
n you try > junit.jupiter.execution.parallel.config.fixed.parallelism=3 > And see if you still have the issues. > If not and if increasing this number is causing the issue. This sound > like a concurrent flle access issue with surefire. > > On Tue, 12 Sept 2023 at 18:02, Debraj Manna > wrote: >

RE: Re: How to log in surefire which test classes are executed in which surefire thread?

2023-09-12 Thread Debraj Manna
> >> I don’t have answers for your Surefire questions, but I wanted to mention > >> that you can also tell JUnit 5.9.2 to execute tests in parallel: > >> https://junit.org/junit5/docs/5.9.2/user-guide/index.html > >> > >>

Re: Update plexus-archiver to 4.8.0 in maven-archiver

2023-08-20 Thread Debraj Manna
nowski wrote: > Hi > > Next version of maven-archiver is ready for release. > > I can release new version in next week. > > > https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12317922=12353169 > > > wt., 8 sie 2023, 14:12 użytkownik Debraj Manna >

CVE-2021-26291 in maven-bundle plugin

2023-08-19 Thread Debraj Manna
Hi In our scan maven-bundle plugin 5.1.5 is getting flagged for CVE-2021-26291 due to the presence of maven-compat 3.3.9. I am seeing that the latest version of maven-bundle plugin, 5.1.9 is also using maven-compat 3.3.9. Is there any plan to

Update plexus-archiver to 4.8.0 in maven-archiver

2023-08-08 Thread Debraj Manna
Hi maven-archiver is getting flagged for CVE-2023-37460 in our vulnerability scans. But I am seeing the latest version of maven-archiver (3.6.0) is still using plexus-archiver 4.4.0. Is there any plan to upgrade plexus-archiver to 4.8.0 in

Re: How to log in surefire which test classes are executed in which surefire thread?

2023-05-29 Thread Debraj Manna
ted to mention > that you can also tell JUnit 5.9.2 to execute tests in parallel: > https://junit.org/junit5/docs/5.9.2/user-guide/index.html > > Nils. > > > Op 29 mei 2023 om 16:13 heeft Debraj Manna > het volgende geschreven: > > > > I updated

Re: How to log in surefire which test classes are executed in which surefire thread?

2023-05-29 Thread Debraj Manna
? Junit Version - 5.9.2 On Mon, May 29, 2023 at 6:53 PM Debraj Manna wrote: > I want to execute test classes concurrently in the same JVM. So my > surefire-plugin config looks like below > > > org.apache.maven.plugins > maven-surefire-p

How to log in surefire which test classes are executed in which surefire thread?

2023-05-29 Thread Debraj Manna
I want to execute test classes concurrently in the same JVM. So my surefire-plugin config looks like below org.apache.maven.plugins maven-surefire-plugin 3.0.0-M7 $${surefire.forkNumber} -Xms512m -Xmx${surefire.max.heap}

Re: How does reuseFork and forkCount behaves with maven parallel builds?

2023-03-23 Thread Debraj Manna
which means you can have potentially one surefire forked jvm > per module > which means a maximum of 3 jvms running at the same time. > > > > On Wed, 22 Mar 2023 at 18:53, Debraj Manna > wrote: > > > > I have a multi-module project. My POM structure is like below >

How does reuseFork and forkCount behaves with maven parallel builds?

2023-03-22 Thread Debraj Manna
I have a multi-module project. My POM structure is like below root/pom.xml a b c d I am running surefire with reuseForks = true, forkCount = 1. If I am executing all tests at the root level with mvn -T 2 test. How will tests be executed? Assuming maven picks modules *a* and *b* to be

Re: Change log level of a maven plugin

2022-11-09 Thread Debraj Manna
report uploaded in 282ms then on executing maven with -Dorg.slf4j.simpleLogger.log.org.sonarsource.scanner.maven.SonarQubeMojo=error it changed the log level. On Tue, Nov 8, 2022 at 11:43 PM Debraj Manna wrote: > Thanks Slawomir. I was also searching how to get the logger name for sonar >

Re: Change log level of a maven plugin

2022-11-08 Thread Debraj Manna
> > finally you can create file in project: .mvn/jvm.config with line: > -Dorg.slf4j.simpleLogger.log.=error > > > > wt., 8 lis 2022 o 18:23 Debraj Manna > napisał(a): > > > I want to disable the sonar analysis logs during mvn test coming from the > &

Change log level of a maven plugin

2022-11-08 Thread Debraj Manna
I want to disable the sonar analysis logs during mvn test coming from the below plugin. org.sonarsource.scanner.maven sonar-maven-plugin 3.9.1.2184 As per this discussion sonar does not support

Re: Maven 3.8 Difference between thread count and forkcount for suitsAndClasses parallelism

2022-06-07 Thread Debraj Manna
refire independently. > I hope that this explains the behavior you are seeing > > > Enrico > > Il giorno mar 7 giu 2022 alle ore 15:28 Debraj Manna > ha scritto: > > > > I have asked the same in stackoverflow > > < > https://stackoverflow.com/questions

Re: Maven 3.8 Difference between thread count and forkcount for suitsAndClasses parallelism

2022-06-07 Thread Debraj Manna
I have asked the same in stackoverflow <https://stackoverflow.com/questions/72515006/maven-3-8-difference-between-thread-count-and-forkcount-for-suitsandclasses-para> also. Any one any thoughts? On Mon, Jun 6, 2022 at 7:25 PM Debraj Manna wrote: > I read the link > <https://m

Re: Maven 3.8 Difference between thread count and forkcount for suitsAndClasses parallelism

2022-06-06 Thread Debraj Manna
erstanding correct? What happens for suitesAndClasses? How are the tests distributed? On Mon, Jun 6, 2022 at 1:19 PM Debraj Manna wrote: > Hi > > I am having a surefire configuration like below > > > 2 > true > false > suitesAndClasses > > > In a multimodu

Maven 3.8 Difference between thread count and forkcount for suitsAndClasses parallelism

2022-06-06 Thread Debraj Manna
Hi I am having a surefire configuration like below 2 true false suitesAndClasses In a multimodule maven project if I am executing mvn test -T 5 then how does parallelism work here? Will it be that in surefire fork1 5 tests classes will be running in parallel and same in fork2? Maven

Re: Maven enforcer plugin failing with maven 3.6.1 but passing with maven 3.6.3

2020-08-30 Thread Debraj Manna
with-3 On Sat, Aug 29, 2020 at 6:37 PM Debraj Manna wrote: > I am observing the same behavior with maven docker also. It is passing > with 3.6.3 but failing with 3.6.1. > > Used the below commands > > Debrajs-MacBook-Air:es-plugins debrajmanna$ docker run -it --rm --name > es

Re: Maven enforcer plugin failing with maven 3.6.1 but passing with maven 3.6.3

2020-08-29 Thread Debraj Manna
manna/code/vnera/es-plugins maven:3.6.1 mvn validate Debrajs-MacBook-Air:es-plugins debrajmanna$ docker run -it --rm --name es-plugins -v "$(pwd)":/Users/debrajmanna/code/vnera/es-plugins -w /Users/debrajmanna/code/vnera/es-plugins maven:3.6.3 mvn validate On Sat, Aug 29, 2020 at 5:32 PM

Re: Maven enforcer plugin failing with maven 3.6.1 but passing with maven 3.6.3

2020-08-29 Thread Debraj Manna
ned on SO the behaviour can't be reproduced with the > example project. > > Tested with Maven 3.6.0, 3.6.1, 3.6.2 and 3.6.3... > > Kind regards > Karl Heinz Marbaise > On 29.08.20 08:34, Debraj Manna wrote: > > Hi > > > > In one of my project I am trying to use DependencyCo

Re: Maven enforcer plugin failing with maven 3.6.1 but passing with maven 3.6.3

2020-08-29 Thread Debraj Manna
Just to be more explicit with maven versions. I tried with maven version 3.6.1, 3.6.3 and 3.5.3. It worked fine only with 3.6.3. On Sat, Aug 29, 2020 at 12:04 PM Debraj Manna wrote: > Hi > > In one of my project I am trying to use DependencyConvergence rule with > maven enforcer

Maven enforcer plugin failing with maven 3.6.1 but passing with maven 3.6.3

2020-08-29 Thread Debraj Manna
someone point me to the relevant jira under which this issue is fixed in maven 3.6.3. I have placed a sample project in https://github.com/debraj-manna/es-plugins where this issue can be reproduced. maven-enforcer-plugin - 3.0.0-M2 Debrajs-MacBook-Air:es-plugins debrajmanna$ ~/Downloads/apache

How to disable certain enforcer rules in a child module in a multi-module maven project?

2020-08-13 Thread Debraj Manna
I am using a maven-enforcer plugin in a multi-module maven project. Let's say my project structure is like below main - query - storage My enforcer plugin in main pom looks like below org.apache.maven.plugins maven-enforcer-plugin

Re: How maven repositories are resolved?

2020-08-12 Thread Debraj Manna
Thanks John for such a detailed explanation. Few doubts For release version assuming empty local repo. > - Build order this time alpha, bravo, charlie > - Alpha needs A, and Aa is downloaded as it's in central repo and that > was 1st repo in the order list When you say central repo is the first

How maven repositories are resolved?

2020-07-29 Thread Debraj Manna
Cross-posting from stackoverflow Let's say my settings.xml is defined like below http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd;

Re: Maven brings “test” transitive dependency as “compile”

2020-05-28 Thread Debraj Manna
ning dependency:tree again, which actually > you said you did as well, so I'm curious what we did differently. > > Anyway, I hope this helps! > -- > Andy Feldman > Wealthfront > > > > On Tue, May 26, 2020 at 11:59 AM Debraj Manna > wrote: > > > You can

Re: Maven brings “test” transitive dependency as “compile”

2020-05-26 Thread Debraj Manna
You can reproduce the issue in https://github.com/debraj-manna/dependency-issue In dependency tree of delete I am seeing dependency as below [INFO] \- org.apache.bookkeeper:bookkeeper-common:test-jar:tests:4.10.0:test [INFO]+- org.apache.bookkeeper.stats:bookkeeper-stats-api:jar:4.10.0:test

Re: Maven brings “test” transitive dependency as “compile”

2020-05-23 Thread Debraj Manna
available on the public Internet (no > artifactory.arkin.local:8000). > > BTW, this is the documentation I think your Maven tree is not behaving as > documented: > > https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#dependency-scope > > >

Re: Maven brings “test” transitive dependency as “compile”

2020-05-22 Thread Debraj Manna
-SNAPSHOT ... If I just exclude netty-common from apache-bookkeeper then netty-common 4.1.32 does not show up in the dependency tree. On Sat, May 23, 2020 at 3:57 AM Andy Feldman wrote: > On Fri, May 22, 2020 at 6:31 AM Debraj Manna > wrote: > > > bookkeeper-common is in test scope

Re: Maven brings “test” transitive dependency as “compile”

2020-05-22 Thread Debraj Manna
Thanks Tomo for replying. No I don't have any dependencyManagement specified in my parent pom. I have placed the effective pom here <https://gist.github.com/debraj-manna/c1b0debf3f50f5ede32d2e9de68430ac>. mvn dependency:tree -Dverbose does not work for me. Below is the result I got.

Maven brings “test” transitive dependency as “compile”

2020-05-22 Thread Debraj Manna
ave placed the entire dependency tree output here <https://gist.github.com/debraj-manna/dc51aa33d318b41126fb366372997893>. The pom is like below com.vnera main 0.001-SNAPSHOT delete jar delete com.vnera

Re: Fail maven multi module build when surefire goes OOM

2020-04-21 Thread Debraj Manna
Anyone any thoughts on this one? On Sun, Apr 19, 2020 at 10:49 PM Debraj Manna wrote: > Just to add the tests are executed on jenkins so fail-on-end is set to > true. > > On Sun, Apr 19, 2020 at 8:37 PM Debraj Manna > wrote: > >> We use maven-surefire for executing tes

Re: Fail maven multi module build when surefire goes OOM

2020-04-19 Thread Debraj Manna
Just to add the tests are executed on jenkins so fail-on-end is set to true. On Sun, Apr 19, 2020 at 8:37 PM Debraj Manna wrote: > We use maven-surefire for executing tests in maven multi-module project. > We use fork count of 1. We also specify certain xmx value in surefire > conf

Fail maven multi module build when surefire goes OOM

2020-04-19 Thread Debraj Manna
We use maven-surefire for executing tests in maven multi-module project. We use fork count of 1. We also specify certain xmx value in surefire configuration. Now when certain module goes OOM during test execution surefire execution of that JVM module terminates but build continue with the

Re: Maven Surefire Forked Test Execution in a multimodule project

2020-04-09 Thread Debraj Manna
Thanks Enrico. On Thu, Apr 9, 2020 at 4:46 PM Enrico Olivelli wrote: > Manna > > Il Gio 9 Apr 2020, 13:09 Debraj Manna ha > scritto: > > > Hi > > > > I am reading the maven surefire documentation > > < > > > https://maven.apache.org/s

Maven Surefire Forked Test Execution in a multimodule project

2020-04-09 Thread Debraj Manna
Hi I am reading the maven surefire documentation about the forked test execution. It states *The default setting is forkCount=1/reuseForks=true, which means that maven-surefire-plugin

Re: Skipping maven shade plugin in a spring-boot project based on maven profile

2019-12-20 Thread Debraj Manna
t; > Maarten > > References: > [1] https://stackoverflow.com/a/59420813/1523342 > [2] > https://docs.spring.io/spring-boot/docs/current/maven-plugin/index.html > [3] https://maven.apache.org/plugins/maven-shade-plugin/index.html > > On December 20, 2019 at 06:04,

Skipping maven shade plugin in a spring-boot project based on maven profile

2019-12-19 Thread Debraj Manna
I am cross-posting from stackoverflow as I did not get any reply there. I want to skip the execution of maven-shade-plugin when a certain maven profile is activated on a

Re: Take threaddump on hung surefire tests

2019-12-09 Thread Debraj Manna
test-mojo.html#enableProcessChecker > > > > Did it help? > > > > Here is the FAQ: > > http://maven.apache.org/surefire/maven-failsafe-plugin/faq.html > > > > Feel free to ask any questions if you have a problem with this topic. > > > > > > Cheers > &

Re: Take threaddump on hung surefire tests

2019-12-08 Thread Debraj Manna
e released the new version 3.0.0-M4 in Nov/17. > > Cheers > Tibor17 > > > > On Thu, Oct 3, 2019 at 2:49 PM Debraj Manna > wrote: > > > Sometimes I have maven surefire tests that get hung, due to either races > or > > deadlocks. > > > > W

Re: Take threaddump on hung surefire tests

2019-10-05 Thread Debraj Manna
talking about in one of my previous emails. > > T > > On Sat, Oct 5, 2019 at 5:57 PM Debraj Manna > wrote: > > > Enrico apache-bookeeper seems to be using timeout in @Test as I can see > > from their github repo here > > < > > > https://github.c

Re: Take threaddump on hung surefire tests

2019-10-05 Thread Debraj Manna
. > Other users woul maybe prefer to interrupt the test and continue with next > test. > This would lead to configuration with more than one config value => POJO in > new config parameter. > > On Sat, Oct 5, 2019 at 2:17 PM Debraj Manna > wrote: > > > Thanks again

Re: Take threaddump on hung surefire tests

2019-10-05 Thread Debraj Manna
algorithm in all use cases if you use forkCount > 1 > and there you will need to have our support. > > Is it this what you need, the global timeout with the same value on every > test method? > > Cheers > Tibor > > On Fri, Oct 4, 2019 at 4:30 PM Debraj Manna >

Re: Take threaddump on hung surefire tests

2019-10-04 Thread Debraj Manna
if I have misunderstood anything. On Fri, Oct 4, 2019 at 3:18 PM Debraj Manna wrote: > Yeah sure ... thanks. > > On Thu, Oct 3, 2019 at 7:50 PM Tibor Digana > wrote: > >> Hi Debraj, >> >> There is nice technical idea from Enrico. >> If you apply it a

Re: Take threaddump on hung surefire tests

2019-10-04 Thread Debraj Manna
how we > would adopt your solution in Surefire project. > > Cheers > Tibor17 > > On Thu, Oct 3, 2019 at 2:49 PM Debraj Manna > wrote: > > > Sometimes I have maven surefire tests that get hung, due to either races > or > > deadlocks. > > > > When th

Take threaddump on hung surefire tests

2019-10-03 Thread Debraj Manna
Sometimes I have maven surefire tests that get hung, due to either races or deadlocks. When this happens I have to discover what slave is being used, and then I have to log on that slave, sudo to jenkins account and execute either jstack or kill -3 I am looking for a simple solution like doing

Re: How to add test-jar and jar as dependency in a maven multimodule project?

2019-09-12 Thread Debraj Manna
Anyone any thoughts on this? I have posted the same in stackoverflow <https://stackoverflow.com/questions/57891875/how-to-add-test-jar-and-jar-as-dependency-in-a-maven-multimodule-project> also with a lot more details. But did not get much help there also. On Wed, Sep 11, 2019 at 8:30 PM

How to add test-jar and jar as dependency in a maven multimodule project?

2019-09-11 Thread Debraj Manna
I have a maven multimodule project of the form - main - storage - storage-config - storage-utils - storage-common - tools I have a class `com.vnera.storage.config.Embedded.java` residing under test folder in `storage-config` which I want to use in `storage-utils` under

Re: Shade Plugin dependency resolution

2019-08-23 Thread Debraj Manna
Anyone any update on this? On Thu, Aug 22, 2019 at 8:06 PM Debraj Manna wrote: > Hi > > Is there any doc or link that explains how does shade Plugin resolves the > dependency that is to be added in the uber jar? >

Shade Plugin dependency resolution

2019-08-22 Thread Debraj Manna
Hi Is there any doc or link that explains how does shade Plugin resolves the dependency that is to be added in the uber jar?

Re: Maven local repo in a common global directory for multiple parallel execution

2019-05-27 Thread Debraj Manna
ace as you are > duplicating binaries. > > > -Original Message- > From: Debraj Manna > Sent: Sunday, May 26, 2019 4:49 PM > To: Maven Users List > Subject: Maven local repo in a common global directory for multiple > parallel execution > > I have a mach

Re: Maven local repo in a common global directory for multiple parallel execution

2019-05-26 Thread Debraj Manna
Yes it is jenkins. Can you please explain why do you suggest to use separate caches / local repo for each execution? On Sun, May 26, 2019 at 7:26 PM Karl Heinz Marbaise wrote: > Hi, > On 26.05.19 15:48, Debraj Manna wrote: > > I have a machine in which multiple parallel maven exec

Maven local repo in a common global directory for multiple parallel execution

2019-05-26 Thread Debraj Manna
I have a machine in which multiple parallel maven execution happen . Each execution executes the below command in a seperate workspace directory mvn -f main/pom.xml clean package -DskipTests -T 6 Can someone let me know should I use a seperate maven local repo path (

Re: Maven 3 fails to follow 301 redirects

2019-03-17 Thread Debraj Manna
could you be referencing > an old plugin/wagon despite using Maven 3.5? > > > > On Mar 11, 2019, at 12:23 PM, Debraj Manna > wrote: > > > > Anyone any thoughts on this? > > > > > > On Fri, Mar 8, 2019 at 12:12 PM Debraj Manna > > wrote: > > > &

Re: Maven 3 fails to follow 301 redirects

2019-03-11 Thread Debraj Manna
Anyone any thoughts on this? On Fri, Mar 8, 2019 at 12:12 PM Debraj Manna wrote: > Hi > > I can see an issue filed for "Maven 3 fails to follow 301 redirects" > https://issues.apache.org/jira/browse/MNG-4816. > > Can someone let me know in which version of maven

Maven 3 fails to follow 301 redirects

2019-03-07 Thread Debraj Manna
Hi I can see an issue filed for "Maven 3 fails to follow 301 redirects" https://issues.apache.org/jira/browse/MNG-4816. Can someone let me know in which version of maven 3.x this is fixed as I am observing the issue with Maven 3.5 also? Thanks,

Identify large size dependencies in a fat jar created using maven

2019-02-20 Thread Debraj Manna
I have a fat jar created using maven 3.5. I am trying to reduce the size of fat jar. Can someone let me know how I can determine the size of the larger dependencies? If a dependency A brings in B & C . Then the size of A should be the sum of the size of A, B & C. Is there a way to do this in

How can I prevent SLF4J's infamous “multiple bindings” warning at build time for maven build?

2018-04-11 Thread Debraj Manna
I have seen a similar question being answered in stackoverflow https://stackoverflow.com/questions/25335497/how-can-i-prevent-slf4js-infamous-multiple-bindings-warning-at-build-time Is it possible achieve something like this via maven build also ?

Re: Avoid guava version conflict with hbase by shading

2018-01-21 Thread Debraj Manna
.pr...@gmail.com> wrote: > That's the idea, you cannot otherwise control which classes or which > version of guava are loaded by the classloader at runtime. > > Op 20 jan. 2018 14:55 schreef "Debraj Manna" <subharaj.ma...@gmail.com>: > > Ok. But then I think I h

Re: Avoid guava version conflict with hbase by shading

2018-01-20 Thread Debraj Manna
that > > Op 20 jan. 2018 09:02 schreef "Debraj Manna" <subharaj.ma...@gmail.com>: > > > Mark > > > > hbase and hadoop is using the old guava. Is there a way I can use the > > latest guava in my code and let hadoop and hbase use the old guava. > &g

Re: Avoid guava version conflict with hbase by shading

2018-01-20 Thread Debraj Manna
ading is > unlikely to help. You will need to downgrade to a compatible version of > guava or get the other projects to upgrade. > -M > > Op 20 jan. 2018 07:51 schreef "Debraj Manna" <subharaj.ma...@gmail.com>: > > I have posted more details in stackoverflow &g

Avoid guava version conflict with hbase by shading

2018-01-19 Thread Debraj Manna
I have posted more details in stackoverflow . I could not add all the details here because of size limitation. In a project I am using Guava 23.5 but some of the dependencies (hadoop & hbase) are using

Re: How does mvn dependency:analyze work?

2018-01-18 Thread Debraj Manna
t; for classes referenced in your code.” > > From time to time I run dependency:analyze -DignoreNonCompile=true > -DoutputXML=true > > > On 18 Jan 2018, at 07:31, Debraj Manna <subharaj.ma...@gmail.com> wrote: > > > > Cross-posting from stackoverflow > > <

How does mvn dependency:analyze work?

2018-01-17 Thread Debraj Manna
Cross-posting from stackoverflow Can someone let me know how does mvn dependency:analyze work ? An output of mvn dependency:analyze in one of my project shows [WARNING] Used undeclared dependencies found:[WARNING]

On upgrading Guava to the latest 23.5 getting NoSuchMethodError for Preconditions.checkArgument

2017-12-21 Thread Debraj Manna
HI Cross-posting from stackoverflow if anyone can help me here On upgrading Guava to the latest 23.5-jre from 18.0 I am getting an exception like below Exception in

Execution time of tests in unit test class via maven surefire-report in a single file in summarized format

2017-08-24 Thread Debraj Manna
Just cross posting from stackoverflow Can anyone let me know how can I get the time taken by each of the unit tests in a unit test class in a single file via

Re: surefire-report behavior in multi-module project with DnoTest=true

2017-07-02 Thread Debraj Manna
Hi Any thoughts on this? On Fri, Jun 23, 2017 at 2:40 PM, Debraj Manna <subharaj.ma...@gmail.com> wrote: > Hi > > Crossposting from stackoverflow > <https://stackoverflow.com/questions/44717069/surefire-report-behavior-in-multi-module-project-with-dnotest-true> >

surefire-report behavior in multi-module project with DnoTest=true

2017-06-23 Thread Debraj Manna
Hi Crossposting from stackoverflow :- I have a multimodule maven project A B C D B depends on A and C depends on B. I do not want to execute unit tests on A & D.

MNG-4706 - aether.connector.basic.threads & aether.connector.resumeDownloads

2017-06-18 Thread Debraj Manna
HI Can someone point me to the documentation what does the below two options mean as mentioned in the comment of MNG-4706 -Daether.connector.basic.threads=1 -Daether.connector.resumeDownloads=false

Re: Maven antrun failing in parallel builds but working fine in non-parallel builds

2017-06-14 Thread Debraj Manna
Thanks MG for replying. Can you please explain a bit how does adding classpaths to ant will resolve the failure in case of parallel builds? On 14-Jun-2017 6:38 pm, "Martin Gainty" <mgai...@hotmail.com> wrote: MG>see below ____ From: Debraj

Maven antrun failing in parallel builds but working fine in non-parallel builds

2017-06-13 Thread Debraj Manna
I am having a maven multi module project. A simplified pom.xml (under full-build) looks like below:- http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; xmlns="http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>

maven-jaxb2-plugin: Error in parsing schema location even when xsd and xjb files are in same location

2017-06-12 Thread Debraj Manna
I am having a pom.xml which looks like below:- http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd;> 4.0.0 com.eros

Avoid Unnecessary regeneration in jaxb2-maven-plugin

2017-06-12 Thread Debraj Manna
Hi Is it possible to avoid unnecessary regeneration in jaxb2-maven-plugin? Basically I want to generate the sources only when underlying schema has changed? It seems maven-jaxb2-plugin has an option force-regenerate . Do

Re: Profiling Maven Compilation for a multi-module project

2017-06-09 Thread Debraj Manna
en-buildtime-profiler > > > On 09/06/17 15:02, Debraj Manna wrote: > >> Just cross-posting this from stack overflow >> <https://stackoverflow.com/questions/44458414/profiling-mave >> n-compilation-for-a-multi-module-project> >> :- >> >> I have a multi

Profiling Maven Compilation for a multi-module project

2017-06-09 Thread Debraj Manna
Just cross-posting this from stack overflow :- I have a multi module maven project which is taking a little too much time. Can some one let me know if there is a way it is possible for me to see

Order of maven repositories in settings.xml

2016-10-23 Thread Debraj Manna
I have a settings.xml which looks like below:- http://maven.apache.org/SETTINGS/1.0.0; xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=" http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd;> nexusReleases

How does maven internally manages package dependency?

2016-06-15 Thread Debraj Manna
Can some let me know how does maven internally manages package dependency? Is there any architecture diagram available on the net for the same? I also asked this in Quora but did not get any response their nor I am able to