Skip to content

Set up Cloud dev environment (Maven/JDK) + AGENTS.md - #1

Draft
Masterlk wants to merge 1 commit into
masterfrom
cursor/setup-dev-environment-f70b
Draft

Masterlk wants to merge 1 commit into
masterfrom
cursor/setup-dev-environment-f70b

Conversation

@Masterlk

@Masterlk Masterlk commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Summary

Sets up the development environment for this Java Maven multi-module learning repository and documents durable, non-obvious caveats for future Cloud agents.

  • Added AGENTS.md with a ## Cursor Cloud specific instructions section describing the project layout, how to build/test/package/run, and the pre-existing java-multithread case-sensitivity issue.
  • Configured a minimal, idempotent update script (mvn -B -q dependency:go-offline) to pre-warm the Maven dependency/plugin cache on startup.

Environment

  • JDK 21 (preinstalled); project targets Java 1.8 (compiles fine).
  • Maven 3.8.7 installed via apt (persists in the VM snapshot).

Verification

  • mvn compile -pl '!java-multithread' → BUILD SUCCESS (5 modules)
  • mvn test -pl '!java-multithread' → BUILD SUCCESS
  • mvn package -pl '!java-multithread' → produced jars for all 5 modules
  • Ran examples:
    • HelloWorld → Hello World
    • SimpleDynamicProxy (reflection/dynamic proxy) → output matches the documented expected output

Note

java-multithread fails to compile on Linux because .../example7/producer.java declares public class Producer (filename/class-name case mismatch that only works on case-insensitive filesystems). This is a pre-existing source bug, not an environment issue; it is documented in AGENTS.md. No existing source code was modified.

Open in Web Open in Cursor 

Co-authored-by: Masterlk <Masterlk@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants