Uploaded image for project: 'Jetspeed 2 (Retired)'
  1. Jetspeed 2 (Retired)
  2. JS2-978

In jetspeed-deploy-maven-plugin, cannot use expand or infuse when having a targetName

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.0
    • 2.2.0
    • Deployment
    • None

    Description

      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

      Attachments

        Activity

          People

            rwatler W. Randall Watler
            j.hoffman Jeroen Hoffman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: