Working around "Can't compile test sources when main sources are missing a module descriptor"

2023-06-29 Thread Mark Raynsford
store.tests: Execution default-testCompile of goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:testCompile failed: Can't compile test sources when main sources are missing a module descriptor -> [Help 1] Is there perhaps a better way to get the Compiler plugin to ignore src/main/ja

Re: Splitting a dependency tree with the assembly plugin

2022-05-08 Thread Mark Raynsford
bution zip, and the distribution model unpacks the distribution and re-packs it with the contents of the other application. I've had to introduce profiles in order to avoid breaking the build if assemblies are skipped. -- Mark Raynsford |

Re: Splitting a dependency tree with the assembly plugin

2022-05-07 Thread Mark Raynsford
ependencies would need to be arranged. -- Mark Raynsford | https://www.io7m.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Splitting a dependency tree with the assembly plugin

2022-05-07 Thread Mark Raynsford
launcher/modules". I _think_ what's happening is that because com.io7m.junreachable.core is also transitive dependency of com.io7m.eigion.gui, it's being excluded. Is there perhaps a more intelligent way to achieve what I'm trying

Re: Maven Book recommendation

2022-01-29 Thread Mark Raynsford
github.com/scijava/ His work was a direct influence over the primogenitor pom that I use in over a hundred projects: https://github.com/io7m/primogenitor -- Mark Raynsford | https://www.io7m.com pgpyLTts6pT3Q.pgp Description: OpenPGP digital signature

Re: Scratching my head over repositories ...

2021-04-22 Thread Mark Raynsford
hub.com/io7m/primogenitor/blob/develop/pom.xml#L1035 ... and deploying to Central is literally just: $ mvn -Dio7m.release=true deploy The main problem is that the nexus-staging-maven-plugin isn't free software. The reason for this escapes me. -- Mark Raynsford | https://www.io7m.com

More module-related Javadoc issues

2020-06-07 Thread Mark Raynsford
lugin a little better please assist? -- Mark Raynsford | https://www.io7m.com pgprJjH9iYo60.pgp Description: OpenPGP digital signature

Finding out what the versions plugin did

2019-07-07 Thread Mark Raynsford
I doing something wrong? Is there some better way to do this? -- Mark Raynsford | http://www.io7m.com pgpxfNYhIx3l_.pgp Description: OpenPGP digital signature

Jar plugin: Per-entry compression settings?

2019-03-07 Thread Mark Raynsford
le to mmap(), however, is pretty much dependent on those particular resources not being compressed. It seems as though the jar plugin only allows me to turn compression on or off for the entire archive. Is there any way I can specify that I want everything compressed except for a few specific entries?

Re: Copying dependencies (including reactor modules)

2018-12-08 Thread Mark Raynsford
r in order to run a > development server. As part of a test suite? > It's pretty weird imho, that, when excluding a groupId, the plugin still > tries to download dependencies with that groupId, even if later it is going > to exclude them! Which plugin are you referring to here? --

Re: Username/password not sent for altDeploymentRepository?

