[jira] Commented: (MWAR-126) It is not possible to package empty war.

2009-02-11 Thread Stephane Nicoll (JIRA)

[ 
http://jira.codehaus.org/browse/MWAR-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=165138#action_165138
 ] 

Stephane Nicoll commented on MWAR-126:
--

Actually I fixed it a while back but I forgot to resolve the issue.

 It is not possible to package empty war.
 

 Key: MWAR-126
 URL: http://jira.codehaus.org/browse/MWAR-126
 Project: Maven 2.x War Plugin
  Issue Type: Bug
Affects Versions: 2.0.2
Reporter: Libor Kramolis
 Attachments: MWAR-126.zip, war-bug.txt


 If there is no java sources and no resources (src/main/java and 
 src/main/resources does not exist) it is not possible to package war 
 application.
 But if I do NOT user classifier of war plugin there is no problem while 
 war:war goal.
 --
 org.apache.maven.lifecycle.LifecycleExecutionException: Error installing 
 artifact: File 
 d:\work\tutor\development\tutorialproject-war_ws\target\classes does not exist
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
 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:585)
 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: Error installing 
 artifact: File 
 d:\work\tutor\development\tutorialproject-war_ws\target\classes does not exist
 at 
 org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:143)
 at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
 ... 16 more
 Caused by: org.apache.maven.artifact.installer.ArtifactInstallationException: 
 Error installing artifact: File 
 d:\work\tutor\development\tutorialproject-war_ws\target\classes does not exist
 at 
 org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(DefaultArtifactInstaller.java:87)
 at 
 org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:105)
 ... 18 more
 Caused by: java.io.IOException: File 
 d:\work\tutor\development\tutorialproject-war_ws\target\classes does not exist
 at 
 hidden.org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:845)
 at 
 org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(DefaultArtifactInstaller.java:73)
 ... 19 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




[jira] Commented: (MWAR-126) It is not possible to package empty war.

2008-02-26 Thread Torsten Reinhard (JIRA)

[ 
http://jira.codehaus.org/browse/MWAR-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_125187
 ] 

Torsten Reinhard commented on MWAR-126:
---

I´ve been running into the same problem, here´s a part of my pom.xml:

build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
configuration

classifier${typeClassifier}/classifier
archive
manifest

addClasspathtrue/addClasspath
/manifest
/archive
/configuration
/plugin
/plugins
/build


profiles
profile
idservice-remote-spring/id

activation
activeByDefaulttrue/activeByDefault
/activation

properties
typeClassifier/typeClassifier
/properties
...
/profile


profile
idservice-local-mock/id

properties
typeClassifiermock/typeClassifier
/properties
...
/profile

The build without any classifier works fine, 
The build with the classifier mock only works, when I have a target\classes 
directory which may be empty !

 It is not possible to package empty war.
 

 Key: MWAR-126
 URL: http://jira.codehaus.org/browse/MWAR-126
 Project: Maven 2.x War Plugin
  Issue Type: Bug
Affects Versions: 2.0.2
Reporter: Libor Kramolis
 Attachments: war-bug.txt


 If there is no java sources and no resources (src/main/java and 
 src/main/resources does not exist) it is not possible to package war 
 application.
 But if I do NOT user classifier of war plugin there is no problem while 
 war:war goal.
 --
 org.apache.maven.lifecycle.LifecycleExecutionException: Error installing 
 artifact: File 
 d:\work\tutor\development\tutorialproject-war_ws\target\classes does not exist
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
 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:585)
 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: Error installing 
 artifact: File 
 d:\work\tutor\development\tutorialproject-war_ws\target\classes does not exist
 at 
 org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:143)
 at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
 ... 16 more
 Caused by: org.apache.maven.artifact.installer.ArtifactInstallationException: 
 Error installing artifact: File 
 d:\work\tutor\development\tutorialproject-war_ws\target\classes does not exist
 at 
 org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(DefaultArtifactInstaller.java:87)
 

[jira] Commented: (MWAR-126) It is not possible to package empty war.

2007-10-23 Thread Stephane Nicoll (JIRA)

[ 
http://jira.codehaus.org/browse/MWAR-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_33
 ] 

Stephane Nicoll commented on MWAR-126:
--

So you have this when you use the classifier? Can you provide a sample pom that 
reproduce your issue? Are you running from the reactor?

 It is not possible to package empty war.
 

 Key: MWAR-126
 URL: http://jira.codehaus.org/browse/MWAR-126
 Project: Maven 2.x War Plugin
  Issue Type: Bug
Affects Versions: 2.0.2
Reporter: Libor Kramolis
Priority: Critical
 Attachments: war-bug.txt


 If there is no java sources and no resources (src/main/java and 
 src/main/resources does not exist) it is not possible to package war 
 application.
 But if I do NOT user classifier of war plugin there is no problem while 
 war:war goal.
 --
 org.apache.maven.lifecycle.LifecycleExecutionException: Error installing 
 artifact: File 
 d:\work\tutor\development\tutorialproject-war_ws\target\classes does not exist
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
 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:585)
 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: Error installing 
 artifact: File 
 d:\work\tutor\development\tutorialproject-war_ws\target\classes does not exist
 at 
 org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:143)
 at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
 ... 16 more
 Caused by: org.apache.maven.artifact.installer.ArtifactInstallationException: 
 Error installing artifact: File 
 d:\work\tutor\development\tutorialproject-war_ws\target\classes does not exist
 at 
 org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(DefaultArtifactInstaller.java:87)
 at 
 org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:105)
 ... 18 more
 Caused by: java.io.IOException: File 
 d:\work\tutor\development\tutorialproject-war_ws\target\classes does not exist
 at 
 hidden.org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:845)
 at 
 org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(DefaultArtifactInstaller.java:73)
 ... 19 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