dosubot[bot] commented on issue #2652:
URL: 
https://github.com/apache/incubator-hugegraph/issues/2652#issuecomment-2322846527

   <!-- Answer -->
   The server packaging failed with errors in `PerfUtilTest` and 
`RestClientTest` because the tutorial suggests using the `-DskipTests` 
parameter during the Maven build process. This parameter skips the tests, which 
would prevent errors in `PerfUtilTest` and `RestClientTest` from causing the 
build to fail.
   
   ```bash
   mvn package -DskipTests
   ```
   
   If you did not use the `-DskipTests` parameter, the tests would run, and any 
issues in `PerfUtilTest` and `RestClientTest` could cause the build to fail. 
This is not related to an outdated document or incorrect directory structure.
   
   Additionally, if you are setting up the server in IntelliJ IDEA, ensure that 
you have followed the steps to configure the development environment correctly, 
including copying the necessary configuration files and setting the appropriate 
VM options for Java 11. For detailed instructions, refer to the [Setup Server 
in IDEA 
(Dev)](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-doc/content/en/docs/contribution-guidelines/hugegraph-server-idea-setup.md)
 guide.
   
   To summarize the key steps for setting up the server in IntelliJ IDEA:
   
   1. **Copy Configuration Files**: Copy the necessary configuration files to a 
separate directory to avoid affecting Git tracking.
      ```bash
      cp -r hugegraph-dist/src/assembly/static/scripts 
hugegraph-dist/src/assembly/static/conf path-to-your-directory
      ```
   
   2. **Initialize the Graph**: Configure the database backend in the 
`hugegraph.properties` file and run the `InitStore` class.
      ```properties
      backend=rocksdb
      serializer=binary
      rocksdb.data_path=.
      rocksdb.wal_path=.
      ```
   
   3. **Run HugeGraphServer**: Create a new Application configuration in 
IntelliJ IDEA to run the `HugeGraphServer` class with the appropriate VM 
options if using Java 11.
      ```bash
      --add-exports=java.base/jdk.internal.reflect=ALL-UNNAMED 
--add-modules=jdk.unsupported --add-exports=java.base/sun.nio.ch=ALL-UNNAMED
      ```
   
   By following these steps, you can ensure that the server is set up correctly 
in your development environment, and you can avoid issues related to test 
failures during the build process 
<sup>[[1]](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/cn/docs/quickstart/hugegraph-server.md)</sup><sup>[[2]](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/en/docs/contribution-guidelines/hugegraph-server-idea-setup.md)</sup><sup>[[3]](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/cn/docs/contribution-guidelines/hugegraph-server-idea-setup.md)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to