2018-11-05 Thread Mark Raynsford
ot;. Given MDEPLOY-244, it looks as though "example-releases::default" is being treated as the repository ID (and therefore isn't finding credentials in settings.xml). -- Mark Raynsford | http://www.io7m.com pgpkRSUoQ1UQL.pgp Description: OpenPGP digital signature

Re: Username/password not sent for altDeploymentRepository?

2018-11-04 Thread Mark Raynsford
als for repositories with ids "example-releases" and "example-snapshots" and the credentials are picked up correctly by the deploy plugin. -- Mark Raynsford | http://www.io7m.com pgpxFdu1Tdhlc.pgp Description: OpenPGP digital signature

Re: Username/password not sent for altDeploymentRepository?

2018-11-04 Thread Mark Raynsford
On 2018-11-04T12:30:32 + Mark Raynsford wrote: > > 2018-11-04 12:14:16,266 [qtp367589601-760] INFO > org.apache.archiva.security.ArchivaServletAuthenticator [] - Authorization > Denied [ip=10.2.4.1,permission=archiva-upload-repository,repo=arc7-releases] > : no match

Username/password not sent for altDeploymentRepository?

2018-11-04 Thread Mark Raynsford
I'm surprised that I'm having problems here. Just so we're clear: I'm deploying to /repository/example-releases, as this is a repository that holds local releases, but I'm downloading artifacts via /repository/releases as this is a repository group that contains a proxy for Central. -- Mark Raynsford | http://www.io7m.com pgpF52OiH7a5s.pgp Description: OpenPGP digital signature

Re: Specifying a deployment repository *only* by ID?

2018-11-04 Thread Mark Raynsford
On 2018-11-04T00:24:46 +0100 "Mirko Friedenhagen" wrote: > Hello Mark, > > you may put the property in a profile of your settings.xml and just call „mvn > -P releases deploy“ given the profile is called releases. Ah, yes, thank you! Didn't think of that.

Specifying a deployment repository *only* by ID?

2018-11-03 Thread Mark Raynsford
cumbersome, because I've already provided that URI and layout in the ~/.m2/settings.xml file. I'd much rather do: $ mvn deploy -DaltDeploymentRepository=releases Is there some way I can achieve this without putting anything in the project's pom.xml? -- Mark Raynsford | http

Re: PSA: You can't push POMs with child.inherit.append.path attributes to Maven Central yet

2018-11-02 Thread Mark Raynsford
a definitive solution: sorry for the mistakes, and eager to see more > user tests to detect such issues earlier in the future It was slightly poor timing on my part. I was incredibly busy throughout the entire 3.6.0 release and only had time to test one plugin. I should be more available for 3.6.1.

PSA: You can't push POMs with child.inherit.append.path attributes to Maven Central yet

2018-11-01 Thread Mark Raynsford
-4085 Just letting everyone know that they'll run into this until Sonatype do whatever updates are required. -- Mark Raynsford | http://www.io7m.com pgpcmKfhuQ2lX.pgp Description: OpenPGP digital signature

Re: Copying dependencies (including reactor modules)

2018-10-29 Thread Mark Raynsford
I've put together a small plugin to address this issue: https://github.com/io7m/halite -- Mark Raynsford | http://www.io7m.com pgpX3tqYJgKgO.pgp Description: OpenPGP digital signature

Re: Copying dependencies (including reactor modules)

2018-10-22 Thread Mark Raynsford
files that make up a given project? -- Mark Raynsford | http://www.io7m.com pgpghZ4GFiOXs.pgp Description: OpenPGP digital signature

Re: Copying dependencies (including reactor modules)

2018-10-21 Thread Mark Raynsford
y-plugin/ 'Ello. Thanks for the suggestion. Unfortunately, the Assembly plugin seems to be a no-go because it's not possible to specify a descriptor file on the command line via a property. It has to be specified in a POM file somewhere. -- Mark Raynsford | http://www.io7m.com pgp

Copying dependencies (including reactor modules)

2018-10-21 Thread Mark Raynsford
$ cd git/com.github/io7m/jregions $ mvn magic-copier:copy -DoutputDirectory=/tmp/out ... and end up with all of the project's runtime artifacts, and the transitive runtime-scoped dependencies of the project, in /tmp/out. I'm not opposed to writing a custom plugin to do this, but I'd

Re: How to create a site/doxia plugin?

2018-07-02 Thread Mark Raynsford
of the build). Here's an example of how to do this: https://github.com/io7m/primogenitor/blob/develop/pom.xml#L908 -- Mark Raynsford | http://www.io7m.com pgpM45UDaunEa.pgp Description: OpenPGP digital signature

Re: Accessing licenses/license as POM properties?

2018-05-19 Thread Mark Raynsford
ngely, other expressions (like ${project.description}) are expanded properly, but more complex expressions aren't. -- Mark Raynsford | http://www.io7m.com pgpFjONIzyHYR.pgp Description: OpenPGP digital signature

Re: Accessing licenses/license as POM properties?

2018-05-19 Thread Mark Raynsford
="Eclipse Public License" > Also, check what "mvn help:effective-pom" produces on your project vs. > my project. The effective POM for my project shows the unexpanded ${project.licenses[0]} text. I feel like I might be running into a bug here... Going to

Re: Accessing licenses/license as POM properties?

2018-05-18 Thread Mark Raynsford
. which is clearly the result of calling toString() on something that hasn't overridden it. Point is that the project.licenses property is definitely present, it's just that I'm unable to access any of the elements. -- Mark Raynsford | http://www.io7m.com pgp8naM0lCYGF.pgp Description: OpenPGP digital signature

Accessing licenses/license as POM properties?

2018-05-18 Thread Mark Raynsford
Hello. Is there a way to access the contents of the element as POM properties? I'd like to reference the URL of the first license element in a plugin execution, but there doesn't appear to be a ${pom.license.url} or anything similar. -- Mark Raynsford | http://www.io7m.com pgppgAg

Re: Writing own plugin: The parameter annotation - does it work?

2018-04-16 Thread Mark Raynsford
dule. Primarily the MinSiteMojoTest class, and the takari plugin execution in the tests module pom. I can attest that it does work from inside the IDE, but you may need to run an initial build to run the plugin's testProperties goal (Eclipse & M2E may be able to do this for you these days,

Re: New JDK 9 module chasing tool (was: Getting a list of "to be modularized" dependencies in topological order?)

