portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gonzalo Aguilar (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Created: (JS2-1049) Deployment fails after using "mvn eclipse:eclipse" in the project
Date Tue, 28 Jul 2009 21:48:14 GMT
Deployment fails after using "mvn eclipse:eclipse" in the project

                 Key: JS2-1049
                 URL: https://issues.apache.org/jira/browse/JS2-1049
             Project: Jetspeed 2
          Issue Type: Bug
    Affects Versions: 2.2.0
         Environment: Eclipse Ganymede
            Reporter: Gonzalo Aguilar


I found that deploying application after doing "mvn eclipse:eclipse" does not work. 

The command:
        mvn jetspeed:mvn -Dtarget=all

Deploys the application as usual but I found that the war that goes into webapps is the wrong
one. I know this because the web.xml is the one under src/main/webapp/WEB-INF/web.xml

and not the injected one.

Output shows me several things:
[INFO] Packaging webapp
[INFO] Assembling webapp[l2portal-portal] in [/home/gad/workspace/l2portal/l2portal-portal/target/l2portal-portal-1.0-SNAPSHOT]

This one has the small web.xml.

[INFO] Processing war project
OverlayPackagingTask performPackaging overlay.getTargetPath() null[INFO] Processing overlay[
id org.apache.portals.jetspeed-2:jetspeed]
[INFO] Unpacking overlay[ id org.apache.portals.jetspeed-2:jetspeed]
[INFO] Expanding: /home/gad/.m2/repository/org/apache/portals/jetspeed-2/jetspeed/2.2.0/jetspeed-2.2.0.war
into /home/gad/workspace/l2portal/l2portal-portal/target/war/work/org.apache.portals.jetspeed-2/jetspeed
[INFO] Webapp assembled in[1936 msecs]

This war has the right web.xml and  /home/gad/workspace/l2portal/l2portal-portal/target/war/work
has the right file also.

But the war built has the web.xml in the path above, not the one from the jetspeed war.

So when deployed no application is run.

It's really strange because the applications deployed before doing the  "mvn eclipse:eclipse"
 get the right file in the WEB-INF directory. 

What can be wrong?

I compared files before and after the change and nothing seems to change for maven. But the
project is wrong built....

I found also that building from eclipse show the following error. But this may be unrelated.

28/07/09 23:46:01 CEST: Build errors for l2portal-portal; org.apache.maven.lifecycle.LifecycleExecutionException:
Invalid or missing parameters: [Mojo parameter [name: 'deployments'; alias: 'null'], Mojo
parameter [name: 'targetBaseDir'; alias: 'null']] for mojo: org.apache.portals.jetspeed-2:jetspeed-deploy-maven-plugin:2.2.0:deploy

I hope someone can throw light into this issue.

Thank you.

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

View raw message