From nmaven-issues-return-176-apmail-incubator-nmaven-issues-archive=incubator.apache.org@incubator.apache.org Mon Jul 28 07:57:26 2008 Return-Path: Delivered-To: apmail-incubator-nmaven-issues-archive@locus.apache.org Received: (qmail 45725 invoked from network); 28 Jul 2008 07:57:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jul 2008 07:57:26 -0000 Received: (qmail 20663 invoked by uid 500); 28 Jul 2008 07:57:26 -0000 Delivered-To: apmail-incubator-nmaven-issues-archive@incubator.apache.org Received: (qmail 20653 invoked by uid 500); 28 Jul 2008 07:57:26 -0000 Mailing-List: contact nmaven-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: nmaven-issues@incubator.apache.org Delivered-To: mailing list nmaven-issues@incubator.apache.org Received: (qmail 20642 invoked by uid 99); 28 Jul 2008 07:57:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jul 2008 00:57:26 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jul 2008 07:56:31 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 4543614A8047 for ; Mon, 28 Jul 2008 02:56:27 -0500 (CDT) Message-ID: <17003709.1217231787280.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Mon, 28 Jul 2008 02:56:27 -0500 (CDT) From: "Brett Porter (JIRA)" To: nmaven-issues@incubator.apache.org Subject: [jira] Closed: (NMAVEN-85) Install plugin fails when parent project is not in parent directory MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/NMAVEN-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brett Porter closed NMAVEN-85. ------------------------------ Assignee: Brett Porter Resolution: Duplicate already fixed elsewhere > Install plugin fails when parent project is not in parent directory > -------------------------------------------------------------------- > > Key: NMAVEN-85 > URL: http://jira.codehaus.org/browse/NMAVEN-85 > Project: NMaven > Issue Type: Bug > Affects Versions: 0.14 (Unreleased) > Environment: NMaven head (revision 570776). > Maven 2.0.6 > Windows Vista. > Microsoft Visual Studio 2005 version 8.0.50727.867 > Reporter: Peter Nilsson > Assignee: Brett Porter > Fix For: 0.14 (Unreleased) > > > I have a fairly big project built with Maven and the parent of a Maven project is not always located in the parent directory. However this seems to cause problems when installing libraries with NMaven. > To try it out created two small projects, foo and bar, in sibling directories. > The parent project is foo with the following pom: > > > 4.0.0 > nmaventest > foo > pom > 1.0.0.0 > > > > org.apache.maven.dotnet.plugins > maven-compile-plugin > true > > > > > I install it into local repo with "mvn install". > The child project, bar, has this pom: > > > 4.0.0 > > nmaventest > foo > 1.0.0.0 > > bar > library > 1.0.0.0 > > The bar project contains a single C# file in src/main/csharp. > Building project bar with "mvn package" works fine and creates bar.dll. > However, installing the dll with "mvn install" cause the following error: > [INFO] NMAVEN-1001-000: Failed to install artifacts > Embedded error: NMAVEN-001-014: Unable to store model: Message = C:\temp\nmaventest\bar\..\pom.xml (The system cannot find the file specified) > It seems like the install plugin tries to install the parent pom as well which of course fails as it is not always available (except in local repo). > The end of "mvn install -X": > [DEBUG] Configuring mojo 'org.apache.maven.dotnet.plugins:maven-install-plugin:0.14-SNAPSHOT:install' --> > [DEBUG] (f) isGacInstall = false > [DEBUG] (f) localRepository = C:\Users\peterni\.m2\repository > [DEBUG] (f) pomFile = C:\temp\nmaventest\bar\pom.xml > [DEBUG] (f) profile = GACUTIL > [DEBUG] (f) project = org.apache.maven.project.MavenProject@ee9a3606 > [DEBUG] -- end configuration -- > [INFO] [install:install] > 2007-aug-29 19:39:53 org.apache.maven.dotnet.registry.ConnectionsRepository lazyLoad > INFO: NMAVEN-080-001: Adding data access object: Class Name = org.apache.maven.dotnet.dao.impl.ProjectDaoImpl > 2007-aug-29 19:39:53 org.apache.maven.dotnet.registry.ConnectionsRepository lazyLoad > INFO: NMAVEN-080-004: Connection Start Up: Time = 67 > [INFO] NMAVEN-001-007: Installing file into repository: File = C:\temp\nmaventest\bar\target\bar.dll > [INFO] ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] ------------------------------------------------------------------------ > [INFO] NMAVEN-1001-000: Failed to install artifacts > Embedded error: NMAVEN-001-014: Unable to store model: Message = C:\temp\nmaventest\bar\..\pom.xml (The system cannot find the file specified) > [INFO] ------------------------------------------------------------------------ > [DEBUG] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: NMAVEN-1001-000: Failed to install artifacts > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) > 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:585) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.apache.maven.plugin.MojoExecutionException: NMAVEN-1001-000: Failed to install artifacts > at org.apache.maven.dotnet.plugin.install.InstallerMojo.execute(InstallerMojo.java:177) > at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) > ... 16 more > Caused by: org.apache.maven.artifact.installer.ArtifactInstallationException: NMAVEN-001-014: Unable to store model: Message = C:\temp\nmaventest\bar\..\pom.xml > (The system cannot find the file specified) > at org.apache.maven.dotnet.artifact.impl.ArtifactInstallerImpl.installArtifactWithPom(ArtifactInstallerImpl.java:394) > at org.apache.maven.dotnet.plugin.install.InstallerMojo.execute(InstallerMojo.java:173) > ... 18 more > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 18 seconds > [INFO] Finished at: Wed Aug 29 19:39:53 CEST 2007 > [INFO] Final Memory: 10M/21M > [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