Sonar maven plugin fails to download the JDBC driver - maven-2

I've started using the sonar maven plugin (and sonar i general). Sonar is installed on another server, and can be successfully accessed in the url http://host:8080/sonar. The configuration in the pom.xml is as follows:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>1.0-beta-2</version>
<configuration>
<sonar.host.url>http://host:8080/sonar</sonar.host.url>
</configuration>
</plugin>
Edit
I've switch the sonar.host.url with sonarHostUrl as well, to no avail.
(I'm still using the 1.0-beta as 2.0 require maven 3 which we haven't switched to yet)
The sonar webapp is configured also with the right properties:
sonar.web.host: host
sonar.web.port: 8080
sonar.web.context: /sonar
When I run the sonar maven plugin (mvn sonar:sinar) here is the output. It seems that even though I've configured the location properly, the sonar still looks for the default http://localhost:9000/ installation.
[INFO] Scanning for projects...
Downloading: http://host/nexus/content/groups/public/org/codehaus/mojo/sonar-maven-plugin/1.0-beta-2/sonar-maven-plugin-1.0-beta-2.pom
6K downloaded (sonar-maven-plugin-1.0-beta-2.pom)
Downloading: http://host/nexus/content/groups/public/org/codehaus/mojo/sonar-maven-plugin/1.0-beta-2/sonar-maven-plugin-1.0-beta-2.jar
13K downloaded (sonar-maven-plugin-1.0-beta-2.jar)
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Webapp
[INFO] task-segment: [sonar:sonar] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [sonar:sonar {execution: default-cli}]
[INFO] Sonar host: http://host:8080/sonar
[INFO] Sonar version: 2.8
[INFO] Execute: org.codehaus.sonar:sonar-maven-plugin:2.8:sonar
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-maven-plugin/2.8/sonar-maven-plugin-2.8.pom
1K downloaded (sonar-maven-plugin-2.8.pom)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar/2.8/sonar-2.8.pom
33K downloaded (sonar-2.8.pom)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-maven-plugin/2.8/sonar-maven-plugin-2.8.jar
7K downloaded (sonar-maven-plugin-2.8.jar)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-batch/2.8/sonar-batch-2.8.pom
2K downloaded (sonar-batch-2.8.pom)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-core/2.8/sonar-core-2.8.pom
3K downloaded (sonar-core-2.8.pom)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-plugin-api/2.8/sonar-plugin-api-2.8.pom
6K downloaded (sonar-plugin-api-2.8.pom)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-check-api/2.8/sonar-check-api-2.8.pom
736b downloaded (sonar-check-api-2.8.pom)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-colorizer/2.8/sonar-colorizer-2.8.pom
1K downloaded (sonar-colorizer-2.8.pom)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-channel/2.8/sonar-channel-2.8.pom
1K downloaded (sonar-channel-2.8.pom)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-duplications/2.8/sonar-duplications-2.8.pom
1K downloaded (sonar-duplications-2.8.pom)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-graph/2.8/sonar-graph-2.8.pom
1K downloaded (sonar-graph-2.8.pom)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-squid/2.8/sonar-squid-2.8.pom
2K downloaded (sonar-squid-2.8.pom)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-deprecated/2.8/sonar-deprecated-2.8.pom
1K downloaded (sonar-deprecated-2.8.pom)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-java-api/2.8/sonar-java-api-2.8.pom
953b downloaded (sonar-java-api-2.8.pom)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-batch/2.8/sonar-batch-2.8.jar
126K downloaded (sonar-batch-2.8.jar)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-core/2.8/sonar-core-2.8.jar
69K downloaded (sonar-core-2.8.jar)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-plugin-api/2.8/sonar-plugin-api-2.8.jar
372K downloaded (sonar-plugin-api-2.8.jar)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-check-api/2.8/sonar-check-api-2.8.jar
8K downloaded (sonar-check-api-2.8.jar)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-colorizer/2.8/sonar-colorizer-2.8.jar
32K downloaded (sonar-colorizer-2.8.jar)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-channel/2.8/sonar-channel-2.8.jar
15K downloaded (sonar-channel-2.8.jar)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-duplications/2.8/sonar-duplications-2.8.jar
70K downloaded (sonar-duplications-2.8.jar)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-graph/2.8/sonar-graph-2.8.jar
27K downloaded (sonar-graph-2.8.jar)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-squid/2.8/sonar-squid-2.8.jar
60K downloaded (sonar-squid-2.8.jar)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-deprecated/2.8/sonar-deprecated-2.8.jar
59K downloaded (sonar-deprecated-2.8.jar)
Downloading: http://host/nexus/content/groups/public/org/codehaus/sonar/sonar-java-api/2.8/sonar-java-api-2.8.jar
8K downloaded (sonar-java-api-2.8.jar)
[INFO] [sonar:sonar {execution: default-sonar}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Can not execute Sonar
Embedded error: Fail to download the file: http://localhost:9000/deploy/jdbc-driver.jar (no proxy)
Connection refused: connect
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33 seconds
[INFO] Finished at: Wed Jun 01 10:53:33 IDT 2011
[INFO] Final Memory: 13M/33M
[INFO] ------------------------------------------------------------------------
Any idea how to solve this?

Well, my configuration was wrong. You shouldn't have any <configuration> inside the plugin definition, but rather a <properties> block with the Sonar properties:
<properties>
<sonar.host.url>http://host:8080/sonar</sonar.host.url>
<sonar.jdbc.url>jdbc:mysql://host:3306/sonar</sonar.jdbc.url>
<sonar.jdbc.username>sonardb</sonar.jdbc.username>
<sonar.jdbc.password>sonardbpassword</sonar.jdbc.password>
<sonar.jdbc.driver>com.mysql.jdbc.Driver</sonar.jdbc.driver>
</properties>
Thanks to Freddy Mallet for pointing it out.

add in maven settings.xml the next code:
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!-- EXAMPLE FOR MYSQL -->
<sonar.jdbc.url>jdbc:mysql://localhost:3306/sonar</sonar.jdbc.url>
<sonar.jdbc.driver>com.mysql.jdbc.Driver</sonar.jdbc.driver>
<sonar.jdbc.username>root</sonar.jdbc.username>
<sonar.jdbc.password>1234</sonar.jdbc.password>
<!-- optional URL to server. Default value is http://localhost:9000 -->
<sonar.host.url>
http://localhost:9000
</sonar.host.url>
</properties>
</profile>

Related

How to get 'mvn lagom:runAll' to get my service listening on a port?

I was having problems getting my first service to run and decided to add the hello-api and hello-impl projects from the lagom Maven archtype project to see if it would work. It did but mine do not.
Background
Since other team members are pure Java developers, I was trying to avoid leveraging sbt and activator. Thus, the objective is that everything works in maven.
Here's a snippet of the 'mvn install' script output to show the other services built.
$ mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Archetype - mai-svcs
[INFO] mai-svc-common
[INFO] mai-actors-api <======= WANT THE SERVICE FOR THIS ONE TO RUN
[INFO] mai-namespace-api
[INFO] mai-actors-impl
[INFO] mai-namespace-impl
[INFO] mai-i18n-phrases-api
[INFO] hello-api
[INFO] hello-impl
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Archetype - mai-svcs 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Archetype - mai-svcs ............................... SUCCESS [ 2.774 s]
[INFO] mai-svc-common ..................................... SUCCESS [ 7.190 s]
[INFO] mai-actors-api ..................................... SUCCESS [ 24.706 s]
[INFO] mai-namespace-api .................................. SUCCESS [ 12.628 s]
[INFO] mai-actors-impl .................................... SUCCESS [ 29.061 s]
[INFO] mai-namespace-impl ................................. SUCCESS [ 21.294 s]
[INFO] mai-i18n-phrases-api ............................... SUCCESS [ 22.091 s]
[INFO] hello-api .......................................... SUCCESS [ 3.546 s]
NOTES: An MAIActorsModule class analogous to the HelloModule class was created and the application.conf file added in the src/main/resources folder.
When the command 'mvn lagom:runAll' is issued, initially, the services are the hello service port is logged but no other service's port is.
$ mvn lagom:runAll
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Archetype - mai-svcs
[INFO] mai-svc-common
[INFO] mai-actors-api
[INFO] mai-namespace-api
[INFO] mai-actors-impl
[INFO] mai-namespace-impl
[INFO] mai-i18n-phrases-api
[INFO] hello-api
[INFO] hello-impl
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Archetype - mai-svcs 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- lagom-maven-plugin:1.2.1:runAll (default-cli) # mai-svcs ---
[INFO] Starting Kafka
[INFO] Starting Cassandra
.[INFO] Did not find Netty's native epoll transport in the classpath, defaulting to NIO.
....[INFO] Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
[INFO] New Cassandra host /127.0.0.1:4000 added
[INFO] Cassandra server running at 127.0.0.1:4000
[INFO] Service locator is running at http://localhost:8000
[INFO] Service gateway is running at http://localhost:9000
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\lusp\mai_svcs\mai-svcs\hello-api\src\main\resources
[INFO] Nothing to compile - all classes are up to date
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
**[INFO] Nothing to compile - all classes are up to date
[INFO] Service hello-impl listening for HTTP on 0:0:0:0:0:0:0:0:57797
// ----- NO ENTRY FOR mai-actors-impl!!! -----
[INFO] (Service started, press enter to stop and go back to the console...)**
What step(s) did I miss?
Each of your <service>-impl projects need to:
Invoke the lagom-maven-plugin
Configure it with the property <lagomService>true</lagomService>
Here's an example snippet of what you need to add to your pom.xml file in each service implementation project:
<build>
<plugins>
<plugin>
<groupId>com.lightbend.lagom</groupId>
<artifactId>lagom-maven-plugin</artifactId>
<configuration>
<lagomService>true</lagomService>
</configuration>
</plugin>
</plugins>
</build>
The Lagom documentation has more details in the page titled Defining a Lagom build

Jenkins not running TestNG Tests

I've got an TestNG project which was running on Jenkins. For some reason which I don't know it stopped running the tests. It compiles perfectly but it doesn't run the the test. Here is the output of a run:
<===[JENKINS REMOTING CAPACITY]===>channel started
log4j:WARN No appenders could be found for logger
(org.apache.commons.beanutils.converters.BooleanConverter).
log4j:WARN Please initialize the log4j system properly.
Executing Maven: -B -f C:\Java\jenkins-1.523\workspace\TEST_HEAD_NOEXPORT\CMS-WEB SELENIUM-WEB-TEST\pom.xml clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building TEST-CMS-WEB 0.0.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # Web ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) # Web ---
[debug] execute contextualize
[INFO] Using 'cp1252' encoding to copy filtered resources.
[INFO] Copying 69 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # Web ---
[INFO] Compiling 73 source files to C:\Java\jenkins-1.523\workspace\TEST_HEAD_NOEXPORT\CMS-WEB\SELENIUM-WEB-TEST\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) # Web ---
[debug] execute contextualize
[INFO] Using 'cp1252' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Java\jenkins-1.523\workspace\TEST_HEAD_NOEXPORT\CMS-WEB\SELENIUM-WEB-TEST\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) # Web ---
[INFO] Compiling 2 source files to C:\Java\jenkins-1.523\workspace\TEST_HEAD_NOEXPORT\CMS-WEB\SELENIUM-WEB-TEST\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # Web ---
[JENKINS] Recording test results
[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) # Web ---
[INFO] Building jar: C:\Java\jenkins-1.523\workspace\TEST_HEAD_NOEXPORT\CMS-WEB\SELENIUM-WEB-TEST\target\Web-0.0.1.jar
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) # Web ---
[INFO] Installing C:\Java\jenkins-1.523\workspace\TEST_HEAD_NOEXPORT\CMS-WEB\SELENIUM-WEB-TEST\target\Web-0.0.1.jar to C:\.m2\repository\Test\Web\0.0.1\Web-0.0.1.jar
[INFO] Installing C:\Java\jenkins-1.523\workspace\TEST_HEAD_NOEXPORT\CMS-WEB\SELENIUM-WEB-TEST\pom.xml to C:\.m2\repository\Test\Web\0.0.1\Web-0.0.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.211s
[INFO] Finished at: Wed Jan 15 14:21:03 UYST 2014
[INFO] Final Memory: 26M/310M
[INFO] ------------------------------------------------------------------------
[JENKINS] Archiving C:\Java\jenkins-1.523\workspace\TEST_HEAD_NOEXPORT\CMS-WEB\SELENIUM-WEB-TEST\pom.xml to C:\Java\jenkins-1.523\jobs\TEST_HEAD_NOEXPORT\modules\Test$Web\builds\2014-01-15_14-20-56\archive\Test\Web\0.0.1\Web-0.0.1.pom
[JENKINS] Archiving C:\Java\jenkins-1.523\workspace\TEST_HEAD_NOEXPORT\CMS-WEB\SELENIUM-WEB-TEST\target\Web-0.0.1.jar to C:\Java\jenkins-1.523\jobs\TEST_HEAD_NOEXPORT\modules\Test$Web\builds\2014-01-15_14-20-56\archive\Test\Web\0.0.1\Web-0.0.1.jar
Waiting for Jenkins to finish collecting data
If anyone knows what could be happening I would appreciate the help.
If your using Maven Surefire, did you correctly specify a "test include" filter? The test phase will search the packages in src/test/java for classes containing the #Test annotation. It's easy to misconfigure Maven for the location of the src/test/java directory and so just be careful and you will figure it out.
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M3</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
Include maven surefire plugin end of the properties & before the dependencies. Use your "TestNG" XML file name.Use above code.

