Le 09/03/2011 15:45, Ron Wheeler wrote :
It is always a good idea to describe the problem that you are trying to solve before asking a detailed question.

I'm trying to make JavaFX, Maven and Netbeans interact nicely in a multi-modules project (i.e. project is built using Maven but code completion must work fine in Netbeans).

The project structure is:
myproject
   + pom.xml          (root POM)
   + core                 (pure Java module)
       + pom.xml
   + fxclient            (Java/JavaFX module; depends on: core)
        + pom.xml

As discussed there [1], the main issue is that Netbeans can either recognize the project as a Maven one or a JavaFX one but not both. In one case, you lose the JavaFXScript syntax helper from Netbeans JavaFX module, and on the other case you lose Maven dependency resolution.

One way to solve this issue is to update the project.properties with the list of JARs built from the POM using 'maven-ant-tasks' [2].

However, this work-around does not work when the JavaFX project is a module within a multi-modules project (since the <artifact:dependencies> Ant task is targetting the pom of the JavaFX module, not the root pom).

So I was trying to find another way of having the project.properties updated automatically from Maven.

Has someone encountered the same problem ?

[1] http://groups.google.com/group/javaposse/browse_thread/thread/f862b782de787bfd
[2] http://www.intermedia.uio.no/pages/viewpage.action?pageId=43516820

Le 09/03/2011 15:45, Ron Wheeler wrote :
That sounds like a bad idea.
The next person to work on the project is going to be unhappy.

Why do you want to do this?

It is always a good idea to describe the problem that you are trying to solve before asking a detailed question.

What are you building that is different from everything else.

Ron

On 09/03/2011 8:42 AM, Benoît DEL BASSO wrote:
Hello,

I'm trying to update a properties file using classpath information from a POM file.

For example my POM defines a dependency:
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.4</version>
</dependency>

I would like to update the "private.properties" file (Netbeans) so that it has: maven.dependency.classpath=/home/bdelbass/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar

Does somebody has an idea on how to do that?



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




--
Benoît Del Basso
benoit.delba...@helmet.fr
Tél: 01 75 43 43 42


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to