Community
Participate
Working Groups
I have a (aggregator & parent) module : path /ProtoVirtualFoldersRamdisk, on location D:\Devs\UlisNG\projects\workspace-ulisng-conversion\prototypes\PrototypeVirtualFoldersRamdisk, with artifactid proto-virtualfolders-ramdisk It has 2 sub-modules (on the same structure) : one is : path /ProtoTargetStandard, on location D:\Devs\UlisNG\projects\workspace-ulisng-conversion\prototypes\PrototypeVirtualFoldersRamdisk\TargetStandard, with artifactid target-standard These sub-modules also inherit from the fisrt module. I run the following configuration for the whole multi-module project : name PrototypeVirtualFoldersRamdisk, Base directory D:/Devs/UlisNG/projects/workspace-ulisng-conversion/prototypes/PrototypeVirtualFoldersRamdisk, Goals help:active-profiles compile The launch fails : Apache Maven 3.0.1 (r1038046; 2010-11-23 11:58:32+0100) Java version: 1.6.0_16 Java home: D:\Devs\UlisNG\tools\com\sun\java\jdk\6u16-windows-i586-p\jre Default locale: fr_FR, platform encoding: UTF-8 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" [INFO] Error stacktraces are turned on. [DEBUG] Reading global settings from D:\Devs\UlisNG\tools\org\apache\maven\maven\3.0.1\conf\settings.xml [DEBUG] Reading user settings from D:\Devs\UlisNG\tools\org\apache\maven\maven\3.0.1\conf\settings.xml [DEBUG] Using local repository at D:\Devs\UlisNG\m2repo [INFO] Scanning for projects... [DEBUG] Extension realms for project ulisng.portage.prototypes:proto-virtualfolders-ramdisk:pom:0.0.1-SNAPSHOT: (none) [DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null] [ERROR] The build could not read 1 project -> [Help 1] org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [ERROR] Child module D:\Devs\UlisNG\projects\workspace-ulisng-conversion\prototypes\PrototypeVirtualFoldersRamdisk\target-standard of D:\Devs\UlisNG\projects\workspace-ulisng-conversion\prototypes\PrototypeVirtualFoldersRamdisk\pom.xml does not exist @ [ERROR] Child module D:\Devs\UlisNG\projects\workspace-ulisng-conversion\prototypes\PrototypeVirtualFoldersRamdisk\target-virtualfolder of D:\Devs\UlisNG\projects\workspace-ulisng-conversion\prototypes\PrototypeVirtualFoldersRamdisk\pom.xml does not exist @ at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:325) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:629) at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:578) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:230) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:451) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188) at org.apache.maven.cli.MavenCli.main(MavenCli.java:134) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [ERROR] [ERROR] The project ulisng.portage.prototypes:proto-virtualfolders-ramdisk:0.0.1-SNAPSHOT (D:\Devs\UlisNG\projects\workspace-ulisng-conversion\prototypes\PrototypeVirtualFoldersRamdisk\pom.xml) has 2 errors [ERROR] Child module D:\Devs\UlisNG\projects\workspace-ulisng-conversion\prototypes\PrototypeVirtualFoldersRamdisk\target-standard of D:\Devs\UlisNG\projects\workspace-ulisng-conversion\prototypes\PrototypeVirtualFoldersRamdisk\pom.xml does not exist [ERROR] Child module D:\Devs\UlisNG\projects\workspace-ulisng-conversion\prototypes\PrototypeVirtualFoldersRamdisk\target-virtualfolder of D:\Devs\UlisNG\projects\workspace-ulisng-conversion\prototypes\PrototypeVirtualFoldersRamdisk\pom.xml does not exist [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException It seems to me that the child module name is badly computed (base location + artifactid is used instead of location) : shouldn't it be D:\Devs\UlisNG\projects\workspace-ulisng-conversion\prototypes\PrototypeVirtualFoldersRamdisk\TargetStandard instead of D:\Devs\UlisNG\projects\workspace-ulisng-conversion\prototypes\PrototypeVirtualFoldersRamdisk\target-standard
Does the project build successfully from command line using Maven 3.0.2?
Well I found that I misunderstood that the module names in the <module></module> definitions should be the (sub)directories and not the artifactids. With that there is no issue. Thanks.
Moved to https://github.com/eclipse-m2e/m2e-core/issues/