2018-02-24 Thread Mark Raynsford
n't in Maven Central, you will see a (harmless) error stacktrace as the resolver tries to resolve it from Central. There's an easy fix for this, I just haven't done it yet. -- Mark Raynsford | http://www.io7m.com pgpK7CmSPCotl.pgp Description: OpenPGP digital signature

New JDK 9 module chasing tool (was: Getting a list of "to be modularized" dependencies in topological order?)

2018-02-23 Thread Mark Raynsford
27;ve filed a ticket with Sonatype and am just waiting for them to upgrade their infrastructure. Until that happens, you'll have to clone and "mvn install" this yourself. Sorry! -- Mark Raynsford | http://www.io7m.com pgpltlP_VR_C6.pgp Description: OpenPGP digital signature

Re: Getting a list of "to be modularized" dependencies in topological order?

2018-02-21 Thread Mark Raynsford
at's probably the closest you can get > right now. > OK, thanks. I think I need to write a plugin! -- Mark Raynsford | http://www.io7m.com pgpnV5jDHQGmK.pgp Description: OpenPGP digital signature

Getting a list of "to be modularized" dependencies in topological order?

2018-02-20 Thread Mark Raynsford
be sorted topologically (so that dependencies on the leaves of the tree are listed first). This lets me know the most efficient order in which to update dependencies. Is there a plugin available that can do this? I've not been able to find anything. -- Mark Raynsford | http://www.io7m.com

Re: Inserting a single module-info after shading

2018-02-03 Thread Mark Raynsford
On 2018-02-03T13:43:18 + Mark Raynsford wrote: > > It seems like I'd need to compile the module-info.java against a fake > source directory (to stop the compiler complaining that the module is > empty) and then insert the resulting module-info.class file into the > shaded

Inserting a single module-info after shading

2018-02-03 Thread Mark Raynsford
afterwards. This seems fairly ugly though. Is there a better way? -- Mark Raynsford | http://www.io7m.com pgp60bNlL2pJb.pgp Description: OpenPGP digital signature

Re: Overriding the site plugin

2017-10-15 Thread Mark Raynsford
On 2017-10-15T17:02:19 + Mark Raynsford wrote: > > Er, to clarify, I mean that I'd like to execute a new plugin entirely, > not just a different version of the maven-site-plugin. I realized after > I sent the message that it could be interpreted more than one way... Managed

Re: Overriding the site plugin

2017-10-15 Thread Mark Raynsford
On 2017-10-15T16:54:15 + Mark Raynsford wrote: > > Basically, I'd like to type "mvn site" and get my own plugin instead of > the existing maven-site-plugin. Er, to clarify, I mean that I'd like to execute a new plugin entirely, not just a different versio

Overriding the site plugin

2017-10-15 Thread Mark Raynsford
Basically, I'd like to type "mvn site" and get my own plugin instead of the existing maven-site-plugin. -- Mark Raynsford | http://www.io7m.com pgpG1XBXAEXa4.pgp Description: OpenPGP digital signature

Re: Auditing version ranges

2017-08-15 Thread Mark Raynsford
nforcer/enforcer-rules/requireUpperBoundDeps.html Thanks, didn't see that one. I'll give it a shot. -- Mark Raynsford | http://www.io7m.com pgpx3h6jMru7m.pgp Description: OpenPGP digital signature

Auditing version ranges

2017-08-15 Thread Mark Raynsford
currently using scijava's plugin to reject snapshot versions [1], and am using the dependency plugin to fail builds with undeclared dependencies. [0] https://github.com/Zlika/reproducible-build-maven-plugin [1] https://github.com/scijava/scijava-maven-plugin -- Mark Raynsford | http://ww

Re: Excessive "checking for updates" on Travis CI

2017-06-30 Thread Mark Raynsford
Apologies if that came off as rude, it wasn't intended to be. Upon re-reading it, I think it came off as a bit harsh. M pgppS5LvgbIs9.pgp Description: OpenPGP digital signature

Re: Excessive "checking for updates" on Travis CI

2017-06-29 Thread Mark Raynsford
On 2017-06-29T19:38:40 +0200 Karl Heinz Marbaise wrote: > HI, > > first you are using version ranges...that's the reason for that... > > Simple recommendation I can give is: Don't use version ranges... > > Hello. I maintain ~70 projects with complex interdependencies (this graph shows a su

Excessive "checking for updates" on Travis CI

2017-06-29 Thread Mark Raynsford
Hello. I use the free Travis CI service to build my various projects on each commit. I have a project that has a rather large number of modules (~90) and upon building each module, I see lots of this in the log: [INFO] artifact com.io7m.junreachable:com.io7m.junreachable.core: checking for updat