demostene.ro
RSSTwitterFacebookYoutube
  • Welcome
  • Projects
    • Twtln
  • Download
  • Despre
  • Carti
  • Creioane
  • Blog
De anul nou Problema intalnita la integrarea cu SONAR – Invalid header field

JWSC in Maven, cu AntRun plugin

On January 17, 2012 · Leave a Comment · In programare

Migrand de la Ant la Maven am dat peste urmatoarea problema: clasa Client.java trebuie compilata cu jwsc (weblogic.wsee.tools.anttasks.JwscTask). Am incercat cu weblogic-maven-plugin, l-am lasat, are destule bug-uri. Am gasit o rezolvare cu antrun.

<plugin>
  <artifactId>maven-antrun-plugin</artifactId>
  <version>1.5</version>
  <executions>
    <execution>
      <phase>package</phase>
      <configuration>
        <target>
          <property name="runtime_classpath"
                        refid="maven.runtime.classpath"/>
          <property name="test_classpath"
                        refid="maven.test.classpath"/>
          <property name="plugin_classpath"
                        refid="maven.plugin.classpath"/>
          <property name="compile_classpath"
                        refid="maven.compile.classpath"/>
          <!-- External weblogic ant definition to generate
                        a web service plus files -->
          <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
            <classpath refid="maven.compile.classpath"/>
          </taskdef>
          <jwsc srcdir="${project.build.sourceDirectory}"
                  destdir="${project.build.directory}"
                  classpathref="maven.compile.classpath"
                  applicationXml="src/main/resources/application.xml">
            <jws file="ro/demostene/ws/Client.java" name="pub-ws"/>
          </jwsc>
        </target>
      </configuration>
      <goals>
        <goal>run</goal>
      </goals>
    </execution>
  </executions>
  <dependencies>
    <!-- JDK Dependency -->
    <dependency>
      <groupId>jdk</groupId>
      <artifactId>jdk</artifactId>
      <version>5</version>
      <systemPath>${java.home}/../lib/tools.jar</systemPath>
      <scope>system</scope>
    </dependency>
  </dependencies>
</plugin>
Tagged with: ant • java • maven • weblogic 
Trimite linkul pe Facebook sau Twitter
FacebookTwitter
  • Categorii

    • de zi cu zi
    • din IT
    • interesante
    • ma enerveaza…
    • muzici
    • programare
    • roc bluz giaz
    • zambete
  • Comentarii recente

    • Remus Sinorchian on Astazi sunt sub scut
    • demostene on Astazi sunt sub scut
    • Remus Sinorchian on Astazi sunt sub scut
    • demostene on Astazi sunt sub scut
    • Remus Sinorchian on Astazi sunt sub scut
  • Arhiva

  • D-ale lui Demostene

    • Plimbari
    • Probleme de logica
    • Sa mai si radem…
  • Sustin

  • the world photo tour

    Un roman merge pe jos prin toata lumea! Tu ai scris despre el ?

    theworldphototour.com

Nice weather in Alicante.  — demostene

Blogroll

  • Adi
  • Cristina
  • Ghizuroi
  • Oana
PageLines by PageLines