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.

Proxy Settings for p2AsMaven

See original GitHub issue

I am new to Gradle and I tried to pass the proxy settings as described in the documentation of the class com.diffplug.gradle.p2.AsMavenPlugin via:

p2AsMaven {
    group 'myGroup', {
        ...
        p2ant {
            addArg('plugincustomization', 'proxies.ini')
        }
    }
}

However, if I run the build I get the error message:

Could not find method addArg() for arguments [plugincustomization, proxies.ini] on object of type com.diffplug.gradle.p2.AsMavenGroup.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
I-Xenophon-Icommented, Aug 9, 2017

Thanks for your help!

0reactions
nedtwiggcommented, Aug 9, 2017

Weird. This fixed it:

p2ant {
    it.addArg( .....
}

Dunno why we need the it, but it works. I’ll update the docs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AsMavenPlugin (goomph 3.10.0 API)
Downloads a set of artifacts from a p2 repository and stuffs them into a local maven repository in the build/p2asmaven folder, then adds...
Read more >
How to configure proxy settings in Eclipse? - YouTube
kkjavatutorials #MavenAbout this Video:This video talks about How to enable proxy setting in Maven?
Read more >
Maven plugin not using Eclipse's proxy settings - Stack Overflow
I have set the proxy information in my settings.xml file, and on the command line Maven works just fine. I have also set...
Read more >
How to Set Proxy for Maven? - Java Helps
This article explains how to set proxy for Maven and update those changes in both IntelliJ IDEA and Eclipse. Set Proxy in settings.xml....
Read more >
How to configure client side proxy settings for Eclipse - IBM
How do you configure client side proxy settings in Eclipse to use with IBM Rational Team Concert(RTC)?
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