kukido / eclipser

Eclipser is an IntelliJ plugin. It converts Eclipse launch configurations into IntelliJ IDEA run configurations.
Apache License 2.0
37 stars 28 forks source link

Support launcher type: org.sonatype.m2e.webby.launchConfigType #21

Closed bhamail closed 8 years ago

bhamail commented 8 years ago

While using the IDEA 15.0.3 with Eclipser plugin v0.7.1, I tried to convert a .launch file and received the following error: This is an unknown launch configuration. If you would like Eclipser to support it, please submit a ticket at eclipser/issues

Here's the launcher config:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.sonatype.m2e.webby.launchConfigType">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/insight-portal-webapp"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="insight-portal-webapp"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.sonatype.m2e.webby.sourcepathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dlogback.configurationFile=${project_loc:insight-portal-webapp}/src/test/resources/logback-test.xml -XX:MaxPermSize=256m -Xmx1g"/>
<stringAttribute key="org.sonatype.m2e.webby.containerHome" value=""/>
<stringAttribute key="org.sonatype.m2e.webby.containerId" value="jetty8x"/>
<intAttribute key="org.sonatype.m2e.webby.containerPort" value="8080"/>
<intAttribute key="org.sonatype.m2e.webby.containerTimeout" value="60"/>
<stringAttribute key="org.sonatype.m2e.webby.containerType" value="embedded"/>
<stringAttribute key="org.sonatype.m2e.webby.contextName" value="/insight-portal"/>
<stringAttribute key="org.sonatype.m2e.webby.logLevel" value="medium"/>
<stringAttribute key="org.sonatype.m2e.webby.sysPropFiles" value="${project_loc:insight-portal-webapp}/target/test-classes/config-dev.properties&#13;&#10;${project_loc:insight-portal-webapp}/target/test-classes/config-launch.properties"/>
</launchConfiguration>

Can Eclipser convert a launcher of type: org.sonatype.m2e.webby.launchConfigType ?

kukido commented 8 years ago

Ecliser can support only runtime configurations existing in IntelliJ, AFAIK there's no Webby runtime configuration in latest version of IntelliJ. Until it exists, the conversion cannot be done. Sorry about that.

bhamail commented 8 years ago

Thanks very much for checking!

I found a workaround for my case: My project has the jetty-maven-plugin configured, so I can launch the web app via the 'Maven Projects' panel, under ... 'Modules' -> 'MyAppName' -> 'Plugins' -> 'jetty' -> right click 'jetty:run' and click 'Debug'.

kukido commented 8 years ago

Awesome!