Skip to content

IDE Integration for Classpath of Maven Coordinates #15

Open
@rwinch

Description

@rwinch

When using gh-10, if there is a module foo that depends on maven coordinates example:bar and both projects are loaded in the IDE, then the classpath of the CommonsExecWebServer should be updated to point to the IDE's build output folder rather than downloading the dependency.

Then users could easily spin up a project and it's dependent projects. All getting quick feedback with the use of devtools on both the main project and the services that it consumes.

For any Gradle/Maven artifact in the workspace, the IDE would expose an environment variable named TESTJARS_ARTIFACT_${group}_${artifact}_${version} which points to a file location of a standard Java properties file that contains the following information:

# the main class to invoke
main=example.Main 
# the classpath to use delimited by the OS specific delimiters
classpath=/home/rwinch/workspaces/project/out:/home/rwinch/.m2/repository/example/foo/1/foo-1.jar:/home/rwinch/.m2/repository/example/bar/2/bar-2.jar

The environment variable will need to be sanitized for characters that are not allowed in ENV variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions