NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Adding maven project to another project in 6.7.1

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Andy Turner
Posted via mailing list.





PostPosted: Tue Sep 22, 2009 9:18 am    Post subject: Adding maven project to another project in 6.7.1 Reply with 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.





PostPosted: Tue Sep 22, 2009 11:32 am    Post subject: Adding maven project to another project in 6.7.1 Reply with 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.





PostPosted: Tue Sep 22, 2009 12:41 pm    Post subject: Adding maven project to another project in 6.7.1 Reply with 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
mkleint
Posted via mailing list.





PostPosted: Tue Sep 22, 2009 12:52 pm    Post subject: Adding maven project to another project in 6.7.1 Reply with 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
Johannes Schneider
Posted via mailing list.





PostPosted: Sun Sep 27, 2009 6:27 pm    Post subject: Adding maven project to another project in 6.7.1 Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo