Offline builds nearly impossible

2015-11-13 Thread Jörg Schaible
Hi folks, we have a requirement for a source code escrow (https://en.wikipedia.org/wiki/Source_code_escrow). Therefore we intended provide our source code with a local Maven repository that can be used for offline builds. However, all attempts have been failed so far. What have we done: 1/

Re: Offline builds nearly impossible

2015-11-13 Thread Stephen Connolly
I would have tried the -llr command line option On 13 November 2015 at 11:58, Jörg Schaible wrote: > Hi folks, > > we have a requirement for a source code escrow > (https://en.wikipedia.org/wiki/Source_code_escrow). Therefore we intended > provide our source code

Re: Offline builds nearly impossible

2015-11-13 Thread Stephen Connolly
IOW mvn -o -llr goal Should do what you want where you have changed the repo url. The _remote.repositories stores the URL of the repository not just the id. If you are doing offline, better would be to have a repository manager and a hostname to host it at... but if you want to use a file:///

maven-plugin-testing-harness: NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest

2015-11-13 Thread org.apache.maven.user
Hello. I'm attempting to add a Maven plugin to a small compiler project: https://github.com/io7m/jpra However, given the following trivial pom.xml: https://github.com/io7m/jpra/blob/develop/io7m-jpra-maven-plugin/pom.xml ... and the following no-op unit test:

Re: Offline builds nearly impossible

2015-11-13 Thread Paul Benedict
I think most people, at least once in their life, try to use their local repository cache as an offline remote repository. However, the two aren't the same in concept though, IIRC, the last time I tried. You still need to keep the two separate. Now it would be interesting if a tool existed to

Re: Offline builds nearly impossible

2015-11-13 Thread Jason van Zyl
If this does not work please let me know. This is what I’ve used in the past and if it doesn’t work I agree it needs to be fixed. I honestly haven’t tried making a hermetically sealed build in a few years but last year worked on a project that did no network traversal aside from using

Re: Offline builds nearly impossible

2015-11-13 Thread Jörg Schaible
Hi Jason, Jason van Zyl wrote: > Use a file based remote repository instead of trying to build in offline > mode. > > You can either use a repository manager to create the remote repository or > an empty local repository with a full build. As noted though, you have to > remove all local

Re: Offline builds nearly impossible

2015-11-13 Thread Ron Wheeler
Not sure if the extra work would be worthwhile when you have a number of free repo packages that are better in many ways than the maven cache and can be installed on Windows or Linux. Ron On 13/11/2015 12:44 PM, cody.a.fy...@wellsfargo.com wrote: I just wanted to weigh in. This indeed

Re: Offline builds nearly impossible

2015-11-13 Thread Jason van Zyl
In this case they would not be better and far less convenient. For a hermetically sealed build at any rate. The local repository cache cleared of the tracking files serves as a perfectly fine remote repository for this use case. Most escrow bundles carry all the tools and sources required to

RE: Offline builds nearly impossible

2015-11-13 Thread cody.a.fyler
I just wanted to weigh in. This indeed does not function in what I would call an "intuitive" way. It would be really nice if offline mode meant just provide the switch and everything used your local repo. No extra configuration or trickery required. I know in modern times, the idea of always

RE: Offline builds nearly impossible

2015-11-13 Thread Gary Gregory
On Nov 13, 2015 9:45 AM, wrote: > > I just wanted to weigh in. > > This indeed does not function in what I would call an "intuitive" way. > > It would be really nice if offline mode meant just provide the switch and everything used your local repo. No extra

Re: maven-plugin-testing-harness: NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest

2015-11-13 Thread org.apache.maven.user
On 2015-11-13T17:09:36 -0500 Jason van Zyl wrote: > You must be running with a version of Maven where that class does not exist? > That error means you’re using a library where that class was present during > building but not present at runtime. You running something older

Re: Offline builds nearly impossible

2015-11-13 Thread Ron Wheeler
I certainly would defer to your expertise. Ron On 13/11/2015 2:33 PM, Jason van Zyl wrote: In this case they would not be better and far less convenient. For a hermetically sealed build at any rate. The local repository cache cleared of the tracking files serves as a perfectly fine remote

Re: maven-plugin-testing-harness: NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest

2015-11-13 Thread Karl Heinz Marbaise
Hi, On 11/13/15 2:23 PM, org.apache.maven.u...@io7m.com wrote: On 2015-11-13T10:03:54 + <org.apache.maven.u...@io7m.com> wrote: Hello. I'm attempting to add a Maven plugin to a small compiler project: Here's a tiny repro case. https://github.com/io7m/mvn-bug-20151113 Why a

Re: maven-plugin-testing-harness: NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest

2015-11-13 Thread org.apache.maven.user
'Lo! On 2015-11-13T21:39:06 +0100 Karl Heinz Marbaise wrote: > > Why are you using this: > > >org.apache.maven >maven-plugin-api >2.0 > > > Better use at least version 3.0 of this... Because the documentation says 2.0:

Re: maven-plugin-testing-harness: NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest

2015-11-13 Thread org.apache.maven.user
On 2015-11-13T21:07:23 + wrote: > On 2015-11-13T21:39:06 +0100 > Karl Heinz Marbaise wrote: > > > > Better use at least version 3.0 of this... > > I'll try 3.0. No luck, unfortunately. Same error. M

Re: Offline builds nearly impossible

2015-11-13 Thread Paul Benedict
Jason's suggestion is what I have attempted in the past. You want to mirror your remote repository using file:/// pointing to your disk copy. Then you don't have to be offline. However, this is NOT your local repo! You still need that. Don't confuse the two even if both are on your machine.

Re: maven-plugin-testing-harness: NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest

2015-11-13 Thread Jason van Zyl
You must be running with a version of Maven where that class does not exist? That error means you’re using a library where that class was present during building but not present at runtime. You running something older than Maven 2.2.x? > On Nov 13, 2015, at 4:59 PM,

Re: maven-plugin-testing-harness: NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest

2015-11-13 Thread Jason van Zyl
You are missing the dependencies which contain the necessary classes. I made a PR for you. The project test now executes. FYI, I use this all the time now for plugin unit and integration testing: https://github.com/takari/takari-plugin-testing-project > On Nov 13, 2015, at 5:30 PM,

Re: maven-plugin-testing-harness: NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest

2015-11-13 Thread org.apache.maven.user
On 2015-11-13T10:03:54 + <org.apache.maven.u...@io7m.com> wrote: > Hello. > > I'm attempting to add a Maven plugin to a small compiler project: Here's a tiny repro case. https://github.com/io7m/mvn-

Re: Offline builds nearly impossible

2015-11-13 Thread Jason van Zyl
Use a file based remote repository instead of trying to build in offline mode. You can either use a repository manager to create the remote repository or an empty local repository with a full build. As noted though, you have to remove all local repository metadata and files if you create the

Re: Offline builds nearly impossible

2015-11-13 Thread Jörg Schaible
Hi Stephen, Stephen Connolly wrote: > IOW > > mvn -o -llr goal > > Should do what you want where you have changed the repo url. The > _remote.repositories stores the URL of the repository not just the id. My local repo was populated using Maven 3.3.8 or 3.3.9 and those files never contained