Miroslav Šulc created NETBEANS-1934:
---------------------------------------

             Summary: Netbeans ignores maven pom.xml -> project -> build -> 
directory when setting up debug classpath
                 Key: NETBEANS-1934
                 URL: https://issues.apache.org/jira/browse/NETBEANS-1934
             Project: NetBeans
          Issue Type: Bug
          Components: debugger - Java
    Affects Versions: Next
         Environment: i'm on linux though for this bug i suppose it is 
irrelevant.
            Reporter: Miroslav Šulc


i have a maven project (lets say project1) which depends on another maven 
project (lets say project2, it is not developed by me). project2 has modified 
build path to 'build' instead of default 'target' (see snippet below).

when i try to debug tests in project1, netbeans does not set up the classpath 
in generated surefire file correctly and points to '.../target/classes' 
directory (which does not exist) instead of '.../build/classes' which is the 
real output of project2 compiled classes. this results in classnotfound 
exception while debugging the tests. i was able to workaround this bug by 
creating symlink in the project2 root directory from 'build' to 'target'.

following is the incorrect line from generated surefire file:

classPathUrl.2=/home/fordfrog/src/fordfrog/trader/ib-fast-trader3.git/tws-api/IBJts/source/JavaClient/target/classes

it should be this instead:

classPathUrl.2=/home/fordfrog/src/fordfrog/trader/ib-fast-trader3.git/tws-api/IBJts/source/JavaClient/build/classes

here is a snippet from the project2's pom.xml:

...
<build>
 <sourceDirectory>.</sourceDirectory>
 <directory>build</directory>
...



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to