I got around this by using a seperate .m2/settings-eclipse.xml (for eclipse) where I over-ride the default type of dependency. so in my launcher POM, I have:
<dependency>
<groupId>com.myco</groupId>
<artifactId>my-server</artifactId>
<version>${project.version}</version>
<!-- here we want eclipse to see "jar" but command line to see "war" -->
<type>${jetty.launcher.workaround}</type>
</dependency>
I still would like to know if there is a direct way to approach the original problem.
Justin
2010-09-15 19:14:49