[ https://issues.apache.org/jira/browse/JS2-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Randy Watler reopened JS2-978: ------------------------------ Finally have been able to recreate this issue: setting BOTH expand and infuse tags leads to improperly named expanded webapp directory: > ls -l /home/rwatler/j2/jetspeed-installer/target/apache-tomcat-6.0.18/webapps/ total 32 drwxrwxr-x 7 rwatler rwatler 4096 2009-05-11 12:37 demo.war/ drwxrwxr-x 5 rwatler rwatler 4096 2009-05-11 12:37 host-manager/ drwxrwxr-x 9 rwatler rwatler 4096 2009-05-11 12:37 j2-admin/ drwxrwxr-x 9 rwatler rwatler 4096 2009-05-11 12:37 jetspeed/ drwxrwxr-x 5 rwatler rwatler 4096 2009-05-11 12:37 manager/ drwxrwxr-x 3 rwatler rwatler 4096 2009-05-11 12:37 ROOT/ drwxrwxr-x 5 rwatler rwatler 4096 2009-05-11 12:37 rss.war/ drwxrwxr-x 5 rwatler rwatler 4096 2009-05-11 12:37 webcontent.war/ Note *.war named directories. > In jetspeed-deploy-maven-plugin, cannot use expand or infuse when having a > targetName > ------------------------------------------------------------------------------------- > > Key: JS2-978 > URL: https://issues.apache.org/jira/browse/JS2-978 > Project: Jetspeed 2 > Issue Type: Bug > Components: Deployment > Affects Versions: 2.2.0 > Reporter: Jeroen Hoffman > Assignee: Randy Watler > Priority: Minor > Fix For: 2.2.0 > > > When using a targetName on a deployment for the maven deploy plugin, the > expand and infuse elements cannot be used. The expand element will create a > expanded directory by the name of the targetname including extention (so a > demo.war directory in the example, which should be just demo). The infuse > element leads to a nullpointer while creating a temp file (see stacktrace). > Example: > <deployment> > <artifact>org.apache.portals.applications:apa-demo:war</artifact> > <targetName>demo.war</targetName> > <expand>true</expand> > <infuse>true</infuse> > <delete>./demo</delete> > </deployment> > [INFO] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to infuse > C:\Maven2\org\apache\portal > s\applications\apa-demo\1.0-SNAPSHOT\apa-demo-1.0-SNAPSHOT.war > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor > .java:583) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifec > ycleExecutor.java:499) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor. > java:478) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultL > ifecycleExecutor.java:330) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleE > xecutor.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: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: Failed to infuse > C:\Maven2\org\apache\por > tals\applications\apa-demo\1.0-SNAPSHOT\apa-demo-1.0-SNAPSHOT.war > at > org.apache.jetspeed.maven.plugins.DeployMojo.execute(DeployMojo.java:438) > 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.lang.NullPointerException > at java.io.File.createTempFile(File.java:1421) > at java.io.File.createTempFile(File.java:1471) > at > org.apache.jetspeed.tools.deploy.JetspeedDeploy.<init>(JetspeedDeploy.java:109) > at > org.apache.jetspeed.tools.deploy.JetspeedDeployFactory.getInstance(JetspeedDeployFactory. > java:58) > at > org.apache.jetspeed.maven.plugins.DeployMojo.execute(DeployMojo.java:433) > ... 18 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscr...@portals.apache.org For additional commands, e-mail: jetspeed-dev-h...@portals.apache.org