[netcdf-java] maven build with maven 3.0.1

Im trying out the maven build with maven 3.0.1, and im working my way through the issues:

1)
[WARNING] Some problems were encountered while building the effective model for edu.ucar:grib:jar:8.0.28 [WARNING] 'version' contains an expression but should be a constant. @ edu.ucar:grib:${grib.version}, C:\tmp\thredds\grib\pom.xml, line 24, column 12

it appears that maven doesnt like properties in versions. some maven disussions online recommend leaving off the version, which will default to the parent version. Im thinking that might be the right thing to do.

2)
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ edu.ucar:netcdf-parent:4.2.19, C:\tmp\thredds\pom.xml, line 244, column 15 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ edu.ucar:grib:${grib.version}, C:\tmp\thredds\grib\pom.xml, line 83, column 15 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ edu.ucar:netcdf-parent:4.2.19, C:\tmp\thredds\pom.xml, line 252, column 15

apparently maven wants plugin versions explicitly stated? If so, can anyone advise which version to use?

3)
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenDAP 2.2.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ opendap ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ opendap ---
[INFO] Compiling 207 source files to C:\tmp\thredds\opendap\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \tmp\thredds\opendap\src\main\java\opendap\dap\test\TestSources.java:[3,22] package junit.framework does not exist [ERROR] \tmp\thredds\opendap\src\main\java\opendap\dap\test\TestSources.java:[10,26] cannot find symbol
symbol: class TestCase
class TestSources extends TestCase {
[ERROR] \tmp\thredds\opendap\src\main\java\opendap\dap\test\TestDConnect2.java:[99,23] package junit.framework does not exist

this one we will fix tonight.

4)
[ERROR] Failed to execute goal on project netcdf: Could not resolve dependencies for project edu.ucar:netcdf:jar:4.2.19: Failed to collect depend encies for [edu.ucar:unidataCommon:jar:4.2.19 (compile), commons-httpclient:commons-httpclient:jar:3.1 (compile), org.slf4j:slf4j-api:jar:1.6.1 ( compile), edu.ucar:grib:jar:8.0.28 (provided), edu.ucar:opendap:jar:2.2.1 (provided), edu.wisc:visad:jar:2010-08-09 (provided), org.jdom:jdom:jar :1.1 (provided), org.quartz-scheduler:quartz:jar:1.7.3 (provided), com.google.protobuf:protobuf-java:jar:2.3.0 (provided), net.sf.ehcache:ehcache :jar:1.6.0 (provided), com.sleepycat:je:jar:4.0.92 (provided), junit:junit:jar:4.8.2 (test)]: Failed to read artifact descriptor for edu.wisc:vis ad:jar:2010-08-09: Could not transfer artifact edu.wisc:visad:pom:2010-08-09 from/to geotoolkit (dav:http://maven.geotoolkit.org/): No connector available to access repository geotoolkit (dav:http://maven.geotoolkit.org/) of type default using the available factories WagonRepositoryConnect
orFactory -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :netcdf

martin, do you know whats happening here?


On 12/23/2010 11:01 AM, John Caron wrote:
Hi all:

The Netcdf-Java/CDM library version 4.2.18 is an experimental version that allows maven building from svn

If you are interested in building from source, you should be able to do:

svn co http://svn.unidata.ucar.edu/repos/thredds/trunk/ thredds
cd thredds
mvn install

This is experimental, please try it out and give feedback.

The jar files are available as the 4.2 development version from the usual place:

http://www.unidata.ucar.edu/software/netcdf-java/

Thanks and Happy Holidays

John  and everyone at Unidata

_______________________________________________
netcdf-java mailing list
netcdf-java@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/



  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: