Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Dealing with warproduct


Holger Staudacher' warproduct is very usefull for exporting Equinox war product from Eclipse. But I didn't find how to mavenize this kind of project.
For testing, I have tried to make a pom that deals with warproduct in Tycho. Surprisingly, it was "easy" because warproduct is very similar to product.
Perhaps you can help me to improve the method or give me a simplier alternative.

I have some questions :
        - is it possible to force tycho director plugin to use other extension than .product ? Perhaps a configuration to force product filename...
        - is there a plan to deal with warproduct in Tycho ? Or is it possible to add it ?

At the moment, I can just package OSGI/Equinox  war with Tycho (I didn't deal with RAP). My goal is making OSGI Web services for Tomcat
My source is RAP demo : thanks for that

The followings described how to do :
- A maven module for web service source code with packaging type : eclipse-plugin.
        it contains : all java classes and component.xml if needed
        I use OSGi JAX-RS Connector (also from Holger Staudacher) for annotated them as Web services.
- A maven module for war product :
        it contains :
                WEB-INF directory with launch.ini and web.xml
                the warproduct modified to point on this web.xml
The pom.xml of this last module is the same as RAP demo. The only problem is the config.ini path :
        - is there a way to use variables instead of win32/win32/x86 ?

The assembly.xml is slightly different :
                        <!-- TODO : path with variables ? -->

For now, I have to rename warproduct into product before because I can't force product filename :
                                                        <target name="copy and rename file">
                                                                <copy file="${basedir}/${project.artifactId}.warproduct"
                                                                        tofile="${basedir}/${project.artifactId}.product" overwrite="true" failonerror="true"/>



Back to the top