Using spotless-maven-plugin with Eclipse JDT behind custom P2 mirror

Open
#2,456 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
build-system

Research direction

Start by reviewing the spotless-maven-plugin configuration in the pom.xml and the existing p2Mirror handling. Compare the requested authentication and external configuration options with Maven's settings.xml and environment-variable mechanisms. Done means the supported configuration path is documented and works for both authenticated custom mirrors and projects without company-specific settings.

Written by the indexing model from the issue text.

Description

In our company we have the situation that we need to load the P2 artifacts required by Eclipse JDT from a custom JFrog Artifactory registry.
We have the following two issues:

  1. The P2 mirror requires authentication. How can I set this via the plugin configuration?
  2. We want to open source our Java project and therefore not include custom configuration in the pom.xml. When persons from outside the company pull our code from GitHub, they dont need the p2Mirror configuration. Is there a possibility to configure the P2 mirror via configuration files like settings.xml in Maven? Or maybe introduce environment variables the plugin checks to load from custom mirrors?

Thanks very much in advance!

Dominant language
Java
Stars
5.7k
Forks
560
Avg merge
1d 13h
Merged PRs (30d)
43

Contributor guide

Open the contributing guide

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.

More from diffplug/spotless

All issues in diffplug/spotless

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.