question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add clear and non-ambiguous maven properties to the maven plugin

See original GitHub issue

When using Maven, often one wants to pass some of the plugin configuration via properties (-DmyProp).

Currently it seems some of the configuration are available via properties but:

  • it’s not documented anywhere (usually plugins have each configuration mapped to an expression that is resolved by maven, and it appears in plugin doc as well as in IDE)
  • it’s not clear if things like credHelper, if it is available as a property, is going to be applied to to, from or both.

It would be great if all the configuration could be specified via properties named like jib.to.credHelper and so on.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
victornoelcommented, Nov 9, 2018

@coollog hey thanks for the heads up! 👍

1reaction
chanseokohcommented, Jul 28, 2018

It would be great if all the configuration could be specified via properties named like jib.to.credHelper and so on.

What you can do in the meantime is like this:

  <properties>
    <jib.to.credHelper>my-default-cred-helper</jib.to.credHelper>
  </properties>
      <plugin>
        <groupId>com.google.cloud.tools</groupId>
        <artifactId>jib-maven-plugin</artifactId>
        <version>0.9.7</version>
        <configuration>
          <to>
            <image> ... </image>
            <credHelper>${jib.to.credHelper}</credHelper>
          </to>
        </configuration>

Then you can do, e.g., mvn -Djib.to.credHelper=docker jib:build.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Properties Maven Plugin – Introduction - MojoHaus
It provides goals to read properties from files and URLs and write properties to files, and also to set system properties. It's main...
Read more >
How to use properties-maven-plugin? - Stack Overflow
Official answer from them is that using read-project-properties for setting version of dependencies is not supported: ...
Read more >
Usage - Apache Maven Clean Plugin
The Maven Clean Plugin, as the name implies, attempts to clean the files and directories generated by Maven during its build.
Read more >
Maven Surefire Plugin – Using System Properties
Using System Properties. There are two ways to add a list of system properties to Surefire: systemPropertyVariables.
Read more >
Delete Additional Files Not ... - Apache Maven Clean Plugin
<directory>${basedir}/some/relative/path</directory>. You could also define file set rules in a parent POM. In this case, the clean plugin adds ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found