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 268835 - mavenized platform testing classpath issue with a wrapped library that is part of the project
Summary: mavenized platform testing classpath issue with a wrapped library that is par...
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: Dev
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords: PATCH_AVAILABLE
Depends on:
Blocks:
 
Reported: 2016-11-04 15:43 UTC by skygo
Modified: 2017-01-27 16:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
toy example. (16.32 KB, application/zip)
2016-11-04 15:43 UTC, skygo
Details
fallback for classpathscanning (1.46 KB, patch)
2016-11-04 15:47 UTC, skygo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description skygo 2016-11-04 15:43:25 UTC
Created attachment 162778 [details]
toy example.

Hi,
 I have a projet where some maven artefact are generated as <type>jar</type> and later in the build wrapped in a <type>nbm</type>. 
  
 NbModuleSuite fail to find the artifact.

 I attach a simplified test case. Library artifact is wrapped by wrapped-sample module.

 If I do a clean install on the parent the artifact library is not found as it is not scanned in the maven2 repo but in the project folder. Test failure with no match for the artifact

 If I do a clean install on the wrapped-app test are run normaly.
Comment 1 skygo 2016-11-04 15:47:24 UTC
Created attachment 162779 [details]
fallback for classpathscanning

This is an illustration of a possible fallback to fix my particular use case. 
Not sure where the issue should be fixed.