Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Anton Makeev 
Subsystem
Maven Integration 
Affected versions
Fixed in
Fixed in build
Next build 
Build
7361
Fixed in build
8117
Severity
0
  • Submitted by   Cedric CHAMPEAU
    2 years ago (18 Oct 2007 18:46)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:54)
  • Jira: IDEA-41632
    (history, comments)

IDEA-41632

Tests sources detected as content root instead of test sources

0
Added by <no user>
15 Sep 2009
Capture.png   (157 KB)

When generating a project from a pom file, test sources are identified as a new content root instead of being marked as test sources. Did not occur in idea 7 M2, but happens with final.


Environment: Linux, Ubuntu 7.04, JDK 6u3

Issue was resolved
Comments (3)
 
History (1)
 
Links
 
Anton Makeev
  Anton Makeev
19 Oct 2007 14:22
(2 years ago)
#permalink
On the screen you sent the main content root is something like '/home/cerdic/projects.....'
and the tests are located in is '/opt/cerdic....'
On account of this tests was attached as secondary content root.

If you want them to be under main content root you must place them under it
Cedric CHAMPEAU
  Cedric CHAMPEAU
19 Oct 2007 14:32
(2 years ago)
#permalink
I guess you misunderstood the problem(side effect of symlink) : I created the project from a POM file, and those pom files never ever specify any absolute path. My POM was analyzed by IJ and so created the modules by itself. My project looks like this :

pom.xml : project
fulty-core/pom.xml : module 1
fulty-core/src/main : main sources
fulty-core/src/tests : test sources
fulty-core/src/tests/java : detected as new content root instead of test sources

fulty-web/pom.xml : module 2
fulty-web/src/main : main sources
fulty-web/src/tests : test sources
fulty-web/src/tests/java : detected as new content root instead of test sources

The fact that you read /opt/CEDRIC in the content root is IMHO a side effect that I symlinked my /home/cedric/PROJECTS directory to /opt/CEDRIC/PROJECTS. In insist that this problem did not occur in M2, so there must be something wrong. With 7 finale, I am forced to remove the content root then set the test sources for each module each time I restart IJ.
Anton Makeev
  Anton Makeev
19 Oct 2007 14:42
(2 years ago)
#permalink
Ok, that certainly the bug with symbolic links. Thanks for clarification