NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Andy Turner Posted via mailing list.
|
Posted: Tue Sep 22, 2009 9:18 am Post subject: Adding maven project to another project in 6.7.1 |
|
|
Hi nbusers,
I have a maven project that opens and works fine and another project. I was hoping to add the maven project to the other project via the properties:libraries:Add Project route. However, when I select the project and use Add Project JAR Files nothing happens.
In the meantime I have copied all the required jars to effectively do the same.
Please can anyone give me good advice?
Best wishes,
Andy
http://www.geog.leeds.ac.uk/people/a.turner/ |
|
| Back to top |
|
 |
mkleint Posted via mailing list.
|
Posted: Tue Sep 22, 2009 11:32 am Post subject: Adding maven project to another project in 6.7.1 |
|
|
you cannot effectively add maven projects as libraries/dependencies of
ant projects. The only thing you can do is adding the maven project's
binary to the ant project.
adding it as a project would mean supporting execution of maven builds
from ant tasks etc... which is not done or planned.
Milos
Andy Turner wrote:
| Quote: | Hi nbusers,
I have a maven project that opens and works fine and another project. I was hoping to add the maven project to the other project via the properties:libraries:Add Project route. However, when I select the project and use Add Project JAR Files nothing happens.
In the meantime I have copied all the required jars to effectively do the same.
Please can anyone give me good advice?
Best wishes,
Andy
http://www.geog.leeds.ac.uk/people/a.turner/
|
|
|
| Back to top |
|
 |
Johannes Schneider Posted via mailing list.
|
Posted: Tue Sep 22, 2009 12:41 pm Post subject: Adding maven project to another project in 6.7.1 |
|
|
I have the same problem here:
A JavaFX project that depends on a maven project. At the moment only Ant
projects support JavaFX. So I have created a "shadow" project and linked
the JavaFX sources to that. But now I can't find a way to add the
libraries...
Maven: Library (supported by NB)
Maven: JavaFX client (*not* supported by NB)
Ant: Shadow FX with linked sources dir from Maven: JavaFX
Any hints how to work around? Since all jars exist within my local
repository there should be an easy way to solve that. Maybe any
copy/pasting from project files?
Thanks,
Johannes
mkleint wrote:
| Quote: | you cannot effectively add maven projects as libraries/dependencies of
ant projects. The only thing you can do is adding the maven project's
binary to the ant project.
adding it as a project would mean supporting execution of maven builds
from ant tasks etc... which is not done or planned.
Milos
Andy Turner wrote:
| Quote: | Hi nbusers,
I have a maven project that opens and works fine and another project.
I was hoping to add the maven project to the other project via the
properties:libraries:Add Project route. However, when I select the
project and use Add Project JAR Files nothing happens.
In the meantime I have copied all the required jars to effectively do
the same.
Please can anyone give me good advice?
Best wishes,
Andy
http://www.geog.leeds.ac.uk/people/a.turner/
|
|
|
|
| Back to top |
|
 |
mkleint Posted via mailing list.
|
Posted: Tue Sep 22, 2009 12:52 pm Post subject: Adding maven project to another project in 6.7.1 |
|
|
depends on how you build your projects. you can depend on the jar in the
local repository cache, you can add targets to retrieve the bits from
remote repo, or you can plainly copy the maven jar to a "library" and
use that one (and eventually push to the version control system)
not having JavaFX supported for maven projects is separate issue and I
suggest you file it as such. There's 2 level of support. The build tool
level (are there any javafx maven plugins?) and the IDE level. The IDE
shall not care IMHO what is the underlying build system.
Milos
Johannes Schneider wrote:
| Quote: | I have the same problem here:
A JavaFX project that depends on a maven project. At the moment only Ant
projects support JavaFX. So I have created a "shadow" project and linked
the JavaFX sources to that. But now I can't find a way to add the
libraries...
Maven: Library (supported by NB)
Maven: JavaFX client (*not* supported by NB)
Ant: Shadow FX with linked sources dir from Maven: JavaFX
Any hints how to work around? Since all jars exist within my local
repository there should be an easy way to solve that. Maybe any
copy/pasting from project files?
Thanks,
Johannes
mkleint wrote:
| Quote: | you cannot effectively add maven projects as libraries/dependencies of
ant projects. The only thing you can do is adding the maven project's
binary to the ant project.
adding it as a project would mean supporting execution of maven builds
from ant tasks etc... which is not done or planned.
Milos
Andy Turner wrote:
| Quote: | Hi nbusers,
I have a maven project that opens and works fine and another project.
I was hoping to add the maven project to the other project via the
properties:libraries:Add Project route. However, when I select the
project and use Add Project JAR Files nothing happens.
In the meantime I have copied all the required jars to effectively do
the same.
Please can anyone give me good advice?
Best wishes,
Andy
http://www.geog.leeds.ac.uk/people/a.turner/
|
|
|
|
|
| Back to top |
|
 |
Johannes Schneider Posted via mailing list.
|
Posted: Sun Sep 27, 2009 6:27 pm Post subject: Adding maven project to another project in 6.7.1 |
|
|
Maven supports JavaFX. It is not perfect yet, but the necessary stuff
works as expected.
Adding every single jar from my local repository to the netbeans project
seems not to be the best way.
And yes, Netbeans JavaFX support should not care about the underlying
build system .But it does....
Sincerly,
Johannes
mkleint wrote:
| Quote: | depends on how you build your projects. you can depend on the jar in the
local repository cache, you can add targets to retrieve the bits from
remote repo, or you can plainly copy the maven jar to a "library" and
use that one (and eventually push to the version control system)
not having JavaFX supported for maven projects is separate issue and I
suggest you file it as such. There's 2 level of support. The build tool
level (are there any javafx maven plugins?) and the IDE level. The IDE
shall not care IMHO what is the underlying build system.
Milos
Johannes Schneider wrote:
| Quote: | I have the same problem here:
A JavaFX project that depends on a maven project. At the moment only Ant
projects support JavaFX. So I have created a "shadow" project and linked
the JavaFX sources to that. But now I can't find a way to add the
libraries...
Maven: Library (supported by NB)
Maven: JavaFX client (*not* supported by NB)
Ant: Shadow FX with linked sources dir from Maven: JavaFX
Any hints how to work around? Since all jars exist within my local
repository there should be an easy way to solve that. Maybe any
copy/pasting from project files?
Thanks,
Johannes
mkleint wrote:
| Quote: | you cannot effectively add maven projects as libraries/dependencies of
ant projects. The only thing you can do is adding the maven project's
binary to the ant project.
adding it as a project would mean supporting execution of maven builds
from ant tasks etc... which is not done or planned.
Milos
Andy Turner wrote:
| Quote: | Hi nbusers,
I have a maven project that opens and works fine and another project.
I was hoping to add the maven project to the other project via the
properties:libraries:Add Project route. However, when I select the
project and use Add Project JAR Files nothing happens.
In the meantime I have copied all the required jars to effectively do
the same.
Please can anyone give me good advice?
Best wishes,
Andy
http://www.geog.leeds.ac.uk/people/a.turner/
|
|
|
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|