[GeoNetwork-users] compiling in iso 19115-3 with geonetwork 4.3.0 errors

Hi

I have been trying to compile geonetwork with support for iso19115-3 support and I am getting errors when compiling in the submodule. Not sure why it appears as if it is something within the code base. As other schema submodules are compiling fine and also when I leave out iso19115-3. Here is the output from mvn.

Andrew Rae

[INFO] GeoNetwork schema plugin for Dublin Core standard .. SUCCESS [ 0.138 s]
[INFO] GeoNetwork schema plugin for ISO19139/119 standards SUCCESS [ 0.314 s]
[INFO] GeoNetwork schema plugin for ISO19110 standard ..... SUCCESS [ 0.078 s]
[INFO] GeoNetwork schema plugin for ISO19139.anzlic profile SUCCESS [ 0.036 s]
[INFO] GeoNetwork schema plugin for ISO19115-3 standard ... FAILURE [ 0.029 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.749 s
[INFO] Finished at: 2018-08-07T15:47:58+12:00
[INFO] Final Memory: 32M/344M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project schema-iso19115-3: Compilation failure: Compilation failure:
[ERROR] /home/arae/src/java/geonetwork_3.4.3/core-geonetwork-error/schemas/iso19115-3/src/main/java/org/fao/geonet/schema/iso19115_3/ISO19115_3SchemaPlugin.java:[3,0] error: class, interface, or enum expected
[ERROR] /home/arae/src/java/geonetwork_3.4.3/core-geonetwork-error/schemas/iso19115-3/src/main/java/org/fao/geonet/schema/iso19115_3/ISO19115_3SchemaPlugin.java:[5,0] error: class, interface, or enum expected
[ERROR] /home/arae/src/java/geonetwork_3.4.3/core-geonetwork-error/schemas/iso19115-3/src/main/java/org/fao/geonet/schema/iso19115_3/ISO19115_3SchemaPlugin.java:[13,0] error: class, interface, or enum expected
[ERROR] /home/arae/src/java/geonetwork_3.4.3/core-geonetwork-error/schemas/iso19115-3/src/main/java/org/fao/geonet/schema/iso19115_3/ISO19115_3SchemaPlugin.java:[28,0] error: class, interface, or enum expected
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :schema-iso19115-3

Hi Andrew, this has been fixed you can now use branch 3.4.x of
https://github.com/metadata101/iso19115-3 with branch 3.4.x of GeoNetwork.

Cheers.

Francois

Le mar. 7 août 2018 à 06:20, Andrew Rae <andrew.rae@anonymised.com> a écrit :

Hi

I have been trying to compile geonetwork with support for iso19115-3
support and I am getting errors when compiling in the submodule. Not
sure why it appears as if it is something within the code base. As other
schema submodules are compiling fine and also when I leave out
iso19115-3. Here is the output from mvn.

Andrew Rae

[INFO] GeoNetwork schema plugin for Dublin Core standard .. SUCCESS [
0.138 s]
[INFO] GeoNetwork schema plugin for ISO19139/119 standards SUCCESS [
0.314 s]
[INFO] GeoNetwork schema plugin for ISO19110 standard ..... SUCCESS [
0.078 s]
[INFO] GeoNetwork schema plugin for ISO19139.anzlic profile SUCCESS [
0.036 s]
[INFO] GeoNetwork schema plugin for ISO19115-3 standard ... FAILURE [
0.029 s]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2.749 s
[INFO] Finished at: 2018-08-07T15:47:58+12:00
[INFO] Final Memory: 32M/344M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
(default-compile) on project schema-iso19115-3: Compilation failure:
Compilation failure:
[ERROR]
/home/arae/src/java/geonetwork_3.4.3/core-geonetwork-error/schemas/iso19115-3/src/main/java/org/fao/geonet/schema/iso19115_3/ISO19115_3SchemaPlugin.java:[3,0]

error: class, interface, or enum expected
[ERROR]
/home/arae/src/java/geonetwork_3.4.3/core-geonetwork-error/schemas/iso19115-3/src/main/java/org/fao/geonet/schema/iso19115_3/ISO19115_3SchemaPlugin.java:[5,0]

error: class, interface, or enum expected
[ERROR]
/home/arae/src/java/geonetwork_3.4.3/core-geonetwork-error/schemas/iso19115-3/src/main/java/org/fao/geonet/schema/iso19115_3/ISO19115_3SchemaPlugin.java:[13,0]

error: class, interface, or enum expected
[ERROR]
/home/arae/src/java/geonetwork_3.4.3/core-geonetwork-error/schemas/iso19115-3/src/main/java/org/fao/geonet/schema/iso19115_3/ISO19115_3SchemaPlugin.java:[28,0]

error: class, interface, or enum expected
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <goals> -rf :schema-iso19115-3

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork