Issue Type: Bug Bug
Affects Versions: 0.8
Assignee: Rob Cernich
Components: tooling
Created: 15/Feb/13 3:59 PM
Description:

While working on SWITCHYARD-1293, I ran into some issues with configuring an OpenShift project in the tooling so it works as a SwitchYard tooling project.

By going through the Configure->SwitchYard Capabilities... menu, it should update the project configuration (i.e. add the SwitchYard facet and allow the user to specify which components you want to include). Unfortunately that doesn't quite work.

It turns out that if you try to go this route when you have a Maven-enabled project with a WAR deployment specified, you get these presets:

[preset.jst.jsf.v1_1, preset.jst.jsf.v2_0, preset.jst.jsf.v1_2, minimal.configuration, default.configuration, preset.jst.jsf.v2_1]

And when you have a Maven-enabled project with a JAR deployment specified, you get these:

[preset.jst.jsf.v1_1, preset.jboss.seamportlet.v22, minimal.configuration, jst.seam21.preset, jbossws.core.preset, jst.seam23.preset, preset.jboss.seamportlet.v20, jst.seam22.preset, jboss.jst.cdi.preset, preset.jst.jsf.v2_1, preset.jst.ejb.xdoclet, jst.seam2.preset, jst.seam.preset, preset.jst.jsf.v2_0, preset.switchyard.jar, preset.jst.web.xdoclet, cxf.jst.web25.preset, preset.jst.jsf.v1_2, preset.switchyard.basic, default.configuration]

The code that updates the project to be a Switchyard project needs that preset.switchyard.basic facet preset to be in there before it'll work.

I'm not seeing anything obvious in the facet code to tell me why it works for jar, but not war.

It was suggested that Maven->Update Project might correct the issue, but it doesn't seem to fix anything either.

I did notice however that if I update the pom using the Maven POM editor and update the "Packaging" setting from war to jar, it doesn't work. The section in the pom doesn't update the deployments bits...

     <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.3.2</version>
        <executions>
          <execution>
            <id>default-jar</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

All I did in this case was open the pom.xml in the Maven POM Editor (provide by m2e I believe) and change the "packaging" setting on the Overview page from war to jar. That doesn't seem to set up the jar deployment bits as described in SWITCHYARD-1293.

Project: SwitchYard
Priority: Major Major
Reporter: Brian Fitzpatrick
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira