You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2008/06/23 16:09:26 UTC

[jira] Commented: (MNG-3627) Maven complains for the lack of a test dependency even when skipping tests

    [ http://jira.codehaus.org/browse/MNG-3627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=139313#action_139313 ] 

Benjamin Bentmann commented on MNG-3627:
----------------------------------------

bq. so why complian if they are not around?
Skipping tests is a feature of the Compiler/Surefire plugin, not Maven. That is to say, these plugins are always executed (e.g. it's them who print "Skipping" on the console) and it's on their discretion to skip the tests by simply quitting their executions. Now, when the plugins are executed, Maven has already resolved the dependencies the plugin requires. That is, dependency resolution is performed by the Maven core beforehand and happens unconditionally, without considering any option of a particular plugin.

> Maven complains for the lack of a test dependency even when skipping tests
> --------------------------------------------------------------------------
>
>                 Key: MNG-3627
>                 URL: http://jira.codehaus.org/browse/MNG-3627
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.9
>            Reporter: Andrea Aime
>
> Trying to build GeoServer trunk without tests (-Dmaven.test.skip=true) we're getting an error message stating that some jars marked as test dependencies are not found. In particular, these are the tests jar of another module in the build, which is not getting built because of the test.skip setting and it's not already available on the repository.
> Yet mvn dependency:tree does report the following:
> {panel}
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'dependency'.
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Web Coverage Service 1.1.1 Module
> [INFO]    task-segment: [dependency:tree]
> [INFO] ------------------------------------------------------------------------
> [INFO] [dependency:tree]
> [INFO] org.geoserver:wcs1_1:jar:1.8.0-SNAPSHOT
> [INFO] +- org.geoserver:main:jar:1.8.0-SNAPSHOT:compile
> [INFO] |  +- org.geoserver:data:jar:1.8.0-SNAPSHOT:compile
> [INFO] |  |  +- org.geoserver:platform:jar:1.8.0-SNAPSHOT:compile
> [INFO] |  |  |  +- javax.media:jai_core:jar:1.1.3:compile
> [INFO] |  |  |  +- javax.media:jai_codec:jar:1.1.3:compile
> [INFO] |  |  |  \- javax.media:jai_imageio:jar:1.1:compile
> [INFO] |  |  +- org.geotools:gt-epsg-hsql:jar:2.5-SNAPSHOT:compile
> [INFO] |  |  +- org.geotools:gt-h2:jar:2.5-SNAPSHOT:compile
> [INFO] |  |  |  +- org.h2database:h2:jar:1.0-SNAPSHOT:compile
> [INFO] |  |  |  +- org.openplans:spatialdbbox:jar:1.0-SNAPSHOT:compile
> [INFO] |  |  |  \- mysql:mysql-connector-java:jar:5.1.5:compile
> [INFO] |  |  +- org.geotools:gt-property:jar:2.5-SNAPSHOT:compile
> [INFO] |  |  +- org.geotools.xsd:gt-xsd-gml2:jar:2.5-SNAPSHOT:compile
> [INFO] |  |  \- xml-apis:xml-apis-xerces:jar:2.7.1:compile
> [INFO] |  +- org.geoserver:ows:jar:1.8.0-SNAPSHOT:compile
> [INFO] |  |  +- org.acegisecurity:acegi-security:jar:1.0.3:compile
> [INFO] |  |  |  +- org.springframework:spring-jdbc:jar:2.5.2:compile (version managed from 1.2.8)
> [INFO] |  |  |  |  \- org.springframework:spring-tx:jar:2.5.2:compile
> [INFO] |  |  |  \- commons-codec:commons-codec:jar:1.3:compile
> [INFO] |  |  +- commons-lang:commons-lang:jar:2.1:compile
> [INFO] |  |  +- org.geotools.xsd:gt-xsd-core:jar:2.5-SNAPSHOT:compile
> [INFO] |  |  \- xpp3:xpp3:jar:1.1.3.4.O:compile
> [INFO] |  +- javax.servlet:servlet-api:jar:2.4:compile
> [INFO] |  +- org.restlet:org.restlet:jar:1.0.8:compile (version managed from 1.0.5)
> [INFO] |  +- org.restlet:org.restlet.ext.freemarker:jar:1.0.8:compile (version managed from 1.0.5)
> [INFO] |  +- com.noelios.restlet:com.noelios.restlet.ext.servlet:jar:1.0.8:compile (version managed from 1.0.5)
> [INFO] |  |  \- com.noelios.restlet:com.noelios.restlet:jar:1.0.8:compile
> [INFO] |  +- net.sf.json-lib:json-lib:jar:jdk13:2.1:compile
> [INFO] |  |  +- commons-collections:commons-collections:jar:3.1:compile
> [INFO] |  |  \- net.sf.ezmorph:ezmorph:jar:1.0.3:compile
> [INFO] |  +- struts:struts:jar:1.2.9:compile
> [INFO] |  |  \- antlr:antlr:jar:2.7.2:compile
> [INFO] |  +- xml-apis:xml-apis:jar:1.0.b2:compile
> [INFO] |  +- xerces:xercesImpl:jar:2.6.2:compile
> [INFO] |  +- xalan:xalan:jar:2.7.0:compile
> [INFO] |  +- commons-beanutils:commons-beanutils:jar:1.7.0:compile
> [INFO] |  +- commons-digester:commons-digester:jar:1.7:compile
> [INFO] |  +- commons-fileupload:commons-fileupload:jar:1.2.1:compile
> [INFO] |  +- commons-io:commons-io:jar:1.3.2:compile
> [INFO] |  +- commons-httpclient:commons-httpclient:jar:2.0:compile
> [INFO] |  +- commons-validator:commons-validator:jar:1.1.4:compile
> [INFO] |  +- org.freemarker:freemarker:jar:2.3.13:compile
> [INFO] |  +- oro:oro:jar:2.0.8:compile
> [INFO] |  +- org.geotools:gt-cql:jar:2.5-SNAPSHOT:compile
> [INFO] |  +- log4j:log4j:jar:1.2.14:compile
> [INFO] |  +- org.geotools:gt-coverage:jar:2.5-SNAPSHOT:compile
> [INFO] |  +- org.geotools:gt-validation:jar:2.5-SNAPSHOT:compile
> [INFO] |  |  \- org.geotools:gt-graph:jar:2.5-SNAPSHOT:compile
> [INFO] |  +- org.geotools:gt-data:jar:2.5-SNAPSHOT:compile
> [INFO] |  +- org.geotools:gt-jdbc:jar:2.5-SNAPSHOT:compile
> [INFO] |  |  \- commons-dbcp:commons-dbcp:jar:1.2.2:compile
> [INFO] |  +- org.geotools:gt-metadata:jar:2.5-SNAPSHOT:compile
> [INFO] |  |  +- java3d:vecmath:jar:1.3.1:compile
> [INFO] |  |  +- org.opengis:geoapi:jar:2.2-SNAPSHOT:compile
> [INFO] |  |  \- net.java.dev.jsr-275:jsr-275:jar:1.0-beta-2:compile
> [INFO] |  +- org.springframework:spring-aop:jar:2.5.2:compile
> [INFO] |  \- com.thoughtworks.xstream:xstream:jar:1.3:compile
> [INFO] |     \- xpp3:xpp3_min:jar:1.1.4c:compile
> [INFO] +- org.geotools.ogc:net.opengis.wcs:jar:2.5-SNAPSHOT:compile
> [INFO] |  +- org.geotools.ogc:net.opengis.ows:jar:2.5-SNAPSHOT:compile
> [INFO] |  |  \- org.geotools.ogc:org.w3.xlink:jar:2.5-SNAPSHOT:compile
> [INFO] |  +- org.eclipse.emf:common:jar:2.2.1:compile
> [INFO] |  \- org.eclipse.emf:ecore:jar:2.2.2:compile
> [INFO] +- org.geoserver:wcs:jar:1.8.0-SNAPSHOT:compile
> [INFO] |  +- org.geotools:gt-referencing:jar:2.5-SNAPSHOT:compile
> [INFO] |  |  \- commons-pool:commons-pool:jar:1.3:compile
> [INFO] |  +- org.geotools:gt-arcgrid:jar:2.5-SNAPSHOT:compile
> [INFO] |  |  \- it.geosolutions.imageio-ext:imageio-ext-arcgrid:jar:1.0-SNAPSHOT:compile
> [INFO] |  |     \- it.geosolutions.imageio-ext:imageio-ext-customstreams:jar:1.0-SNAPSHOT:compile
> [INFO] |  +- org.geotools:gt-geotiff:jar:2.5-SNAPSHOT:compile
> [INFO] |  +- org.geotools:gt-gtopo30:jar:2.5-SNAPSHOT:compile
> [INFO] |  +- org.geotools:gt-image:jar:2.5-SNAPSHOT:compile
> [INFO] |  \- org.geotools:gt-imagemosaic:jar:2.5-SNAPSHOT:compile
> [INFO] |     +- hsqldb:hsqldb:jar:1.8.0.7:compile
> [INFO] |     \- org.geotools:gt-shapefile:jar:2.5-SNAPSHOT:compile
> [INFO] |        \- velocity:velocity:jar:1.4:compile
> [INFO] |           \- velocity:velocity-dep:jar:1.4:runtime
> [INFO] +- org.geotools.xsd:gt-gml3:jar:2.5-SNAPSHOT:compile
> [INFO] |  +- org.geotools.xsd:gt-core:jar:2.5-SNAPSHOT:compile
> [INFO] |  |  +- picocontainer:picocontainer:jar:1.2:compile
> [INFO] |  |  +- xsdlib:xsdlib:jar:20050614:compile
> [INFO] |  |  +- relaxng:relaxngDatatype:jar:X:compile
> [INFO] |  |  +- jaxb:jaxb-api:jar:2.1.5:compile
> [INFO] |  |  +- jaxb:jaxb-impl:jar:2.1.5:compile
> [INFO] |  |  +- commons-jxpath:commons-jxpath:jar:1.2:compile
> [INFO] |  |  |  \- ant:ant-optional:jar:1.5.1:compile
> [INFO] |  |  \- org.eclipse.xsd:xsd:jar:2.2.2:compile
> [INFO] |  \- org.geotools.xsd:gt-gml2:jar:2.5-SNAPSHOT:compile
> [INFO] +- org.geotools.xsd:gt-filter:jar:2.5-SNAPSHOT:compile
> [INFO] +- org.geotools.xsd:gt-ows:jar:2.5-SNAPSHOT:compile
> [INFO] +- javax.mail:mail:jar:1.4:compile
> [INFO] +- javax.activation:activation:jar:1.1:compile
> [INFO] +- org.geoserver:data:jar:tests:1.8.0-SNAPSHOT:test
> [INFO] +- org.geoserver:main:jar:tests:1.8.0-SNAPSHOT:test
> [INFO] +- com.mockrunner:mockrunner:jar:0.3.1:test
> [INFO] +- xmlunit:xmlunit:jar:1.1:test
> [INFO] +- org.springframework:spring-beans:jar:2.5.2:compile
> [INFO] |  \- commons-logging:commons-logging:jar:1.0.3:compile
> [INFO] +- org.springframework:spring-core:jar:2.5.2:compile
> [INFO] +- org.springframework:spring-context:jar:2.5.2:compile
> [INFO] |  \- aopalliance:aopalliance:jar:1.0:compile
> [INFO] +- org.springframework:spring-webmvc:jar:2.5.2:compile
> [INFO] |  +- org.springframework:spring-context-support:jar:2.5.2:compile
> [INFO] |  \- org.springframework:spring-web:jar:2.5.2:compile
> [INFO] +- org.geotools:gt-api:jar:2.5-SNAPSHOT:compile
> [INFO] |  \- com.vividsolutions:jts:jar:1.9.1-SNAPSHOT:compile
> [INFO] +- org.geotools:gt-main:jar:2.5-SNAPSHOT:compile
> [INFO] |  \- jdom:jdom:jar:1.0:compile
> [INFO] \- junit:junit:jar:3.8.2:test
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 18 seconds
> [INFO] Finished at: Mon Jun 23 15:36:37 CEST 2008
> [INFO] Final Memory: 17M/33M
> [INFO] ------------------------------------------------------------------------
> {panel}
> It seems to me this is a bug, the dependencies are marked with a test scope, so why complian if they are not around?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira