Stefaan--

  Hey, I'm not aware of a Maven2 plugin that could be used to
specifically build JAX-WS related source files, but there are a couple
of options for APT (annotation processing tool) support.  These are

1) the patch in this bug:
  http://jira.codehaus.org/browse/MNG-2089?page=all
that supports running apt.exe during code generation phase
2) the code here:
  http://svn.apache.org/repos/asf/beehive/sandbox/maven2/maven-apt-compiler/
that adds support for configuring APT as a compiler used during "compile" phase

  Both should work -- JB (author of the first) and I (author of the
second) have talked about how to integrate these into a single plugin
that could be used to run APT in either phase and as an alternate to
"javac".  To setup the latter (after installing the plugin and
registering the compiler), you'd just need to add the XML below to
your pom.xml file; configuration for (1) is similar.

  Hope that helps...

Eddie



::: pom.xml
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <compilerId>apt</compilerId>
                    <source>1.5</source>
                    <target>1.5</target>
                    <fork>true</fork>
                    <verbose>true</verbose>
                    <compilerArguments>
                        <s>target/srcgen</s>
                    </compilerArguments>
                </configuration>
            </plugin>
        </plugins>
    </build>
:::





On 3/13/06, Stefaan Hallet <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I started working on Maven 2 and was trying to build a WS project using
> maven2 and JAX-WS RI 2.0 (EA 3.0) .
>
> Any ideas if there is a maven2 plug-in which I could use ?
>
> Using ant, the annotation processing tool (apt) can be used, but can apt be
> used using maven2 ?
>
> Any suggestions?
>
> Thanks,
>
> Stefaan
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to