From npanday-commits-return-1335-apmail-incubator-npanday-commits-archive=incubator.apache.org@incubator.apache.org Thu Oct 27 00:41:53 2011 Return-Path: X-Original-To: apmail-incubator-npanday-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-npanday-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 961C97B8F for ; Thu, 27 Oct 2011 00:41:53 +0000 (UTC) Received: (qmail 385 invoked by uid 500); 27 Oct 2011 00:41:53 -0000 Delivered-To: apmail-incubator-npanday-commits-archive@incubator.apache.org Received: (qmail 358 invoked by uid 500); 27 Oct 2011 00:41:53 -0000 Mailing-List: contact npanday-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: npanday-dev@incubator.apache.org Delivered-To: mailing list npanday-commits@incubator.apache.org Received: (qmail 347 invoked by uid 99); 27 Oct 2011 00:41:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Oct 2011 00:41:53 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Oct 2011 00:41:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A634231DFE6 for ; Thu, 27 Oct 2011 00:39:32 +0000 (UTC) Date: Thu, 27 Oct 2011 00:39:32 +0000 (UTC) From: "Sergey Moiseyev (Commented) (JIRA)" To: npanday-commits@incubator.apache.org Message-ID: <1288669205.21971.1319675972682.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1975721047.20221.1315311491191.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (NPANDAY-469) Error copying dependency if local repository is not default MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/NPANDAY-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13136647#comment-13136647 ] Sergey Moiseyev commented on NPANDAY-469: ----------------------------------------- It happens to me too. SVN Rev: 118955 I could see the problem in ProjectDaoImpl line 1334, method createArtifactFrom {code:java} //using PathUtil File artifactFile = null; if (ArtifactTypeHelper.isDotnetAnyGac( artifactType )) { if (!ArtifactTypeHelper.isDotnet4Gac(artifactType)) { artifactFile = PathUtil.getGlobalAssemblyCacheFileFor( assembly, new File("C:\\WINDOWS\\assembly\\") ); } else { artifactFile = PathUtil.getGACFile4Artifact(assembly); } } else { artifactFile = PathUtil.getUserAssemblyCacheFileFor( assembly, new File( System.getProperty( "user.home" ), File.separator + ".m2" + File.separator + "repository") ); } {code} > Error copying dependency if local repository is not default > ----------------------------------------------------------- > > Key: NPANDAY-469 > URL: https://issues.apache.org/jira/browse/NPANDAY-469 > Project: NPanday > Issue Type: Bug > Affects Versions: 1.4-incubating > Reporter: Marcus Burton > Fix For: 1.4.1-incubating > > > When trying to build a WPF library I get "NPANDAY-190-005: An error occurred while retrieving projects." during mvn install. > It looks like a hard coded reference to the local repo in RepositoryConverterForArtifactMojo.java (Line 72) > localRepository = new File( System.getProperty( "user.home" ), ".m2/repository" ); > https://svn.apache.org/repos/asf/incubator/npanday/trunk/plugins/maven-repository-plugin/src/main/java/npanday/plugin/repository/RepositoryConverterForArtifactMojo.java > Partial debug log > [DEBUG] Configuring mojo 'org.apache.npanday.plugins:maven-repository-plugin:1.4.0-incubating:convert-artifact' --> > [DEBUG] (f) localRepository = C:\Working\dev\m2_repo > [DEBUG] (f) project = MavenProject: asdf:1.0-SNAPSHOT @ C:\Working\dev\asdf\pom.xml > [DEBUG] -- end configuration -- > [INFO] [repository:convert-artifact {execution: default-convert-artifact}] > 06-Sep-2011 10:18:16 info.aduna.lang.service.ServiceRegistry > INFO: Registered service class org.openrdf.query.parser.serql.SeRQLParserFactory > 06-Sep-2011 10:18:16 info.aduna.lang.service.ServiceRegistry > INFO: Registered service class org.openrdf.query.parser.sparql.SPARQLParserFactory > 06-Sep-2011 10:18:16 npanday.PathUtil getDotNetArtifact > WARNING: > NPANDAY-1005-0001: Error copying dependency asdf:dotnet-library:1.0-SNAPSHOT:compile File H:\...\.m2\repository\asdf\1.0-SNAPSHOT\asdf-SNAPSHOT.dll does not exist > [INFO] ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] ------------------------------------------------------------------------ > [INFO] NPANDAY-190-005: An error occurred while retrieving projects. > [INFO] ------------------------------------------------------------------------ > [DEBUG] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: NPANDAY-190-005: An error occurred while retrieving projects. > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) > 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.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: NPANDAY-190-005: An error occurred while retrieving projects. > at npanday.plugin.repository.RepositoryConverterForArtifactMojo.execute(RepositoryConverterForArtifactMojo.java:100) > at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) > ... 17 more -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira