Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Nikolay Chashnikov 
Subsystem
Maven Integration 
Affected versions
Fixed in
Fixed in build
Next build 
Build
7590
Fixed in build
8256
Severity
0
  • Submitted by   Vladimir Grlicky
    23 months ago (11 Feb 2008 15:46)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:57)
  • Jira: IDEA-42825
    (history, comments)

IDEA-42825

Compiling a maven module without 'src' directory fails (because of missing 'target/classes' directory)

When IDEA tries to compile Maven module without 'src' directory (a module with a parent module and 'pom' packaging, used for specifying dependencies only), compilation ends with errors. This happens after I try to run a test method using TestNG.

Error message (in Messages - Make panel) is -> Error: Directory '<module-directory>/target/classes' not found. Please recompile module '<module-name>'.

Maven passes compile phase of this module without any problem.


When I manually create target/classes directory, the compilation passes without any problems.

Environment: Linux/Ubuntu 7.10, Maven 2.0.8

Issue was resolved
Comments (3)
 
History (1)
 
Links
 
Anton Makeev
  Anton Makeev
12 Feb 2008 12:27
(23 months ago)
#permalink
Could yout please attach pom files that reproduce the problem?
Vladimir Grlicky
  Vladimir Grlicky
20 Feb 2008 16:24
(23 months ago)
#permalink
Short clarification of 'bug-IDEA-17110.tar.gz' contents:

- example-module-dependencies (packaging = pom) - all dependencies needed by 'example-module-webapp'
- example-module-library (packaging = jar) - user-defined library
- example-module-webapp (packaging = war) - web application that depends on 'example-module-dependencies' only
Irina Petrovskaya
  Irina Petrovskaya
27 Mar 2008 17:19
(22 months ago)
#permalink
b 8254:
if you run project Make and then run tests, they pass normally;
if you clean the project and then run the tests from example-module-webapp, it runs normally.
However, if you run the test from example-module-library (this module doesn't depend on other modules) after cleaning, you get the error message:

Error:Directory 'C:\Documents and Settings\Irina.Petrovskaya\IdeaProjects\MavenProjects\scr25382\example-module-webapp\target\classes' not found. Please recompile module 'example-module-webapp'.