i finally did it. added a cache for the java-net dev repo to my artifactory settings and exluded "javax/xml/ws/**" for the two central repos (repo1 and ibiblio).
maven now always retrieves the correct (working) jaxws-api-2.1.pom from the java-net dev repo. here is my FULL (working) pom.xml: <?xml version="1.0" encoding="UTF-8" ?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <!-- this parent project is needed in order to use my artifact cache (artifactory), didn't find any solution without a cache yet --> <parent> <artifactId>sat-base-project</artifactId> <groupId>at.researchstudio.sat</groupId> <version>1.2</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>org.codehaus.mojo.jaxws.it</groupId> <artifactId>helloworldws</artifactId> <version>1.0-SNAPSHOT</version> <packaging>war</packaging> <name>helloworld</name> <dependencies> <dependency> <groupId>javax.xml.ws</groupId> <artifactId>jaxws-api</artifactId> <version>2.1</version> </dependency> </dependencies> <build> <finalName>${artifactId}</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> <executions> <execution> <id>compile</id> <goals> <goal>compile</goal> </goals> <phase>initialize</phase> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxws-maven-plugin</artifactId> <version>1.7</version> <executions> <execution> <goals> <goal>wsgen</goal> </goals> <configuration> <sei>org.codehaus.mojo.jaxws.it.HelloWorldImpl</sei> <genWsdl>true</genWsdl> <verbose>true</verbose> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.0.1</version> <configuration> <scanIntervalSeconds>10</scanIntervalSeconds> <contextPath>/</contextPath> <!--jettyEnvXml>${basedir}/src/jetty-env.xml</jettyEnvXml--> <connectors> <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> <port>9090</port> <maxIdleTime>60000</maxIdleTime> </connector> </connectors> </configuration> </plugin> </plugins> </build> <repositories> <!-- needed to retrieve a working jaxws-api-2.1.pom --> <repository> <id>java.net - Dev</id> <url>https://maven-repository.dev.java.net/repository</url> <layout>legacy</layout> </repository> <!-- needed for the jaxws-maven-plugin --> <repository> <id>java.net - Maven2</id> <url>http://download.java.net/maven/2</url> <layout>legacy</layout> </repository> </repositories> </project> thx again to all those who helped me to get this running. best regards R.C. CodingPlayer wrote: > > hi dan, > > thx for your help. > > i already figured out, that there are several problems (broken poms): > > - the jaxws-api-2.1.pom at the the central repo is broken. > http://repo1.maven.org/maven2/javax/xml/ws/jaxws-api/2.1/jaxws-api-2.1.pom > > there are three dependencies missing (saaj-api, jsr250-api, jsr181-api) > > - the jaxws-api-2.1-1.pom is also broken!!! > > http://repo1.maven.org/maven2/javax/xml/ws/jaxws-api/2.1-1/jaxws-api-2.1-1.pom > > it points to > > <groupId>javax.jws</groupId > <artifactId>jsr181</artifactId> > <version>1.0</version> > > which doesn't exist, should be > > <groupId>javax.jws</groupId> > <artifactId>jsr181-api</artifactId> > <version>1.0-MR1</version> > > > - there exists a working pom for the jaxws-api (at java.net dev repo) > https://maven-repository.dev.java.net/repository/javax.xml.ws/poms/jaxws-api-2.1.pom > > it seems that this new version was uploaded the last night, before it was > broken as well. > > > my problem is now, that i need the central repo (to retrieve other > artifacts), and don't know how to tell maven, to skip downloading the > jaxws-api-2.1 from central, and download it from java-net dev repo > instead. > > my next approach is to download it manually and deploy it to my artifact > cache (artifactory). > > but if there is another solution, to tell maven explicitly from where to > download missing artifacts pls let me know. > > regards > R.C. > > > Dan Tran wrote: >> >> jaxws-api 2.2-1 is at >> http://repo1.maven.org/maven2/javax/xml/ws/jaxws-api/2.1-1/ >> >> the plugin is at http://download.java.net/maven/2 >> >> The rest of required artifacts are at the java.net maven.1 legacy repo >> >> http://download.java.net/maven/1 >> >> So you need 2 maven2 repos and 1 maven repo to get it to work :-) >> >> -D >> >> >> On Nov 15, 2007 2:14 AM, CodingPlayer <[EMAIL PROTECTED]> >> wrote: >>> >>> hi wayne, >>> >>> thx for your hint. >>> >>> just posted the thread at the users forum. >>> >>> but since i couldn't find any users forum / mailing list (at java.net) >>> https://jax-ws-commons.dev.java.net/jaxws-maven-plugin/mail-lists.html >>> >>> i decided to post it to the (old) codehaus mailinglist. >>> http://mojo.codehaus.org/jaxws-maven-plugin/mail-lists.html >>> >>> >>> best regards >>> R.C. >>> >>> >>> Wayne Fay wrote: >>> > >>> >>> > You should probably also post this request on the jaxws plugin >>> > users/dev list. Since there is a lower chance that someone here is >>> > using jaxws and will respond, but a very high chance that someone on >>> > that list is using jaxws. >>> > >>> > Wayne >>> > >>> > On 11/14/07, CodingPlayer <[EMAIL PROTECTED]> wrote: >>> >> >>> >> Hi There, >>> >> >>> >> I'm an absolute noob to webservices, who is currently trying to >>> compile a >>> >> webservice annotated class, with the actual jaxws-maven-plugin. >>> >> >>> >> i already lost 3 days, and still didn't find a way to get it running >>> >> properly. >>> >> >>> >> to find the error i stepped back, and simply tried to get the wsgen >>> >> example >>> >> running: >>> >> >>> https://jax-ws-commons.dev.java.net/source/browse/*checkout*/jax-ws-commons/trunk/jaxws-maven-plugin/src/it/wsgen/pom.xml?content-type=text%2Fplain&rev=110 >>> >> >>> >> after removing the version (which points to a SNAPSHOT which can't be >>> >> downloaded) i have the following pom.xml: >>> >> >>> >> <?xml version="1.0" encoding="UTF-8" ?> >>> >> >>> >> <project >>> >> xmlns="http://maven.apache.org/POM/4.0.0" >>> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> >> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 >>> >> http://maven.apache.org/maven-v4_0_0.xsd"> >>> >> >>> >> >>> >> <modelVersion>4.0.0</modelVersion> >>> >> <groupId>org.codehaus.mojo.jaxws.it</groupId> >>> >> <artifactId>helloworldws</artifactId> >>> >> <version>1.0-SNAPSHOT</version> >>> >> >>> >> <packaging>war</packaging> >>> >> <name>helloworld</name> >>> >> >>> >> >>> >> <dependencies> >>> >> <dependency> >>> >> <groupId>com.sun.xml.ws</groupId> >>> >> <artifactId>jaxws-rt</artifactId> >>> >> <version>2.1</version> >>> >> </dependency> >>> >> </dependencies> >>> >> >>> >> <!-- temporary only until java.net maven2 repo is ready--> >>> >> <repositories> >>> >> <repository> >>> >> <id>java.net</id> >>> >> >>> <url>https://maven-repository.dev.java.net/nonav/repository/</url> >>> >> <layout>legacy</layout> >>> >> </repository> >>> >> </repositories> >>> >> >>> >> <build> >>> >> >>> >> <finalName>${artifactId}</finalName> >>> >> >>> >> <plugins> >>> >> >>> >> <plugin> >>> >> <groupId>org.apache.maven.plugins</groupId> >>> >> <artifactId>maven-compiler-plugin</artifactId> >>> >> <configuration> >>> >> <source>1.5</source> >>> >> <target>1.5</target> >>> >> </configuration> >>> >> >>> >> <executions> >>> >> <execution> >>> >> <id>compile</id> >>> >> <goals> >>> >> <goal>compile</goal> >>> >> </goals> >>> >> <phase>initialize</phase> >>> >> </execution> >>> >> </executions> >>> >> >>> >> </plugin> >>> >> >>> >> >>> >> <plugin> >>> >> <groupId>org.codehaus.mojo</groupId> >>> >> <artifactId>jaxws-maven-plugin</artifactId> >>> >> <executions> >>> >> <execution> >>> >> <goals> >>> >> <goal>wsgen</goal> >>> >> </goals> >>> >> <phase>generate-sources</phase> >>> >> <configuration> >>> >> <sei>org.codehaus.mojo.jaxws.it.HelloWorldImpl</sei> >>> >> <genWsdl>true</genWsdl> <!-- for demo purpose only, >>> the >>> >> wepapp does not need those the generated wsdl files--> >>> >> <keep>true</keep> >>> >> </configuration> >>> >> </execution> >>> >> </executions> >>> >> </plugin> >>> >> >>> >> >>> >> <plugin> >>> >> <groupId>org.mortbay.jetty</groupId> >>> >> <artifactId>maven-jetty-plugin</artifactId> >>> >> <version>6.0.1</version> >>> >> <configuration> >>> >> <scanIntervalSeconds>10</scanIntervalSeconds> >>> >> <contextPath>/</contextPath> >>> >> <!--jettyEnvXml>${basedir}/src/jetty-env.xml</jettyEnvXml--> >>> >> <connectors> >>> >> <connector >>> >> implementation="org.mortbay.jetty.nio.SelectChannelConnector"> >>> >> <port>9090</port> >>> >> <maxIdleTime>60000</maxIdleTime> >>> >> </connector> >>> >> </connectors> >>> >> </configuration> >>> >> </plugin> >>> >> >>> >> </plugins> >>> >> </build> >>> >> </project> >>> >> >>> >> >>> >> when running 'mvn install -X -e' from the command line i get the >>> >> following >>> >> error: >>> >> >>> >> [DEBUG] jaxws:wsgen args: [-keep, -d, >>> C:\projects\jax-ws\target\classes, >>> >> -cp, C:\projects\jax-ws\target\classes;D:\data >>> >> >>> Maven_repository\javax\xml\bind\jaxb-api\2.1\jaxb-api-2.1.jar;D:\data\Maven_repository\javax\xml\ws\jaxws-api\2.1\jaxws >>> >> >>> api-2.1.jar;D:\data\Maven_repository\javax\xml\soap\saaj-api\1.3\saaj-api-1.3.jar;D:\data\Maven_repository\com\sun\xml\ >>> >> >>> essaging\saaj\saaj-impl\1.3\saaj-impl-1.3.jar;D:\data\Maven_repository\com\sun\xml\stream\buffer\streambuffer\0.4\strea >>> >> >>> buffer-0.4.jar;D:\data\Maven_repository\com\sun\xml\stream\sjsxp\1.0\sjsxp-1.0.jar;D:\data\Maven_repository\com\sun\xml >>> >> >>> bind\jaxb-impl\2.1.2\jaxb-impl-2.1.2.jar;D:\data\Maven_repository\com\sun\xml\ws\jaxws-rt\2.1\jaxws-rt-2.1.jar;D:\data\ >>> >> >>> aven_repository\javax\xml\stream\stax-api\1.0\stax-api-1.0.jar;D:\data\Maven_repository\javax\activation\activation\1.1 >>> >> >>> activation-1.1.jar;D:\data\Maven_repository\org\jvnet\staxex\stax-ex\1.0\stax-ex-1.0.jar, >>> >> -wsdl, -r, C:\projects\jax-ws >>> >> target\jaxws\wsgen\wsdl, org.codehaus.mojo.jaxws.it.HelloWorldImpl] >>> >> [INFO] >>> >> >>> ------------------------------------------------------------------------ >>> >> [ERROR] BUILD ERROR >>> >> [INFO] >>> >> >>> ------------------------------------------------------------------------ >>> >> [INFO] Failed to execute wsgen >>> >> >>> >> Embedded error: javax/jws/WebService >>> >> [INFO] >>> >> >>> ------------------------------------------------------------------------ >>> >> [DEBUG] Trace >>> >> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to >>> execute >>> >> wsgen >>> >> at >>> >> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) >>> >> at >>> >> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:4 >>> >> 0) >>> >> at >>> >> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) >>> >> at >>> >> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.ja >>> >> a:311) >>> >> at >>> >> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) >>> >> at >>> >> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) >>> >> at >>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) >>> >> at >>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) >>> >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) >>> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> >> at >>> >> >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> >> at >>> >> >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> >> at java.lang.reflect.Method.invoke(Method.java:585) >>> >> at >>> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) >>> >> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) >>> >> at >>> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >>> >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) >>> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to >>> >> execute >>> >> wsgen >>> >> at >>> >> >>> org.codehaus.mojo.jaxws.AbstractWsGenMojo.execute(AbstractWsGenMojo.java:96) >>> >> at >>> >> org.codehaus.mojo.jaxws.MainWsGenMojo.execute(MainWsGenMojo.java:14) >>> >> at >>> >> >>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) >>> >> at >>> >> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) >>> >> ... 16 more >>> >> Caused by: java.lang.NoClassDefFoundError: javax/jws/WebService >>> >> at >>> >> >>> com.sun.tools.ws.wscompile.WsgenOptions.validateEndpointClass(WsgenOptions.java:198) >>> >> at >>> >> >>> com.sun.tools.ws.wscompile.WsgenOptions.validate(WsgenOptions.java:180) >>> >> at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:88) >>> >> at com.sun.tools.ws.WsGen.doMain(WsGen.java:55) >>> >> at >>> >> >>> org.codehaus.mojo.jaxws.AbstractWsGenMojo.execute(AbstractWsGenMojo.java:91) >>> >> ... 19 more >>> >> [INFO] >>> >> >>> ------------------------------------------------------------------------ >>> >> [INFO] Total time: 2 seconds >>> >> [INFO] Finished at: Wed Nov 14 15:26:30 CET 2007 >>> >> [INFO] Final Memory: 6M/1016M >>> >> [INFO] >>> >> >>> ------------------------------------------------------------------------ >>> >> >>> >> >>> >> >>> >> since i'm almost getting mad, i also tried to run an ant-task, using >>> the >>> >> maven-antrun-plugin instead of the jaxws-maven-plugin: >>> >> >>> >> <plugin> >>> >> <artifactId>maven-antrun-plugin</artifactId> >>> >> <executions> >>> >> <execution> >>> >> <phase>compile</phase> >>> >> <configuration> >>> >> <tasks> >>> >> <exec executable="wsgen"> >>> >> <arg value="-classpath"/> >>> >> <arg >>> >> value="${project.build.directory}/classes"/> >>> >> <arg value="-d"/> >>> >> <arg >>> >> value="${project.build.directory}/classes"/> >>> >> <arg value="-wsdl" /> >>> >> <arg value="-keep" /> >>> >> <arg >>> >> value="org.codehaus.mojo.jaxws.it.HelloWorldImpl"/> >>> >> </exec> >>> >> </tasks> >>> >> </configuration> >>> >> <goals> >>> >> <goal>run</goal> >>> >> </goals> >>> >> </execution> >>> >> </executions> >>> >> </plugin> >>> >> >>> >> but with this approach i have the problem, that it works only when >>> adding >>> >> the java6 sdk binary folder to the system path, but since i don't >>> want to >>> >> use java6, i can't use this approach either. >>> >> >>> >> i even tried to run wsgen from the command line by myself, which >>> worked >>> >> fine >>> >> (when adding the path to java6). >>> >> >>> >> >>> >> >>> >> So PLEASE let me know if you have any ideas. >>> >> >>> >> Maybe one of you would be so kind, to post a FULL WORKING pom.xml >>> using >>> >> java5 with the jaxws-maven-plugin (or even fix the error in the >>> example >>> >> pom.xml). >>> >> >>> >> waiting for any replies that could help me out. >>> >> >>> >> thx @all >>> >> R.C. >>> >> -- >>> >> View this message in context: >>> >> >>> http://www.nabble.com/-M2--jaxws-maven-plugin-vs.-ant-task-using-wsgen-tf4805393s177.html#a13747745 >>> >> Sent from the Maven - Users mailing list archive at Nabble.com. >>> >> >>> >> >>> >> --------------------------------------------------------------------- >>> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >>> >> >>> > >>> > --------------------------------------------------------------------- >>> > To unsubscribe, e-mail: [EMAIL PROTECTED] >>> > For additional commands, e-mail: [EMAIL PROTECTED] >>> > >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/-M2--jaxws-maven-plugin-vs.-ant-task-using-wsgen-tf4805393s177.html#a13764783 >>> >>> Sent from the Maven - Users mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- View this message in context: http://www.nabble.com/-M2--jaxws-maven-plugin-vs.-ant-task-using-wsgen-tf4805393s177.html#a13792006 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]