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 228342 - Allow NetBeans Ant Projects to declare Maven project dependencies
Summary: Allow NetBeans Ant Projects to declare Maven project dependencies
Status: REOPENED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-07 05:32 UTC by rptmaestro
Modified: 2017-09-18 08:29 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rptmaestro 2013-04-07 05:32:11 UTC
I have many projects defined with Maven that create jar artifacts that I would like to have accessible to NetBeans Ant projects (for example, a JavaFX project which is a real pain to set up in Maven and currently provides no Maven template).

It would be very useful if a NetBeans Ant project could declare a project dependency on a Maven project. Alternatively, I could define my Maven project jars as Ant Library definitions, but that becomes tedious to maintain.

It's just an idea, and it may turn out to be more complicated than the value it would provide, but it would be really nice if the IDE could provide more cooperation between projects whether they be defined with Maven or Ant.
Comment 1 Milos Kleint 2013-04-08 07:22:06 UTC
there is a semi-hidden way of declaring a library from a maven artifact, browse the Maven Repositories index in Services view, find your artifact and "View details" from popup menu. An editor view opens with one of the toolbar buttons creating a library from the artifact and it's dependencies (i believe)
Comment 2 terje7601 2014-09-19 08:01:44 UTC
(In reply to Milos Kleint from comment #1)
> there is a semi-hidden way of declaring a library from a maven artifact,
> browse the Maven Repositories index in Services view, find your artifact and
> "View details" from popup menu. An editor view opens with one of the toolbar
> buttons creating a library from the artifact and it's dependencies (i
> believe)

It would be great if this functionality would be integrated into the "Ant Library Manager". So additional to "Add JAR/Folder..." and "Add URL...", there would also be an "Add Maven artifact..." button. This would bring up the "Add Dependency" dialog as in Maven projects. And after selecting the desired dependency, NetBeans would execute the functionality you describe to add the artifact to the library.
Comment 3 Martin Balin 2016-07-07 08:37:52 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
Comment 4 terje7601 2016-11-07 10:23:50 UTC
Still relevant.