You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "David Leonard (JIRA)" <ji...@codehaus.org> on 2009/06/20 00:46:15 UTC

[jira] Created: (MWAR-199) Attempt to copy directory fails in m2eclipse

Attempt to copy directory fails in m2eclipse
--------------------------------------------

                 Key: MWAR-199
                 URL: http://jira.codehaus.org/browse/MWAR-199
             Project: Maven 2.x WAR Plugin
          Issue Type: Bug
    Affects Versions: 2.1-beta-1
         Environment: m2eclipse Win32
            Reporter: David Leonard


m2eclipse makes eclipse projects look like artifacts. In this case, it is intercepting the artifact which would normally be a jar and redirect the war plugin to copy files directly from the classes folder.
However, the war plugin fails on this as it tries to copyfile the directory.



While building project:
Group-Id: com.quest
Artifact-Id: bullseye-webapp
Version: 1.0-SNAPSHOT
>From file: C:\w\maven.1245448429000\bullseye-webapp\pom.xml
Reason: Failed to copy file for artifact[com.quest:bullseye-model:jar:1.0-SNAPSHOT:compile]

java.io.FileNotFoundException: C:\w\maven.1245448429000\bullseye-model\target\classes (Access is denied)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at org.codehaus.plexus.util.io.FileInputStreamFacade.getInputStream(FileInputStreamFacade.java:78)
	at org.codehaus.plexus.util.FileUtils.copyStreamToFile(FileUtils.java:1057)
	at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:965)
	at org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFile(AbstractWarPackagingTask.java:293)
	at org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask$1.registered(AbstractWarPackagingTask.java:150)
	at org.apache.maven.plugin.war.util.WebappStructure.registerFile(WebappStructure.java:180)
	at org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFile(AbstractWarPackagingTask.java:145)
	at org.apache.maven.plugin.war.packaging.ArtifactsPackagingTask.performPackaging(ArtifactsPackagingTask.java:100)
	at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.handleArtifacts(WarProjectPackagingTask.java:184)
	at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.performPackaging(WarProjectPackagingTask.java:104)
	at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:462)
	at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:394)
	at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:195)
	at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:157)

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

        

[jira] Commented: (MWAR-199) Attempt to copy directory fails in m2eclipse

Posted by "Eugene Kuleshov (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=181128#action_181128 ] 

Eugene Kuleshov commented on MWAR-199:
--------------------------------------

Seem like a duplicate of MWAR-192

> Attempt to copy directory fails in m2eclipse
> --------------------------------------------
>
>                 Key: MWAR-199
>                 URL: http://jira.codehaus.org/browse/MWAR-199
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1-beta-1
>         Environment: m2eclipse Win32
>            Reporter: David Leonard
>
> m2eclipse makes eclipse projects look like artifacts. In this case, it is intercepting the artifact which would normally be a jar and redirect the war plugin to copy files directly from the classes folder.
> However, the war plugin fails on this as it tries to copyfile the directory.
> While building project:
> Group-Id: com.quest
> Artifact-Id: bullseye-webapp
> Version: 1.0-SNAPSHOT
> From file: C:\w\maven.1245448429000\bullseye-webapp\pom.xml
> Reason: Failed to copy file for artifact[com.quest:bullseye-model:jar:1.0-SNAPSHOT:compile]
> java.io.FileNotFoundException: C:\w\maven.1245448429000\bullseye-model\target\classes (Access is denied)
> 	at java.io.FileInputStream.open(Native Method)
> 	at java.io.FileInputStream.<init>(FileInputStream.java:106)
> 	at org.codehaus.plexus.util.io.FileInputStreamFacade.getInputStream(FileInputStreamFacade.java:78)
> 	at org.codehaus.plexus.util.FileUtils.copyStreamToFile(FileUtils.java:1057)
> 	at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:965)
> 	at org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFile(AbstractWarPackagingTask.java:293)
> 	at org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask$1.registered(AbstractWarPackagingTask.java:150)
> 	at org.apache.maven.plugin.war.util.WebappStructure.registerFile(WebappStructure.java:180)
> 	at org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFile(AbstractWarPackagingTask.java:145)
> 	at org.apache.maven.plugin.war.packaging.ArtifactsPackagingTask.performPackaging(ArtifactsPackagingTask.java:100)
> 	at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.handleArtifacts(WarProjectPackagingTask.java:184)
> 	at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.performPackaging(WarProjectPackagingTask.java:104)
> 	at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:462)
> 	at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:394)
> 	at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:195)
> 	at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:157)

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

        

[jira] Closed: (MWAR-199) Attempt to copy directory fails in m2eclipse

Posted by "David Leonard (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MWAR-199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Leonard closed MWAR-199.
------------------------------

    Resolution: Duplicate

This is indeed a duplicate of MWAR-192

> Attempt to copy directory fails in m2eclipse
> --------------------------------------------
>
>                 Key: MWAR-199
>                 URL: http://jira.codehaus.org/browse/MWAR-199
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1-beta-1
>         Environment: m2eclipse Win32
>            Reporter: David Leonard
>
> m2eclipse makes eclipse projects look like artifacts. In this case, it is intercepting the artifact which would normally be a jar and redirect the war plugin to copy files directly from the classes folder.
> However, the war plugin fails on this as it tries to copyfile the directory.
> While building project:
> Group-Id: com.quest
> Artifact-Id: bullseye-webapp
> Version: 1.0-SNAPSHOT
> From file: C:\w\maven.1245448429000\bullseye-webapp\pom.xml
> Reason: Failed to copy file for artifact[com.quest:bullseye-model:jar:1.0-SNAPSHOT:compile]
> java.io.FileNotFoundException: C:\w\maven.1245448429000\bullseye-model\target\classes (Access is denied)
> 	at java.io.FileInputStream.open(Native Method)
> 	at java.io.FileInputStream.<init>(FileInputStream.java:106)
> 	at org.codehaus.plexus.util.io.FileInputStreamFacade.getInputStream(FileInputStreamFacade.java:78)
> 	at org.codehaus.plexus.util.FileUtils.copyStreamToFile(FileUtils.java:1057)
> 	at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:965)
> 	at org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFile(AbstractWarPackagingTask.java:293)
> 	at org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask$1.registered(AbstractWarPackagingTask.java:150)
> 	at org.apache.maven.plugin.war.util.WebappStructure.registerFile(WebappStructure.java:180)
> 	at org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFile(AbstractWarPackagingTask.java:145)
> 	at org.apache.maven.plugin.war.packaging.ArtifactsPackagingTask.performPackaging(ArtifactsPackagingTask.java:100)
> 	at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.handleArtifacts(WarProjectPackagingTask.java:184)
> 	at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.performPackaging(WarProjectPackagingTask.java:104)
> 	at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:462)
> 	at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:394)
> 	at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:195)
> 	at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:157)

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