maven issue - maven-resources-plugin

Getting following excepting while running "mvn clean install -DskipTests -U"
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] (derived-data) avalon Data Modules
[INFO] (data-affiliate-dynamic) avalon Dynamic Affiliate Data
[INFO] (data-external-id) Amazon ID Reference Data
[INFO] (data-products-raw) avalon Raw Product Data
[INFO] (data-product-images) avalon Product Image Data
[INFO] ------------------------------------------------------------------------
[INFO] Building (derived-data) avalon Data Modules
[INFO] task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing C:\svn\data\trunk\pom.xml to C:\Users\dinsolani\.m2\repository
\com\avalon\derived-data\3\derived-data-3.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building (data-affiliate-dynamic) avalon Dynamic Affiliate Data
[INFO] task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] artifact com.avalon:maven-resources-plugin: checking for updates from c
entral
[INFO] snapshot com.avalon:maven-resources-plugin:4.66-SNAPSHOT: checking for
updates from central
[INFO] snapshot com.avalon:tools-maven-plugins:4.66-SNAPSHOT: checking for upd
ates from central
Downloading: http://repo.avalon.com/content/groups/private/com/avalon/tools-
maven-plugins/4.66-SNAPSHOT/tools-maven-plugins-4.66-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: null:maven-resources-plugin:maven-plugin:null
Reason: Cannot find parent: com.avalon:tools-maven-plugins for project: null:m
aven-resources-plugin:maven-plugin:null for project null:maven-resources-plugin:
maven-plugin:null
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Thu Oct 13 19:50:23 IST 2011
[INFO] Final Memory: 13M/981M
[INFO] ------------------------------------------------------------------------
Now I really looking for some solution or atleast some workaround for this issue.
Can I manually download & place somewhere
Is there any public repository, which I can use?
Here is the pom for the data-affiliate-dynamic module:
<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>
<parent>
<groupId>com.avalon</groupId>
<artifactId>derived-data</artifactId>
<version>3</version>
</parent>
<artifactId>data-affiliate-dynamic</artifactId>
<packaging>pom</packaging>
<name>(${project.artifactId})avalonDynamicAffiliateData</name>
<build>
<plugins>
<plugin>
<groupId>com.avalon</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<include>var/affiliate/${sourceId}*-dynamic-*.xml</include>
</configuration>
</plugin>
</plugins>
</build>
</project>

Getting start with Maven

I am very new to Maven.I have installed the maven on my local machine.
After installation for trial basis i was trying to execute mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.mycompany.app -DartifactId=my-app
for that i am getting below error message.
C:\work\maven2.2\bin>mvn archetype:generate -DarchetypeGroupId=org.apache
.maven.archetypes -DgroupId=com.mycompany.app -DartifactId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retri
eved from repository: central due to an error: Error transferring file: repo1.ma
ven.org
[INFO] Repository 'central' will be blacklisted
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exi
st or no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Aug 30 11:45:49 IST 2011
[INFO] Final Memory: 1M/59M
[INFO] ------------------------------------------------------------------------
Can any one help me if i need to have a prerequisite setting for the same?
Thanks in advance. :)
It's comand is correct and on my computer run correctly. But you have Error transferring file. So on this branch you may read about this error.
EDIT:
Tutorials:
First of all read this article : maven in 5 minutes
For more information : Maven Getting Started Guide
The second article will give you all you need to understend maven.

Maven adds '-windows' to the artifact name when downloading a snapshot artifact

I have added a bunch of artifacts to my local Nexus Maven repository.
When I build my project I get the following error:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building pronto-web Java EE 6 Webapp
[INFO] task-segment: [verify]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 4 resources
[INFO] [compiler:compile {execution: default-compile}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 1 source file to C:\Source\Pronto\pronto\pronto-web\target\classes
[INFO] [antrun:run {execution: remove-javax}]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] [gwt:compile {execution: default}]
[INFO] using GWT jars from project dependencies : 20100714-SNAPSHOT
[WARNING] You should not declare gwt-dev as a project dependency. This may introduce complex dependency conflicts
Downloading: http ://mercury:8980/nexus/content/groups/public-snapshots/com/google/gwt/gwt-dev/20100714-SNAPSHOT/gwt-dev-20100714-20100715.053026-1-windows.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] artifact not found - Unable to locate resource in repository
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.google.gwt -DartifactId=gwt-dev -Dversion=20100714-20100715.053026-1 -Dclassifier=windows -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.google.gwt -DartifactId=gwt-dev >-Dversion=20100714-20100715.053026-1 -Dclassifier=windows -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
com.google.gwt:gwt-dev:jar:20100714-20100715.053026-1
from the specified remote repositories:
releases (http://mercury:8980/nexus/content/groups/public),
all (http://mercury:8980/nexus/content/groups/all),
snapshots (http://mercury:8980/nexus/content/groups/public-snapshots)
http ://mercury:8980/nexus/content/groups/public-snapshots/com/google/gwt/gwt-dev/20100714-SNAPSHOT/gwt-dev-20100714-20100715.053026-1-windows.jar
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Thu Jul 15 08:57:29 CEST 2010
[INFO] Final Memory: 50M/614M
[INFO] ------------------------------------------------------------------------
Has anyone an idea why maven thinks there should be '-windows' added to the artifact name?
(Downloading: http ://mercury:8980/nexus/content/groups/public-snapshots/com/google/gwt/gwt-dev/20100714-SNAPSHOT/gwt-dev-20100714-20100715.053026-1-windows.jar)
If I browse the repository it contains the artifact but without the '-windows' suffix.
Older versions of this artifact were platform dependent and had 'windows' or 'linux' or 'mac' as classifier but recent versions are platform independent and I don't have any such classifier in my poms.
PS:
I added a space in each URL between the protocol and the colon because I didn't yet receive enough reputation to post links.
The following dependency must be declared somewhere, very likely as a transitive dependency:
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>20100714-SNAPSHOT</version>
<classifier>windows</classifier>
<dependency>
I suspect a bad pom if artifacts are not platform dependent anymore.
Is there any more recent snapshot you can use?