Skip to content

Conversation

@Poggecci
Copy link
Contributor

Resolving issues raised in google/adk-java#456 (comment)

Copy link
Collaborator

@koverholt koverholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR / contribution and for linking to the original issue in the adk-java repo! ❤️

I tested the full getting started flow with your commands, and everything is working as expected.

I left one comment for discussion just to understand why target and . are both working in my dev environment. But using . as you suggested here is a better pattern to use as the base location for the search.

cc @joefernandez for additional review.

mvn compile exec:java \
-Dexec.mainClass="com.google.adk.web.AdkWebServer" \
-Dexec.args="--adk.agents.source-dir=target --server.port=8000"
-Dexec.args="--adk.agents.source-dir=. --server.port=8000"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why --adk.agents.source-dir=target is working in my environment (where the compiled classes end up in target/classes/com/example/agent) but was not working for you and others in google/adk-java#456? Do your compiled classes end up in a different location? Asking since we want to make sure we're matching common dev environments as accurately as possible.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DO NOT MERGE. The existing command is tested and verified working. An update like this requires that we fully retest quickstart with the update before updating. DO NOT MERGE.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I had update this for consistency with the other change, but I am ok with keeping this one as is since it is WAI. Reverting this change.

mvn exec:java \
-Dexec.mainClass="com.google.adk.web.AdkWebServer" \
-Dexec.args="--adk.agents.source-dir=src/main/java" \
-Dexec.args="--adk.agents.source-dir=. --server.port=8080"
Copy link
Collaborator

@koverholt koverholt Oct 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be consistent across both pages and either use port 8000 (to match the Python getting started guide) or port 8080 (to match the default when using adk web with Java). I'd lean towards using 8080 in both since it's the default.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This quickstart change should be retested before merging.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll revert the port specification to just focus on getting the critical change in this PR through.

If you do not see "science-app" in the dropdown menu, make sure you
are running the `mvn` command at the location where your Java source code
is located (usually `src/main/java`).
are running the `mvn` command from the root of your maven project.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[No change needed]

Thanks for this more general clarification!

@Poggecci
Copy link
Contributor Author

@joefernandez ptal for re-review. I just updated the single line definitively raising issues for users as originally reported.

@joefernandez joefernandez merged commit e83e079 into google:main Oct 31, 2025
3 checks passed
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.

3 participants