Can't compile widgetset

I’m getting the following error when trying to compile the widgetset.

ERROR] Failed to execute goal com.vaadin:vaadin-maven-plugin:1.0.1:update-widgetset (default) on project -ui-widgetset: Execution default of goal com.vaadin:vaadin-maven-plugin:1.0.1:update-widgetset failed: Plugin com.vaadin:vaadin-maven-plugin:1.0.1 or one of its dependencies could not be resolved: Failure to find org.codehaus.mojo:gwt-maven-plugin:jar:1.3-SNAPSHOT in http://xxxxxxx.com/content/groups/ep-mck-dex was cached in the local repository, resolution will not be reattempted until the update interval of ep-dex-repo has elapsed or updates are forced -> [Help 1]

There are two things that don’t make sense to me.

  1. This is working just fine on my build server which is using the same maven repository. (The one that I redacted above)
  2. I am not declaring a dependency on gwt-maven-plugin.jar vs 1.3 and it doesn’t show up in my dependency tree

[INFO]
 com.xxxxxxx-widgetset:jar:0.0.2-SNAPSHOT
[INFO]
 +- com.google:gwt-user:jar:2.3.0:provided
[INFO]
 +- com.vaadin:vaadin:jar:6.6.6:compile
[INFO]
 +- org.vaadin.addons:superimmediatetextfield:jar:1.0.0:compile
[INFO]
 +- org.vaadin.addons:searchfield:jar:1.1.0:compile
[INFO]
 +- org.vaadin.addons:tokenfield:jar:1.0:compile
[INFO]
 +- org.vaadin.addons:animator:jar:1.6.3:compile
[INFO]
 +- org.vaadin.addons:switch:jar:0.94:compile
[INFO]
 +- javax.validation:validation-api:jar:1.0.0.GA:provided (scope not updated to compile)
[INFO]
 +- javax.validation:validation-api:jar:sources:1.0.0.GA:provided
[INFO]
 +- javax.servlet:servlet-api:jar:2.5:provided
[INFO]
 +- org.bouncycastle:bcprov-jdk16:jar:1.46:compile
[INFO]
 +- taglibs:standard:jar:1.1.2:compile
[INFO]
 +- javassist:javassist:jar:3.4.GA:compile
[INFO]
 +- org.slf4j:slf4j-api:jar:1.6.1:compile
[INFO]
 +- org.slf4j:slf4j-log4j12:jar:1.6.1:runtime (scope not updated to compile)
[INFO]
 +- log4j:log4j:jar:1.2.14:compile
[INFO]
 +- hibernate:hibernate-tools:jar:3.2.3.GA:compile
[INFO]
 |  +- org.beanshell:bsh:jar:2.0b4:compile
[INFO]
 |  +- freemarker:freemarker:jar:2.3.8:compile
[INFO]
 |  \- org.hibernate:jtidy:jar:r8-20060801:compile
[INFO]
 +- org.hibernate:hibernate-entitymanager:jar:3.6.7.Final:compile
[INFO]
 |  \- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
[INFO]
 +- org.hibernate:hibernate-core:jar:3.6.7.Final:compile
[INFO]
 |  +- antlr:antlr:jar:2.7.6:compile
[INFO]
 |  +- dom4j:dom4j:jar:1.6.1:compile
[INFO]
 |  +- org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final:compile
[INFO]
 |  \- javax.transaction:jta:jar:1.1:compile
[INFO]
 +- org.hibernate:hibernate-search:jar:3.4.1.Final:compile
[INFO]
 |  +- org.hibernate:hibernate-search-analyzers:jar:3.4.1.Final:compile
[INFO]
 |  |  +- org.apache.lucene:lucene-analyzers:jar:3.1.0:compile
[INFO]
 |  |  \- org.apache.solr:solr-analysis-extras:jar:3.1.0:compile
[INFO]
 |  |     +- org.apache.solr:solr-core:jar:3.1.0:compile
[INFO]
 |  |     |  +- org.apache.solr:solr-solrj:jar:3.1.0:compile
[INFO]
 |  |     |  +- org.apache.lucene:lucene-highlighter:jar:3.1.0:compile
[INFO]
 |  |     |  +- org.apache.lucene:lucene-memory:jar:3.1.0:compile
[INFO]
 |  |     |  +- org.apache.lucene:lucene-misc:jar:3.1.0:compile
[INFO]
 |  |     |  +- org.apache.lucene:lucene-spatial:jar:3.1.0:compile
[INFO]
 |  |     |  +- org.apache.lucene:lucene-spellchecker:jar:3.1.0:compile
[INFO]
 |  |     |  +- org.apache.solr:solr-commons-csv:jar:3.1.0:compile
[INFO]
 |  |     |  \- commons-codec:commons-codec:jar:1.4:compile
[INFO]
 |  |     +- org.apache.lucene:lucene-smartcn:jar:3.1.0:compile
[INFO]
 |  |     \- org.apache.lucene:lucene-stempel:jar:3.1.0:compile
[INFO]
 |  \- org.apache.lucene:lucene-core:jar:3.1.0:compile
[INFO]
 +- org.hibernate:hibernate-validator:jar:4.2.0.Final:compile
[INFO]
 +- net.sf.ehcache:ehcache:pom:2.4.5:compile
[INFO]
 |  +- net.sf.ehcache:ehcache-core:jar:2.4.5:compile
[INFO]
 |  \- net.sf.ehcache:ehcache-terracotta:jar:2.4.5:compile
[INFO]
 |     \- org.terracotta:terracotta-toolkit-1.3-runtime:jar:3.2.0:compile
[INFO]
 +- org.springframework:spring-beans:jar:3.0.6.RELEASE:compile
[INFO]
 |  \- org.springframework:spring-core:jar:3.0.6.RELEASE:compile
[INFO]
 +- org.springframework:spring-context:jar:3.0.6.RELEASE:compile
[INFO]
 |  +- org.springframework:spring-aop:jar:3.0.6.RELEASE:compile
[INFO]
 |  +- org.springframework:spring-expression:jar:3.0.6.RELEASE:compile
[INFO]
 |  \- org.springframework:spring-asm:jar:3.0.6.RELEASE:compile
[INFO]
 +- org.springframework:spring-tx:jar:3.0.6.RELEASE:compile
[INFO]
 |  \- aopalliance:aopalliance:jar:1.0:compile
[INFO]
 +- org.springframework:spring-orm:jar:3.0.6.RELEASE:compile
[INFO]
 +- org.springframework.security:spring-security-core:jar:3.0.7.RELEASE:compile
[INFO]
 |  \- org.aspectj:aspectjrt:jar:1.6.8:compile
[INFO]
 +- org.springframework.security:spring-security-config:jar:3.0.7.RELEASE:compile
[INFO]
 +- org.springframework.security:spring-security-web:jar:3.0.7.RELEASE:compile
[INFO]
 |  \- org.springframework:spring-web:jar:3.0.6.RELEASE:compile
[INFO]
 +- org.springframework.security:spring-security-acl:jar:3.0.7.RELEASE:compile
[INFO]
 |  \- org.springframework:spring-context-support:jar:3.0.6.RELEASE:compile
[INFO]
 +- org.springframework:spring-webmvc:jar:3.0.6.RELEASE:compile
[INFO]
 +- org.springframework:spring-aspects:jar:3.0.6.RELEASE:compile
[INFO]
 +- org.springframework:spring-test:jar:3.0.6.RELEASE:compile
[INFO]
 +- org.springframework:spring-jdbc:jar:3.0.6.RELEASE:compile
[INFO]
 +- org.springframework:spring-oxm:jar:3.0.6.RELEASE:compile
[INFO]
 +- org.springframework.ws:spring-xml:jar:2.0.2.RELEASE:compile
[INFO]
 +- org.springframework.ws:spring-ws-core:jar:2.0.2.RELEASE:compile
[INFO]
 |  \- wsdl4j:wsdl4j:jar:1.6.1:compile
[INFO]
 +- org.apache.xmlbeans:xmlbeans:jar:2.4.0:compile
[INFO]
 |  \- stax:stax-api:jar:1.0.1:compile
[INFO]
 +- org.codehaus.castor:castor-xml:jar:1.3.1:compile
[INFO]
 |  +- org.codehaus.castor:castor-core:jar:1.3.1:compile
[INFO]
 |  \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO]
 +- junit:junit:jar:4.8.1:compile
[INFO]
 +- postgresql:postgresql:jar:9.0-801.jdbc4:compile
[INFO]
 +- org.liquibase:liquibase-core:jar:2.0.1:compile
[INFO]
 +- org.slf4j:jcl-over-slf4j:jar:1.6.1:runtime
[INFO]
 +- commons-io:commons-io:jar:2.0.1:compile
[INFO]
 +- commons-collections:commons-collections:jar:3.2.1:compile
[INFO]
 +- commons-lang:commons-lang:jar:2.1:compile
[INFO]
 +- net.sf.opencsv:opencsv:jar:2.0:compile
[INFO]
 +- org.aspectj:aspectjweaver:jar:1.6.9:compile
[INFO]
 +- org.aspectj:aspectjlib:jar:1.6.2:compile
[INFO]
 +- com.thoughtworks.xstream:xstream:jar:1.3.1:compile
[INFO]
 |  \- xpp3:xpp3_min:jar:1.1.4c:compile
[INFO]
 +- org.jasypt:jasypt:jar:1.7.1:compile
[INFO]
 +- cglib:cglib:jar:2.2:compile
[INFO]
 |  \- asm:asm:jar:3.1:compile
[INFO]
 +- org.vaadin.addons:clickable-custom-layout:jar:0.9.2:compile
[INFO]
 +- org.apache.wicket:wicket:jar:1.4.18:compile
[INFO]
 +- org.apache.wicket:wicket-datetime:jar:1.4.18:compile
[INFO]
 +- net.sf.dozer:dozer:jar:5.3.2:compile
[INFO]
 |  \- commons-beanutils:commons-beanutils:jar:1.8.3:compile
[INFO]
 +- org.quartz-scheduler:quartz:jar:1.8.3:compile
[INFO]
 +- com.lowagie:itext:jar:2.1.7:compile
[INFO]
 |  +- bouncycastle:bcmail-jdk14:jar:138:compile
[INFO]
 |  +- bouncycastle:bcprov-jdk14:jar:138:compile
[INFO]
 |  \- org.bouncycastle:bctsp-jdk14:jar:1.38:compile
[INFO]
 |     +- org.bouncycastle:bcprov-jdk14:jar:1.38:compile
[INFO]
 |     \- org.bouncycastle:bcmail-jdk14:jar:1.38:compile
[INFO]
 +- joda-time:joda-time:jar:1.6.2:compile
[INFO]
 +- xalan:xalan:jar:2.7.1:compile
[INFO]
 |  \- xalan:serializer:jar:2.7.1:compile
[INFO]
 +- xerces:xercesImpl:jar:2.8.1:compile
[INFO]
 +- xml-apis:xml-apis:jar:1.3.03:compile
[INFO]
 +- jaxen:jaxen:jar:1.1.1:compile
[INFO]
 |  +- jdom:jdom:jar:1.0:compile
[INFO]
 |  \- xom:xom:jar:1.0:compile
[INFO]
 |     +- xerces:xmlParserAPIs:jar:2.6.2:compile
[INFO]
 |     \- com.ibm.icu:icu4j:jar:2.6.1:compile
[INFO]
 +- javax.mail:mail:jar:1.4.2:compile
[INFO]
 |  \- javax.activation:activation:jar:1.1:compile
[INFO]
 +- javax.servlet:jstl:jar:1.2:compile
[INFO]
 +- javax.annotation:jsr250-api:jar:1.0:compile
[INFO]
 +- org.apache.poi:poi:jar:3.7:compile
[INFO]
 +- org.apache.poi:poi-ooxml:jar:3.7:compile
[INFO]
 |  \- org.apache.poi:poi-ooxml-schemas:jar:3.7:compile
[INFO]
 |     \- org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0:compile
[INFO]
 +- org.easymock:easymock:jar:3.0:test
[INFO]
 |  +- cglib:cglib-nodep:jar:2.2:test
[INFO]
 |  \- org.objenesis:objenesis:jar:1.2:test
[INFO]
 +- org.easymock:easymockclassextension:jar:2.4:test
[INFO]
 +- org.powermock:powermock-module-test-easymock-junit48:jar:1.4.9:test
[INFO]
 |  \- org.powermock:powermock-api-easymock:jar:1.4.9:test
[INFO]
 |     \- org.powermock:powermock-api-support:jar:1.4.9:test
[INFO]
 +- org.powermock:powermock-module-junit4:jar:1.4.9:test
[INFO]
 |  \- org.powermock:powermock-module-junit4-common:jar:1.4.9:test
[INFO]
 |     +- org.powermock:powermock-core:jar:1.4.9:test
[INFO]
 |     |  \- org.javassist:javassist:jar:3.14.0-GA:test
[INFO]
 |     \- org.powermock:powermock-reflect:jar:1.4.9:test
[INFO]
 +- com.google.guava:guava:jar:r09:compile
[INFO]
 +- commons-configuration:commons-configuration:jar:1.6:compile
[INFO]
 |  +- commons-digester:commons-digester:jar:1.8:compile
[INFO]
 |  \- commons-beanutils:commons-beanutils-core:jar:1.8.0:compile
[INFO]
 +- com.h2database:h2:jar:1.3.158:compile
[INFO]
 \- com.oracle:ojdbc14:jar:10.2.0.4.0:compile

The other odd thing is that is makes it all the way through the compile process before throwing this error.

INFO]    Compile of permutations succeeded
[INFO]
 Linking into /Users/dferguson/Documents/engineering/workspace/dex/dex-ui-widgetset/target/classes/VAADIN/widgetsets/com.mckesson.dex.ui.widgetset.DexWidgetSet
[INFO]
    Link succeeded
[INFO]
    Compilation succeeded -- 96.923s
[INFO]
 
[INFO]
 --- vaadin-maven-plugin:1.0.1:update-widgetset (default) @ dex-ui-widgetset ---
[WARNING]
 The POM for org.codehaus.mojo:gwt-maven-plugin:jar:1.3-SNAPSHOT is missing, no dependency information available
[INFO]
 ------------------------------------------------------------------------
[INFO]
 BUILD FAILURE
[INFO]
 ------------------------------------------------------------------------

I am struggling with such problem as well.

Have your work out how to fix it?

Cheers!

Sean

Hi,

I found a solution.

The reason is that mvn will only compile the dependencies which include in pom.xml.