HI all,
I was trying to setup the dev environment in eclipse for the latest uDig 
version and have a few issues/questions:
Cool, welcome back!
1) I can't seem to get the org.locationtech.udig.catalog.imageio project 
to compile.  It it complaining about not being able to import 
org.gdal.gdal. I can't figure this out because it looks like they are 
configured and setup properly in the org.location.udig.libs project. 
Does anybody have any ideas?  I wouldn't put it past being some weird 
eclipse bug.  The errors are all in GDALFormatProvider.java:
* Driver cannot be resolve to a type
* gdal cannot be resolve
* The import org.gdal.gdal.Driver cannot be resolved
* The import org.gdal.gdal.gdal cannot be resolved.
I saw this kind of issue yesterday as well and was wondering since the gdal lib (2.2) is bundled with udig.libs bundle. Looks like its only an issue in eclipse.
Please try to update classpath in udig.libs project : Right mouse -> plugin-Tools -> Update classpath
Hop that helps ..
 
 
2) When I ran "mvn test" it fails.
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time:  54.683 s
[INFO] Finished at: 2021-10-21T16:16:29-07:00
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project org.locationtech.udig.libs: 
Could not resolve dependencies for project 
org.locationtech.udig:org.locationtech.udig.libs:eclipse-plugin:2.3.0-SNAPSHOT: 
Could not find artifact 
org.locationtech.udig:org.locationtech.udig.libs.jfreechart:jar:2.3.0-SNAPSHOT 
-> [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 <args> -rf :org.locationtech.udig.libs
Hmm, have you run mvn clean package -f pom-libs.xml first?
If you like to run Tests, you need to use integration-test goal with -Ptest profile option, However, please have a look at the github-workflow steps
| - name: Load dependencies with pom-libs.xml | 
      
        
| run: mvn -B install --file pom-libs.xml | 
      
        
| - name: Build docs with sphinx | 
      
        
| run: mvn install -B -f docs/pom.xml -Dtycho.mode=maven -Pdocs | 
      
        
| - name: Run uDig product & sdk build (parallel) | 
      
        
| run: mvn install -B -Pproduct,sdk,test -DskipTests --fail-at-end -T4 | 
      
        
run: mvn integration-test -B -Ptest --fail-at-end 
 
3) mvn clean install -Pproduct -Psdk -Pdocs
The docs part of this failed (if I run it without -Pdocs it works fine):
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time:  03:39 min
[INFO] Finished at: 2021-10-21T16:21:09-07:00
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-antrun-plugin:1.3:run (package) on 
project udig-docs: An Ant BuildException has occured: 
C:\data\uDig\github\udig-platform\docs\target\user\en\simple not found. 
-> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the 
command
[ERROR]   mvn <args> -rf :udig-docs
As far as i remember  this error is cause by missing python environment. its required to have sphinx_build installed, in github workflow action we use 
sphinx==1.8.5 at the moment
Lastly, I have an update that removes the joda time library (from the 
main libs project) and use the java LocalDateTime/ZonedDateTime classes 
instead. Are you interested in this if I submit a patch?
For sure!! Looking forward to get a pull-request notification. if you need any help, let me know!
 
Thanks,
Emily
_______________________________________________
udig-dev mailing list
udig-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/udig-dev