Re: maven-plugin-testing-harness

2017-08-02 Thread ahardy42
On 26/07/17 20:13, Karl Heinz Marbaise wrote: >> and the link to git repo is 404 > > https://github.com/apache/maven-plugin-testing > > but it's out of date correct... > > I have created an appropriate INFRA ticket to fix this[1]. > > > [1]: https://issues.apache.org/jira/browse/INFRA-14716

maven-plugin-testing-harness

2017-07-26 Thread ahardy42
Is there life is in this testing harness still? I'm looking at https://maven.apache.org/plugin-testing/maven-plugin-testing-harness/ The link to JIRA returns 503 - http://jira.codehaus.org/browse/MPLUGINTESTING and the link to git repo is 404 I can imagine there is a big population of maven

Re: maven-plugin-testing-harness

2017-08-01 Thread ahardy42
On 26/07/17 11:49, ahardy42 wrote: > Is there life is in this testing harness still? > > I'm looking at > https://maven.apache.org/plugin-testing/maven-plugin-testing-harness/ Hi All, while I've made a lot of progress with my plugin testing with the maven-plugin-testing-harness, I'm

How do I get a plugin dependency from the project object in my mojo?

2017-08-07 Thread ahardy42
I've got another question about mojo development. Sorry for cross-posting, but I've put it here too: https://stackoverflow.com/questions/45552953/how-do-i-get-a-plugin-dependency-in-my-mojo I created a maven plugin and I implement my plugin in the projects where I need it like below. Note

Re: maven-plugin-testing-harness

2017-08-23 Thread ahardy42
After a concentrated stint of experimentation, I have setup my tests using the maven-plugin-testing-harness so that the tests run with a live remote repository and have all the resources provided in the target/test-classes directory. The solution is here:

Re: Project dependencies vs plugin dependencies for a mojo looking at the project

2017-09-21 Thread ahardy42
Karl Heinz Marbaise-3 wrote >>I thought I could just enter it once as a plugin dependency in >> the user project pom - assuming it would be the only one. > > You can give this via the plugin configuration and which means your > plugin must resolve it's dependencies and make a required download

Re: maven-plugin-testing-harness

2017-08-25 Thread ahardy42
maven-invoker-plugin looks very useful, but it just adds to the frustration that the maven website guided me down this path with maven-plugin-testing-harness without a single mention of maven-invoker-plugin. you might want to put a link in there in the "my first mojo resources" section. I'll try

Re: Auto-increment semantic version number for CD pipeline with git and docker

2017-11-15 Thread ahardy42
I'm using TeamCity so controlling an infinite loop using trigger configs should be easy. I don't want to use snapshot versioning at all. These projects are microservices so every code commit is a release candidate. My goal is to get maven to increment the build number on each build - the build

Re: Auto-increment semantic version number for CD pipeline with git and docker

2017-11-16 Thread ahardy42
V. interesting, thanks. I'm using TeamCity so controlling an infinite loop using trigger configs should be easy. However I don't want to use snapshot versioning at all, so the maven-release-plugin is essentially not the right tool for the job. These projects are microservices so every code

Re: Auto-increment semantic version number for CD pipeline with git and docker

2017-11-16 Thread ahardy42
V. interesting, thanks. I'm using TeamCity so controlling an infinite loop using trigger configs should be easy. However I don't want to use snapshot versioning at all, so the maven-release-plugin is essentially not the right tool for the job. These projects are microservices so every code

Re: Handling password

2017-12-11 Thread ahardy42
Robert Scholte-8 wrote > Is ${settings.proxies[0].username} an options? > > Robert Thanks Robert but no, that doesn't work. Seems that maven-resources-plugin can't dereference lists or arrays. -- Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html

Re: Handling password

2017-12-06 Thread ahardy42
After a bit of creative thinking, I put the username:password into variables in a profile in the settings file and let maven substitute them into the file at build time. Now the security issue is a problem for the person maintaining the CI server - which is me too but at least no-one will find it

Auto-increment semantic version number for CD pipeline with git and docker

