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 173439 - Other Java projects cannot depend on Maven projects
Summary: Other Java projects cannot depend on Maven projects
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-30 23:53 UTC by malfunction84
Modified: 2016-07-07 07:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description malfunction84 2009-09-30 23:53:22 UTC
Steps to Reproduce:
1. Open Project Properties for a Java Class Library Project (or a Java Application or Java Web Application).
2. Select the Libraries section.
3. Select the Compile tab.
4. Click the "Add Project..." button.
5. Navigate to a Maven project and select it.
6. Click the "Add Project JAR Files" button.

Expected result:
The Maven Project's .jar file in [mavenProjectPath]/target will be added as a dependency.

Actual result:
The Add Project dialog closed and nothing happened.

Comments:
Considering a .jar file exists in [mavenProjectPath]/target for Maven projects, it seems like this should be possible. 
When I select a Maven project in the Add Project dialog, it correctly displays the project name on the side, but it does
not find this .jar file.  I would also expect the "Build Projects on Classpath" setting to apply as well, so the Maven
project builds when I build the dependent project.
Comment 1 Milos Kleint 2009-10-02 07:34:35 UTC
not a defect, the ant and maven projects intermixing is not supported. It doesn't work the other way either.
the only thing that could be considered a bug is that the ant projects allow selecting a maven project. reassigning
Comment 2 Martin Balin 2016-07-07 07:15:32 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss