Daniele Romagnoli a écrit : > Hi again, > I have added a profile to fix the gt-imageio-ext-gdal dependency > issue. That profile will be activated using the "gdal" property name > when calling maven. > Now plugins and coveragetools module will leverage on > gt-imageio-ext-gdal module adding -Dgdal to the maven command. > Otherwise, imageio-ext-gdal will be ignored and no more errors on > missing dependencies will occur. Are you really sure of it ? I mean, you see, in the modules/unsupported/pom.xml file, you have: <profile> <id>raster</id> <activation> <property><name>all</name></property> </activation> <modules> <module>coverageio</module> <module>coverageio-netcdf</module> <module>coveragetools</module> </modules> </profile>
So when I put -Dall, I will take coveragetools, but I have not provided -Dgdal ... If I understand well the maven process, with a full maven building (-Dall), I will take coveragetools, but not the profile gdal ... To my opinion, the imageio-ext-gdal dependency will still be lacking to the coveragetools module. A solution would be to use the raster profile in the modules/plugin/pom.xml file. What about this in the modules/plugin/pom.xml? <profile> <id>raster</id> <activation> <property><name>all</name></property> </activation> <modules> <module>imageio-ext-gdal</module> </modules> </profile> This way, you will take the dependency needed for coveragetools' building. Other thing: I think that coveragetools really need the gt-imageio-ext-gdal every time. So I think it is better to not have this dependency in a profile (in the modules/unsupported/coveragetools/pom.xml). It is just the modules/plugin/pom.xml that has to define the raster profile. Have you tried building the branch 2.5.x with no org.geotools in your .m2 repository ? I have not tried, but I'm sceptic you'll get the dependency even with the last correction. Cheers, Cédric. > > Regards, > Daniele > > > On Mon, Feb 16, 2009 at 2:53 PM, Daniele Romagnoli > <daniele.romagn...@geo-solutions.it > <mailto:daniele.romagn...@geo-solutions.it>> wrote: > > Hi Cedric, > thank you for the info. > I'll add a profile to re-enable gt-imageio-ext-gdal dependency on > request to fix this issue. > > Regards, > Daniele > > > > On Mon, Feb 16, 2009 at 2:39 PM, Cédric Briançon > <cedric.brian...@geomatys.fr <mailto:cedric.brian...@geomatys.fr>> > wrote: > > Hi Daniele, please see below, some more explanations. > > Daniele Romagnoli a écrit : > > Hi guys, > > I have a question in order to help fixing issues with the > Javadoc > > generation involing imageio-ext-gdal module and coverage-tools. > > > > On Mon, Feb 9, 2009 at 12:02 PM, Adrian Custer > <acus...@gmail.com <mailto:acus...@gmail.com> > > <mailto:acus...@gmail.com <mailto:acus...@gmail.com>>> wrote: > > > > Hey all, > > > > Cedric is back from too much snow, the poor boy, and too > much skiing. > > He's sharing with us the magic incantations to get the build > > generating > > javadocs. There are problems at various levels. > > > > > > 0) Protective, paranoid cleanup > > rm -Rf ~/.m2/repository/org/opengis > > rm -Rf ~/.m2/repository/org/geotools > > rm -Rf ~/.m2/repository/it/geosolutions > > > > 1) Checkout tag (2.5.3) > > > > 2) First compile: (with Java 6, maven 2.0.9) > > > > maven install -Dall -DskipTests > > > > => Build fails because coveragetools pom is borked. > > > > > > I'm not sure I have understood this statement. Can you give me > > additional info/explanation on this? > > > > Regards, > > Daniele > > > Here is the schema to get a compilation error: > 1) rm -Rf ~/.m2/repository/org/geotools > 2) mvn install -Dall -DskipTests (from the root directory)... > > With a clean .m2 repository of all org.geotools, you'll see > that the > unsupported module coveragetools needs gt-imageio-ext-gdal. > But the dependency is probably not declared in the pom.xml of > coveragetools, or it can be a matter of profile, I don't > really know > where the issue is. > (Just deploying the gt-imageio-ext-gdal module on a repository > can solve > the problem too) > In fact, gt-imageio-ext-gdal should have been built before the > coveragetools module. > > So when building coveragetools, yo'u'll get: > > ... > Downloading: > > http://download.java.net/maven/2/org/geotools/gt-imageio-ext-gdal/2.5.3/gt-imageio-ext-gdal-2.5.3.jar > Downloading: > > http://lists.refractions.net/m2/org/geotools/gt-imageio-ext-gdal/2.5.3/gt-imageio-ext-gdal-2.5.3.jar > Downloading: > > http://maven.geotools.fr/repository/org/geotools/gt-imageio-ext-gdal/2.5.3/gt-imageio-ext-gdal-2.5.3.jar > Downloading: > > http://repo1.maven.org/maven2/org/geotools/gt-imageio-ext-gdal/2.5.3/gt-imageio-ext-gdal-2.5.3.jar > [INFO] > > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > > ------------------------------------------------------------------------ > [INFO] Failed to resolve artifact. > > Missing: > ---------- > 1) org.geotools:gt-imageio-ext-gdal:jar:2.5.3 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.geotools > -DartifactId=gt-imageio-ext-gdal -Dversion=2.5.3 -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.geotools > -DartifactId=gt-imageio-ext-gdal -Dversion=2.5.3 -Dpackaging=jar > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] > > Path to dependency: > 1) org.geotools:gt-coveragetools:jar:2.5.3 > 2) org.geotools:gt-imageio-ext-gdal:jar:2.5.3 > > ---------- > 1 required artifact is missing. > > for artifact: > org.geotools:gt-coveragetools:jar:2.5.3 > > Regards, > Cédric. > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing > the Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the > source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Geotools-devel mailing list > Geotools-devel@lists.sourceforge.net > <mailto:Geotools-devel@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/geotools-devel > > > > > -- > ------------------------------------------------------- > Eng. Daniele Romagnoli > Software Engineer > > GeoSolutions S.A.S. > Via Carignoni 51 > 55041 Camaiore (LU) > Italy > > phone: +39 0584983027 > fax: +39 0584983027 > mob: +39 328 0559267 > > > http://www.geo-solutions.it > > ------------------------------------------------------- > > > > > -- > ------------------------------------------------------- > Eng. Daniele Romagnoli > Software Engineer > > GeoSolutions S.A.S. > Via Carignoni 51 > 55041 Camaiore (LU) > Italy > > phone: +39 0584983027 > fax: +39 0584983027 > mob: +39 328 0559267 > > > http://www.geo-solutions.it > > ------------------------------------------------------- > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel