You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Randy Watler (JIRA)" <je...@portals.apache.org> on 2009/05/11 17:43:45 UTC

[jira] Reopened: (JS2-978) In jetspeed-deploy-maven-plugin, cannot use expand or infuse when having a targetName

     [ https://issues.apache.org/jira/browse/JS2-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Randy Watler reopened JS2-978:
------------------------------


Have verified expand deployment in applications/jetspeed-demo/jetspeed-mvn-demo-pom.xml, but the original issue was reported against jetspeed-installer/jetspeed-mvn-tomcat-portal-pom.xml. Verifying expand operation in the installer.

> 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-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org