RE: Could not explode webapp

2009-12-17 Thread Hehl, Thomas
5)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launche
r.java:289)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:2
29)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launc
her.java:408)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351
)
at org.codehaus.classworlds.Launcher.main(Launcher.java:31)
Caused by: org.apache.maven.plugin.PluginExecutionException: Mojo
execution failed.
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:601)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:498)
... 20 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Could not
explode webapp...
at
org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(Abstract
WarMojo.java:348)
at
org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:167)
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:133)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:579)
... 21 more
Caused by: java.io.FileNotFoundException:
D:\juror\agilejury-service\target\classes (Access is denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at
org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:796)
at
org.apache.maven.plugin.war.AbstractWarMojo.copyFileIfModified(AbstractW
arMojo.java:866)
at
org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.
java:508)
at
org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(Abstract
WarMojo.java:344)
... 24 more

I thought about this some, and ran from the command prompt and it works
fine. It appears that the issue has something to do with the fact that
I'm running maven inside of eclipse and eclipse hides the classes
directory. 

What I don't' understand is why the service classes directory is being
accessed at all. I'm building front-end. Why doesn't it just grab the
stuff it needs from the repository and build my war file?


-Original Message-
From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
Behalf Of Anders Hammar
Sent: Wednesday, December 16, 2009 2:05 AM
To: Maven Users List
Subject: Re: Could not explode webapp

Try executing maven in debug mode:
mvn install -X
should provide you with more details so that you can troubleshoot.

/Anders

On Tue, Dec 15, 2009 at 21:09, Hehl, Thomas 
wrote:

> I'm still new to Maven.
>
>
>
> When building my web project, I get the following messages:
>
>
>
> [INFO] Assembling webapp agilejury-frontend in
> D:\juror\agilejury-frontend\target\agilejury-frontend-0.5
>
> [ERROR]
>
>
>
> The following mojo encountered an error while executing:
>
> Group-Id: org.apache.maven.plugins
>
> Artifact-Id: maven-war-plugin
>
> Version: 2.0
>
> Mojo: war
>
> brought in via: packaging: war
>
>
>
> While building project:
>
> Group-Id: com.acs.gs.juror
>
> Artifact-Id: agilejury-frontend
>
> Version: 0.5
>
> From file: D:\juror\agilejury-frontend\pom.xml
>
> Reason: Could not explode webapp...
>
>
>
> This is coming from the plugin:
>
>
>
>  
>
>  org.apache.maven.plugins
>
>  maven-war-plugin
>
>  2.0
>
>  
>
>
>
>  
>
>
>
>war
>
>  
>
>
> **/*.css
>
>
> **/*.gif
>
>
> **/*.html
>
>
> **/*.jpg
>
>
**/*.js
>
>
> **/*.png
>
>
> **/*.rpc
>
>
> **/*.swf
>
>
> **/*.xml
>
>  
>
>  
>
>
>
>  
>
>  
>
>
>
> And I don't understand why I'm getting an error when I'm creating a
war
> and not exploding one.
>
>
>
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Could not explode webapp

2009-12-15 Thread Anders Hammar
Try executing maven in debug mode:
mvn install -X
should provide you with more details so that you can troubleshoot.

/Anders

On Tue, Dec 15, 2009 at 21:09, Hehl, Thomas  wrote:

> I'm still new to Maven.
>
>
>
> When building my web project, I get the following messages:
>
>
>
> [INFO] Assembling webapp agilejury-frontend in
> D:\juror\agilejury-frontend\target\agilejury-frontend-0.5
>
> [ERROR]
>
>
>
> The following mojo encountered an error while executing:
>
> Group-Id: org.apache.maven.plugins
>
> Artifact-Id: maven-war-plugin
>
> Version: 2.0
>
> Mojo: war
>
> brought in via: packaging: war
>
>
>
> While building project:
>
> Group-Id: com.acs.gs.juror
>
> Artifact-Id: agilejury-frontend
>
> Version: 0.5
>
> From file: D:\juror\agilejury-frontend\pom.xml
>
> Reason: Could not explode webapp...
>
>
>
> This is coming from the plugin:
>
>
>
>  
>
>  org.apache.maven.plugins
>
>  maven-war-plugin
>
>  2.0
>
>  
>
>
>
>  
>
>
>
>war
>
>  
>
>
> **/*.css
>
>
> **/*.gif
>
>
> **/*.html
>
>
> **/*.jpg
>
>  **/*.js
>
>
> **/*.png
>
>
> **/*.rpc
>
>
> **/*.swf
>
>
> **/*.xml
>
>  
>
>  
>
>
>
>  
>
>  
>
>
>
> And I don't understand why I'm getting an error when I'm creating a war
> and not exploding one.
>
>
>
>