mojohaus / mojohaus/exec-maven-plugin

Hability to execute java ('exec:java') without requiring a maven project, and allow dependency resolution

Open
#187 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
191
Forks
111
Avg merge
1d 21h
Merged PRs (30d)
4

Description

exec:java currently needs a maven project (pom.xml) to load the project dependencies in order to find the main class (and its dependencies). It would be nice to run a exec:java without this requirement, so the goal could resolve dependencies passed by command line arguments and run the main method (also passed by command line argument).

exec:java goal could be altered, or a new goal (say, exec:anyjava) could be created so the impact on exec:java would be minimum. Also, a mechanism similar to dependency:get would be needed to resolve the dependencies that are passed by command line.

I have some working code that I'll send in a PR soon.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the exec:java goal and the linked Maven dependency:get mechanism. Determine how a goal can run without pom.xml while resolving command-line dependencies and accepting the main method as an argument; done means a standalone invocation can execute the requested Java program and its dependencies without unnecessarily changing existing exec:java behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.