You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by "Sergey Moiseyev (Commented) (JIRA)" <ji...@apache.org> on 2011/10/27 00:39:32 UTC
[jira] [Commented] (NPANDAY-469) Error copying dependency if local
repository is not default
[ 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 <init>
> INFO: Registered service class org.openrdf.query.parser.serql.SeRQLParserFactory
> 06-Sep-2011 10:18:16 info.aduna.lang.service.ServiceRegistry <init>
> 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