maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Francisco Tena (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MECLIPSE-529) File not found - target/classes access denied
Date Tue, 03 Mar 2009 15:37:13 GMT
File not found - target/classes access denied
---------------------------------------------

                 Key: MECLIPSE-529
                 URL: http://jira.codehaus.org/browse/MECLIPSE-529
             Project: Maven 2.x Eclipse Plugin
          Issue Type: Bug
          Components: M2Eclipse support
         Environment: Eclipse 3.4.1, Maven Integration for Eclipse 0.9.7
            Reporter: Francisco Tena


When running "Maven install" on a project which depends on another which depends on another
one it looks like maven plugin is locking the "target/classes" folder into the dependant project,
it works perfectly with the previous (0.9.6) version of m2 plugin. Probably it is happening
with all nested projects because the ones that aren't nested are working great.

If you need more information about this bug just tell me. I've been searching all over Internet
and I am not the only one who is suffering this bug but it seems they haven't realized yet
that it is a matter of your last version only.

The error the plugin sends:
Embedded error: {projectPath}\target\classes (Access denied)



And here it goes the trace running maven install with -e option:
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to copy file for artifact[org.gobiernodecanarias.ceh.controlAcceso:controlAcceso-core:jar:1.0-SNAPSHOT:compile]
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
	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: Failed to copy file for artifact[controlAcceso:controlAcceso-core:jar:1.0-SNAPSHOT:compile]
	at org.apache.maven.plugin.war.packaging.ArtifactsPackagingTask.performPackaging(ArtifactsPackagingTask.java:99)
	at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.handleArtifacts(WarProjectPackagingTask.java:151)
	at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.performPackaging(WarProjectPackagingTask.java:72)
	at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:364)
	at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:317)
	at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:166)
	at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:130)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
	... 16 more
Caused by: java.io.FileNotFoundException: C:\Java\proyectos\controlAcceso\controlAcceso-core\target\classes
(Acceso denegado)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:929)
	at org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFile(AbstractWarPackagingTask.java:304)
	at org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask$1.alreadyRegistered(AbstractWarPackagingTask.java:151)
	at org.apache.maven.plugin.war.util.WebappStructure.registerFile(WebappStructure.java:118)
	at org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFile(AbstractWarPackagingTask.java:140)
	at org.apache.maven.plugin.war.packaging.ArtifactsPackagingTask.performPackaging(ArtifactsPackagingTask.java:76)
	... 24 more



-- 
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