2017-10-27 Thread ahardy42
The projects I'm working on are migrating towards a micro-services architecture and my aim is to find a way to implement: - auto-increment the version number - semantic versioning (3.1.99, 3.1.100, 3.1.101 etc) - using the maven pom version as the master or source version number - running

ServiceLoader not loading FileTypeDetector implementation in jar

2018-01-04 Thread ahardy42
I created, tested and packaged a java.nio.file.spi.FileTypeDetector implementation in a utility jar for use by Files.probeContentType(path). So it works beautifully in my utility project. I'm now trying to use it in another project but despite hours of trying, I can't work out why the JVM

Unexplained sudden loss of access to repository on build server

2018-01-05 Thread ahardy42
I'm testing parts of my mojo in an integration test and for months this worked fine locally and on the build server (Teamcity). I specified our company's artifactory repository in the settings.xml I created a test project in the src/test/resources/my-test-project directory and referred to it

Re: ServiceLoader not loading FileTypeDetector implementation in jar

2018-01-04 Thread ahardy42
System.getSecurityManager().checkPermission(new RuntimePermission("fileTypeDetector")); is not possible. System.getSecurityManager() returns null. Regards Adam -- Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html

Re: ServiceLoader not loading FileTypeDetector implementation in jar

2018-01-04 Thread ahardy42
I tried checking in my code and lo, the tests pass on the CI server (teamcity), i.e. on teamcity the classloader finds my FileTypeDetector in the dependency jar. -- Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html

Re: ServiceLoader not loading FileTypeDetector implementation in jar

2018-01-04 Thread ahardy42
Actually there is a third scenario that might be relevant. It fails in Intellij's maven env. It works in teamcity's maven run. It fails in the maven plugin where it is used by my mojo, in Intellij. The 4th scenario is the teamcity build using my mojo. Haven't tried that yet. -- Sent

Anything in pipeline to add functionality to read pom in different formats?

2018-02-01 Thread ahardy42
Hi All, as a loyal maven user I appreciate maven for all it does and give kudos to all the people who helped build it. Thought I'd say that before I ask my question in case you think I'm trolling. My main problem with maven is colleagues. I constantly hear complaints about maven being horrible.

Re: Anything in pipeline to add functionality to read pom in different formats?

2018-02-02 Thread ahardy42
That meets the definition of 'paradigm shift'. Comments from colleagues: "That is so much clearer isn't it?" -- Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html - To unsubscribe, e-mail:

maven jobs, groovy, git and jenkins pipelines

2018-02-05 Thread ahardy42
Hi All, I started working with a Jenkins pipeline and I am still building my mental picture of how maven, git, groovy and Jenkins really work together - fyi I'm using OpenShift / Kubernetes as the deployment platform. Am I correct in thinking that actually maven could achieve 95% of the build

Distribution management

2018-07-10 Thread ahardy42
Hi maven-users, it seems this issue was last discussed almost 10 years ago but despite reading the docs and the email lists there is still an issue with distribution management that I don't understand. I do not wish to declare our company's internal release and snapshot repositories in pom

Re: Distribution management

2018-07-10 Thread ahardy42
Karl Heinz Marbaise-3 wrote > The distributionManagement should be offered by a company parent pom > which handles this...and it is a good idea to use placeholders here to > have chance to change that in particular with CI environments which can > control this... OK that's workable. One layer

Re: Not able to read jars in repo intermittently

2018-04-10 Thread ahardy42
A week ago I asked about an issue where multiple builds were downloading to the shared local repo and causing corruption in random jars. My company's Jenkins team are offering the solution of running my own private repo to avoid this, but this radically increases build times because each build

Re: Not able to read jars in repo intermittently

2018-03-27 Thread ahardy42
Can I just verify the problem? These affected jars are frequently used, and have been there for a long time, e.g. /home/jenkins/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar There should be no writes going on to this or other affected jars by any processes on the maven repo. Are

Specify alternate extensions.xml?

2018-10-29 Thread ahardy42
I see from mvn --help that there's a way to specify alternate settings.xml or toolchain.xml files. Is there an equivalent for extensions.xml? My use-case is on Jenkins. The Jenkins maven and freestyle job types seems to pluck the pom.xml out of the project without any reference to anything