maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Porter (JIRA)" <j...@codehaus.org>
Subject [jira] Updated: (MNG-2345) mvn -fn install fails when a module could not be found
Date Fri, 15 Jun 2007 15:02:59 GMT

     [ http://jira.codehaus.org/browse/MNG-2345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Brett Porter updated MNG-2345:
------------------------------

    Component/s: Reactor and workspace
                 Command Line

> mvn -fn install fails when a module could not be found
> ------------------------------------------------------
>
>                 Key: MNG-2345
>                 URL: http://jira.codehaus.org/browse/MNG-2345
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Command Line, Reactor and workspace
>            Reporter: Lars Rosenberg
>            Priority: Minor
>             Fix For: 2.2.x
>
>
> mvn -fn install fails when you have a mother project which reference a module in its
modules section and the corresponding directory does not contain a pom.xml. This should not
happen when you have the fail never option turned on.
> G:\si\serviceinfrastructure>mvn clean install | tee build.txt
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
> Project ID: unknown
> Reason: Could not find the model file 'G:\si\serviceinfrastructure\si-adapter-co
> mmon\pom.xml'.
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Could not find the model file
> 'G:\si\serviceinfrastructure\si-adapter-common\pom.xml'.
>         at org.apache.maven.DefaultMaven.getProjects(Lorg/apache/maven/execution
> /MavenExecutionRequest;Lorg/apache/maven/profiles/ProfileManager;)Ljava/util/Lis
> t;(DefaultMaven.java:365)
>         at org.apache.maven.DefaultMaven.doExecute(Lorg/apache/maven/execution/M
> avenExecutionRequest;Lorg/apache/maven/monitor/event/EventDispatcher;)Lorg/apach
> e/maven/execution/ReactorManager;(DefaultMaven.java:278)
>         at org.apache.maven.DefaultMaven.execute(Lorg/apache/maven/execution/Mav
> enExecutionRequest;)V(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main([Ljava/lang/String;Lorg/codehaus/c
> lassworlds/ClassWorld;)I(MavenCli.java:256)
>         at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava/lang/Object;ILjava/
> lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Unknown Source)
>         at jrockit.reflect.NativeMethodInvoker.invoke(Ljava/lang/Object;[Ljava/l
> ang/Object;)Ljava/lang/Object;(Unknown Source)
>         at java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;
> I)Ljava/lang/Object;(Unknown Source)
>         at org.codehaus.classworlds.Launcher.launchEnhanced([Ljava/lang/String;)
> V(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch([Ljava/lang/String;)V(Launch
> er.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode([Ljava/lang/String
> ;)I(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main([Ljava/lang/String;)V(Launcher
> .java:375)
> Caused by: org.apache.maven.project.ProjectBuildingException: Could not find the
>  model file 'G:\si\serviceinfrastructure\si-adapter-common\pom.xml'.
>         at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Ljava/l
> ang/String;Ljava/io/File;Z)Lorg/apache/maven/model/Model;(DefaultMavenProjectBui
> lder.java:1274)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
> leInternal(Ljava/io/File;Lorg/apache/maven/artifact/repository/ArtifactRepositor
> y;Lorg/apache/maven/profiles/ProfileManager;Z)Lorg/apache/maven/project/MavenPro
> ject;(DefaultMavenProjectBuilder.java:414)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.build(Ljava/io/Fi
> le;Lorg/apache/maven/artifact/repository/ArtifactRepository;Lorg/apache/maven/pr
> ofiles/ProfileManager;)Lorg/apache/maven/project/MavenProject;(DefaultMavenProje
> ctBuilder.java:192)
>         at org.apache.maven.DefaultMaven.getProject(Ljava/io/File;Lorg/apache/ma
> ven/artifact/repository/ArtifactRepository;Lorg/apache/maven/settings/Settings;L
> org/apache/maven/profiles/ProfileManager;)Lorg/apache/maven/project/MavenProject
> ;(DefaultMaven.java:515)
>         at org.apache.maven.DefaultMaven.collectProjects(Ljava/util/List;Lorg/ap
> ache/maven/artifact/repository/ArtifactRepository;ZLorg/apache/maven/settings/Se
> ttings;Lorg/apache/maven/profiles/ProfileManager;Z)Ljava/util/List;(DefaultMaven
> .java:447)
>         at org.apache.maven.DefaultMaven.collectProjects(Ljava/util/List;Lorg/ap
> ache/maven/artifact/repository/ArtifactRepository;ZLorg/apache/maven/settings/Se
> ttings;Lorg/apache/maven/profiles/ProfileManager;Z)Ljava/util/List;(DefaultMaven
> .java:491)
>         at org.apache.maven.DefaultMaven.getProjects(Lorg/apache/maven/execution
> /MavenExecutionRequest;Lorg/apache/maven/profiles/ProfileManager;)Ljava/util/Lis
> t;(DefaultMaven.java:351)
>         ... 10 more
> Caused by: java.io.FileNotFoundException: G:\si\serviceinfrastructure\si-adapter
> -common\pom.xml: The system cannot find the file specified
>         at jrockit.io.FileNativeIO.open0(Ljava/lang/String;I)I(Unknown Source)
>         at jrockit.io.FileNativeIO.open(Ljava/lang/String;I)Ljava/io/FileDescrip
> tor;(Unknown Source)
>         at java.io.FileInputStream.<init>(Ljava/lang/String;)V(Unknown Source)
>         at java.io.FileInputStream.<init>(Ljava/io/File;)V(Unknown Source)
>         at java.io.FileReader.<init>(Ljava/io/File;)V(FileReader.java:55)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Ljava/l
> ang/String;Ljava/io/File;Z)Lorg/apache/maven/model/Model;(DefaultMavenProjectBui
> lder.java:1269)
>         ... 16 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Jun 06 17:51:40 CEST 2006
> [INFO] Final Memory: 10M/64M
> [INFO] ------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message