users@wadl.java.net

Re: WADL maven plugin dependency does not resolve

From: Wilfred Springer <wilfredspringer_at_gmail.com>
Date: Fri, 20 Feb 2009 09:13:17 +0100

Hi Mark,
AFAICT, the Maven WADL Plugin has never been uploaded to a public
repository. wadl.dev.java.net has its own snapshot repository, but it is not
referenced in the example. So if you never built the WADL project yourself,
locally, it most likely will not be able to locate those files.

So, I suggest that you check out the sources of wadl.dev.java.net yourself
first. I expect that will do the trick for you. Meanwhile I will try to
remember the location of our own snapshot repository, and update the site to
make sure the snapshot repository is referenced.

Thanks,

Wilfred



2009/2/20 Mark Petrovic <mark_at_petrovic.org>

> Good day. Sorry for the large splats of data that follow - it's the bare
> minimum of data I felt needed to be posted.
> I have some evidence that the dependency of the maven plugin for the WADL
> compiler does not resolve. This config:
>
> https://wadl.dev.java.net/wadl2java.html
>
> with
>
> <dependency>
> <groupId>org.jvnet.ws.wadl</groupId>
> <artifactId>wadl-core</artifactId>
> <version>1.0-SNAPSHOT</version>
> </dependency>
>
> produces the following output upon executing the install lifecycle:
>
> $ mvn install
> ...
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] snapshot org.jvnet.ws.wadl:wadl-core:1.0-SNAPSHOT: checking for
> updates from glassfish-maven2-repository.dev.java.net
> [INFO] snapshot org.jvnet.ws.wadl:wadl-core:1.0-SNAPSHOT: checking for
> updates from maven2-repository.dev.java.net
> [INFO] snapshot org.jvnet.ws.wadl:wadl-core:1.0-SNAPSHOT: checking for
> updates from maven-repository.dev.java.net
> Downloading:
> http://download.java.net/maven/glassfish//org/jvnet/ws/wadl/wadl-core/1.0-SNAPSHOT/wadl-core-1.0-SNAPSHOT.pom
> Downloading:
> http://download.java.net/maven/2//org/jvnet/ws/wadl/wadl-core/1.0-SNAPSHOT/wadl-core-1.0-SNAPSHOT.pom
> Downloading:
> http://download.java.net/maven/1/org.jvnet.ws.wadl/poms/wadl-core-1.0-SNAPSHOT.pom
> Downloading:
> http://download.java.net/maven/glassfish//org/jvnet/ws/wadl/wadl-core/1.0-SNAPSHOT/wadl-core-1.0-SNAPSHOT.jar
> Downloading:
> http://download.java.net/maven/2//org/jvnet/ws/wadl/wadl-core/1.0-SNAPSHOT/wadl-core-1.0-SNAPSHOT.jar
> Downloading:
> http://download.java.net/maven/1/org.jvnet.ws.wadl/jars/wadl-core-1.0-SNAPSHOT.jar
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.jvnet.ws.wadl:wadl-core:jar:1.0-SNAPSHOT
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.jvnet.ws.wadl
> -DartifactId=wadl-core -Dversion=1.0-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the file
> there:
> mvn deploy:deploy-file -DgroupId=org.jvnet.ws.wadl
> -DartifactId=wadl-core -Dversion=1.0-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) org.carpediem.weather:wxtutorial:jar:1.0
> 2) org.jvnet.ws.wadl:wadl-core:jar:1.0-SNAPSHOT
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
> org.carpediem.weather:wxtutorial:jar:1.0
>
> from the specified remote repositories:
> maven-repository.dev.java.net (http://download.java.net/maven/1),
> maven2-repository.dev.java.net (http://download.java.net/maven/2/),
> central (http://repo1.maven.org/maven2),
> glassfish-maven2-repository.dev.java.net (
> http://download.java.net/maven/glassfish/)
> ...
>
>
> Here is the simple application POM:
>
> <?xml version="1.0"?>
> <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.o
> rg/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>org.carpediem.weather</groupId>
> <artifactId>wxtutorial</artifactId>
> <packaging>jar</packaging>
> <version>1.0</version>
> <name>wxtutorial</name>
> <url>http://maven.apache.org</url>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.1</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.jvnet.ws.wadl</groupId>
> <artifactId>wadl-core</artifactId>
> <version>1.0-SNAPSHOT</version>
> </dependency>
> </dependencies>
> <repositories>
> <repository>
> <id>glassfish-maven2-repository.dev.java.net</id>
> <name>Java.net Maven 2 Repository for GlassFish</name>
> <url>http://download.java.net/maven/glassfish/</url>
> <layout>default</layout>
> </repository>
> <repository>
> <id>maven2-repository.dev.java.net</id>
> <name>Java.net Maven 2 Repository</name>
> <url>http://download.java.net/maven/2/</url>
> <layout>default</layout>
> </repository>
> <repository>
> <id>maven-repository.dev.java.net</id>
> <name>Java.net Maven 1 Repository (legacy)</name>
> <url>http://download.java.net/maven/1</url>
> <layout>legacy</layout>
> </repository>
> </repositories>
> <pluginRepositories>
> <pluginRepository>
> <id>maven2-repository.dev.java.net</id>
> <name>Java.net Repository for Maven</name>
> <url>http://download.java.net/maven/2/</url>
> <layout>default</layout>
> </pluginRepository>
> <pluginRepository>
> <id>maven-repository.dev.java.net</id>
> <name>Java.net Maven 1 Repository (legacy)</name>
> <url>http://download.java.net/maven/1</url>
> <layout>legacy</layout>
> </pluginRepository>
> </pluginRepositories>
> </project>
>
> Would someone be kind enough to point to where the plugin dependency is
> hosted? I could find no trace of it on mvnrepository.com searching for
> 'wadl'.
>
> Thanks.
>
> --
> Mark Petrovic
> mark_at_petrovic.org
> http://www.petrovic.org
>
>
>
>
>