Issue Details (XML | Word | Printable)

Key: MAVEN_INCREMENTAL_BUILD-14
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Javatar007
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
maven-incremental-build

java.lang.IllegalStateException: basedir ........target\classes does not exist

Created: 04/May/12 09:51 AM   Updated: 04/May/12 09:51 AM
Component/s: None
Affects Version/s: 1.6
Fix Version/s: None

Time Tracking:
Not Specified

Tags: exception src empty missing classes basedir
Participants: Javatar007


 Description  « Hide

Seems to be caused by empty 'project/src' folder.
In our multimodule project there are some submodules for generating from wsdl. These have empty 'src' folder.
(I've replaced the long project path by '(...)' in the log below).


[INFO] Building XConnector
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [incremental-build:incremental-build {execution: default}]
[INFO] Verifying module descriptor ...
[INFO] Verifying parent modules...
[INFO] Verifying resources...
[INFO] Resources directory does not exist : C:(...)\res
[INFO] Verifying sources...
[INFO] No target directory, build is required.
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] basedir C:(...)\target\classes does not exist
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.IllegalStateException: basedir C:(...)\classes does not exist
at org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java:542)
at net.java.mavenincrementalbuild.IncrementalBuildMojo.directoryUpdated(IncrementalBuildMojo.java:259)
at net.java.mavenincrementalbuild.IncrementalBuildMojo.sourcesUpdated(IncrementalBuildMojo.java:306)
at net.java.mavenincrementalbuild.IncrementalBuildMojo.execute(IncrementalBuildMojo.java:135)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)


This exception is not thrown when using version 1.5.



There are no comments yet on this issue.