History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-25382
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Nikolay Chashnikov
Reporter: Vladimir Grlicky
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

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

Created: 11 Feb 08 15:46   Updated: 23 Jun 08 19:22
Component/s: Maven Integration
Fix Version/s: Diana 8280, Selena 7.0.4

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. GZip Archive bug-IDEA-17110.tar.gz (2 kb)

Environment: Linux/Ubuntu 7.10, Maven 2.0.8
Issue Links:
Relates
 
This issue is related to:
IDEADEV-25383 Modules with no source that are depen... Normal Resolved
IDEADEV-21809 Unnecessary "please recompile" error ... Major Closed

Build: 7,590
Fixed in build: 8,256
Severity: Medium


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order:
Anton Makeev - 12 Feb 08 12:27
Could yout please attach pom files that reproduce the problem?

Vladimir Grlicky - 20 Feb 08 16:24 - edited
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 - 27 Mar 08 17:19
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'.