This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 249971 - maven.ext.class.path is polluted with duplicated items
Summary: maven.ext.class.path is polluted with duplicated items
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-23 10:49 UTC by markiewb
Modified: 2015-09-19 03:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample project (2.44 KB, application/zip)
2015-09-18 14:08 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2015-01-23 10:49:35 UTC
* Run tests on a package
* the following command is executed

cd C:\seu\xxxx; JAVA_HOME=C:\\XXX\\Java\\jdk8 M2_HOME=C:\\seu\\maven\\apache-maven-3.0.5 cmd /c "\"\"C:\\seu\\maven\\apache-maven-3.0.5\\bin\\mvn.bat\" -Dtest=xxx.xxx.xxx.xxx.xxx.mdi.**.*Test -Dmaven.ext.class.path=C:\\seu\\ide\\NetBeansDev201501190001\\java\\maven-nblib\\netbeans-eventspy.jar;C:\\seu\\ide\\NetBeansDev201501190001\\java\\maven-nblib\\netbeans-eventspy.jar;C:\\seu\\ide\\NetBeansDev201501190001\\java\\maven-nblib\\netbeans-eventspy.jar;C:\\seu\\ide\\NetBeansDev201501190001\\java\\maven-nblib\\netbeans-eventspy.jar;C:\\seu\\ide\\NetBeansDev201501190001\\java\\maven-nblib\\netbeans-eventspy.jar;C:\\seu\\ide\\NetBeansDev201501190001\\java\\maven-nblib\\netbeans-cos.jar;C:\\seu\\ide\\NetBeansDev201501190001\\java\\maven-nblib\\netbeans-cos.jar;C:\\seu\\ide\\NetBeansDev201501190001\\java\\maven-nblib\\netbeans-cos.jar;C:\\seu\\ide\\NetBeansDev201501190001\\java\\maven-nblib\\netbeans-cos.jar;C:\\seu\\ide\\NetBeansDev201501190001\\java\\maven-nblib\\netbeans-cos.jar -Dfile.encoding=utf-8 --batch-mode -B -DskipGwtCompile -Dgwt.draftCompile=true surefire:test\""

EXPECTED: no duplicates of entries in maven.ext.class.path

Product Version: NetBeans IDE Dev (Build 201501190001)
Updates: Updates available
Java: 1.8.0_11; Java HotSpot(TM) 64-Bit Server VM 25.11-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_11-b12
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
Comment 1 Theofanis Oikonomou 2015-09-18 10:13:18 UTC
This seems to be controlled by MavenCommandLineExecutor and CosChecker. re-assigning for evaluation Thank you
Comment 2 Tomas Stupka 2015-09-18 13:43:29 UTC
not able to reproduce with Build 20150918-ca1f8e3e8ad3 and a plain maven project.
also that from looking on the code, it is a mystery to me how this could happen. 

closing for now, but feel free to reopen in case this still occurs with an actual dev build. 

please provide also some information about tou project type, setup, etc. 
a sample project would be great

thanks
Comment 3 markiewb 2015-09-18 14:08:37 UTC
Created attachment 156279 [details]
Sample project

(In reply to Tomas Stupka from comment #2)
> not able to reproduce with Build 20150918-ca1f8e3e8ad3 and a plain maven
> project.
> also that from looking on the code, it is a mystery to me how this could
> happen. 
> 
> closing for now, but feel free to reopen in case this still occurs with an
> actual dev build. 
> 
> please provide also some information about tou project type, setup, etc. 
> a sample project would be great
> 
> thanks

Reopen. Still reproducible. 

Steps:
* open the attached maven project
* open NewClassTest in editor
* right click in the editor and choose "Test file"
* rerun the test several times via the green double-arrow button in the "Test Result" window
-> Duplicated entries in -Dmaven.ext.class.path (at the first in the maven output)

Product Version: NetBeans IDE Dev (Build 201509170002)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
Comment 4 markiewb 2015-09-18 14:09:01 UTC
Reopen. See details at https://netbeans.org/bugzilla/show_bug.cgi?id=249971#c3
Comment 5 Tomas Stupka 2015-09-18 15:03:33 UTC
fixed in jet-main #1a29e10cb9f7
Comment 6 Quality Engineering 2015-09-19 03:04:41 UTC
Integrated into 'main-silver', will be available in build *201509190002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1a29e10cb9f7
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #249971 - maven.ext.class.path is polluted with duplicated items