Hi,

Did you find a solution for this?

I'm having the same problem:
 Error deploying artifact:
C:\projects\Portal2\code\workflow\web\target\classes (Access is denied)

The point is that it only fails when adding a classifier to the war.

mvn install OTOH works fine

(I also get the : altDeploymentRepository = null )


Regards
Ivan



John Coleman-6 wrote:
> 
> It's strange because this is a mapped drive over a local disk, and the
> folder exists and contains classes. But this looks somewhat like a
> network permissions problem?
> 
> Other deployments from this drive work fine.
> 
> John
> 
> -----Original Message-----
> From: Wayne Fay [mailto:[EMAIL PROTECTED] 
> Sent: 21 August 2007 16:53
> To: Maven Users List
> Subject: Re: deploy goal fails
> 
> Caused by: java.io.FileNotFoundException:
> Z:\jcoleman\projects\eTraderII\trunk\target\classes (Access is denied)
>        at java.io.FileInputStream.open(Native Method)
> 
> That's your root problem. I can't tell you why its happening or what
> it means, but that's the reason your deploy is failing.
> 
> Wayne
> 
> On 8/21/07, John Coleman <[EMAIL PROTECTED]>
> wrote:
>> I have used a classifier on the war plugin, and it looks like this
>> spoils the deploy, but the error message doesn't seem related.
>>
>>
>>
>> Does anyone understand this error pls?
>>
>>
>>
>> TIA
>>
>> John
>>
>>
>>
>>
>>
>> [deploy:deploy]
>>
>> altDeploymentRepository = null
>>
>> [INFO]Retrieving previous build number from repo
>>
>> [DEBUG]repository metadata for: 'snapshot
>> com.eurobase:eTraderII:1.2-SNAPSHOT' could not be found on repository:
>> repo
>>
>> [INFO]Error for project: eTraderII Project (during deploy)
>>
>>
> [INFO]------------------------------------------------------------------
>> ------
>>
>> [INFO]Error deploying artifact:
>> Z:\jcoleman\projects\eTraderII\trunk\target\classes (Access is denied)
>>
>>
> [INFO]------------------------------------------------------------------
>> ------
>>
>> [DEBUG]Trace
>>
>> org.apache.maven.lifecycle.LifecycleExecutionException: Error
> deploying
>> artifact: Z:\jcoleman\projects\eTraderII\trunk\target\classes (Access
> is
>> denied)
>>
>>
>>
>>         at
>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
>> LifecycleExecutor.java:635)
>>
>>         at
>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
>> ycle(DefaultLifecycleExecutor.java:551)
>>
>>         at
>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
>> ifecycleExecutor.java:530)
>>
>>         at
>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
>> Failures(DefaultLifecycleExecutor.java:309)
>>
>>         at
>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
>> DefaultLifecycleExecutor.java:276)
>>
>>         at
>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
>> ycleExecutor.java:143)
>>
>>         at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:393)
>>
>>         at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:182)
>>
>>         at
>>
> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:760)
>>
>>         at
>>
> org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaEx
>> ecutor.java:257)
>>
>>         at
>>
> org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)
>>
>> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
>> deploying artifact:
> Z:\jcoleman\projects\eTraderII\trunk\target\classes
>> (Access is denied)
>>
>>         at
>> org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:174)
>>
>>         at
>>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
>> nager.java:417)
>>
>>         at
>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
>> LifecycleExecutor.java:610)
>>
>>         ... 10 more
>>
>> Caused by:
>> org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error
>> deploying artifact:
> Z:\jcoleman\projects\eTraderII\trunk\target\classes
>> (Access is denied)
>>
>>         at
>>
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defaul
>> tArtifactDeployer.java:95)
>>
>>         at
>> org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:162)
>>
>>         ... 12 more
>>
>> Caused by: java.io.FileNotFoundException:
>> Z:\jcoleman\projects\eTraderII\trunk\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.FileUtils.copyFile(FileUtils.java:820)
>>
>>         at
>>
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defaul
>> tArtifactDeployer.java:74)
>>
>>         ... 13 more
>>
>>
> [INFO]------------------------------------------------------------------
>> ------
>>
>> [INFO]BUILD ERRORS
>>
>>
> [INFO]------------------------------------------------------------------
>> ------
>>
>> [INFO]Total time: 1 minute 1 second
>>
>> [INFO]Finished at: Tue Aug 21 15:26:01 BST 2007
>>
>> [INFO]Final Memory: 52M/105M
>>
>>
> [INFO]------------------------------------------------------------------
>> ------
>>
>>
>> Eurobase International Limited and its subsidiaries (Eurobase) are
> unable to exercise control over the content of information in E-Mails.
> Any views and opinions expressed may be personal to the sender and are
> not necessarily those of Eurobase. Eurobase will not enter into any
> contractual obligations in respect of any part of its business in any
> E-mail.
>>
>> Privileged / confidential information may be contained in this message
> and /or any attachments. This E-mail is intended for the use of the
> addressee(s) only and may contain confidential information. If you are
> not the / an intended recipient, you are hereby notified that any use or
> dissemination of this communication is strictly prohibited.  If you
> receive this transmission in error, please notify us immediately, and
> then delete this E-mail.
>>
>> Neither the sender nor Eurobase accepts any liability whatsoever for
> any defects of any kind either in or arising from this E-mail
> transmission. E-Mail transmission cannot be guaranteed to be secure or
> error-free, as messages can be intercepted, lost, corrupted, destroyed,
> contain viruses, or arrive late or incomplete. Eurobase does not accept
> any responsibility for viruses and it is your responsibility to scan any
> attachments.
>>
>> Eurobase Systems Limited is the main trading company in the Eurobase
> International Group; registered in England and Wales as company number
> 02251162; registered address: Essex House, 2 County Place, Chelmsford,
> Essex CM2 0RE, UK.
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/deploy-goal-fails-tf4305577s177.html#a12369149
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to