Cannot compile/run geoserver from main

Description

I wanted to compile/run geoserver locally (on Linux in IntelliJ IDEA) to troubleshoot GeoServer. Followed the developer guide.

When I try to start the app, I get compilation errors in the wcs1_1 module.

First problem is a missing import for Node in AbstractContentNode.

Since AbstractContentNode doesn’t seem to be used anywhere i tried to delete it. But the I get errors in RangeSubsetKeyParser.java. All those imports are unknown.

import org.geoserver.wcs.kvp.rangesubset.ASTAxisId;

import org.geoserver.wcs.kvp.rangesubset.ASTAxisSubset;

import org.geoserver.wcs.kvp.rangesubset.ASTFieldId;

import org.geoserver.wcs.kvp.rangesubset.ASTFieldSubset;

import org.geoserver.wcs.kvp.rangesubset.ASTInterpolation;

import org.geoserver.wcs.kvp.rangesubset.ASTKey;

import org.geoserver.wcs.kvp.rangesubset.ASTRangeSubset;

import org.geoserver.wcs.kvp.rangesubset.Node;

import org.geoserver.wcs.kvp.rangesubset.RangeSubsetParser;

import org.geoserver.wcs.kvp.rangesubset.RangeSubsetParserVisitor;

import org.geoserver.wcs.kvp.rangesubset.SimpleNode;

 

Tried to unload wcs1_1 but it seems it is a required module.

I also tried to use branch 2.23.x but there are even more problems


Environment

None

Activity

Andrea Aime 
June 17, 2023 at 2:54 PM

That system property works fine for me. But… it must go into the JVM arguments, not in the program arguments

Jody Garnett 
June 16, 2023 at 5:55 PM

It is not a workaround; it is the instructions :)

Samo Dadela 
June 16, 2023 at 3:42 PM

@Jody: No, I went directly in IntelliJ… now that I know the workaround I first mvn install in wcs1_1.

But I have another problem… I’m unable to change the jetty port - any hints on that? I tried adding -Djetty.port=8600 in the start configuration but it doesn’t work - it still start on 8080. I also tried changing start.ini - to no avail.

Jody Garnett 
June 16, 2023 at 9:41 AM

I think if people build first with maven command line (following the order of things in the developers guide) then the generated code is already present when they load into IDE?

Did you build on the command line first?

Samo Dadela 
June 16, 2023 at 9:17 AM

Ignore that: found the workaround in the Troubleshooting section…


  1. If there are errors such as “cannot find symbol class ASTAxisId”, some generated code is not being included in the build. Using wcs1_1 as the working directory, run a mvn clean install.

 

I found this section only when I removed all the problematic code in wcs1_1

Cannot Reproduce

Details

Assignee

Reporter

Priority

Created June 16, 2023 at 9:03 AM
Updated June 20, 2023 at 9:23 AM
Resolved June 20, 2023 at 9:23 AM