maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Connolly <stephen.alan.conno...@gmail.com>
Subject Re: Stop offline mode artifact version renumbering
Date Mon, 29 Jul 2013 22:15:59 GMT
The issue here is that you want to subvert Maven and provide your own jars.
When you decide to go down that road you *have* to provide *all* your own
poms.

If you were happy to take the poms and jars that you were given by a
*trusted* repository manager, then you'd be fine.

When you say something like "I want maven to ignore what the poms say about
version and take the version number from what I have installed" then you
don't want Maven.

Maven takes as a given that what the poms say about version is the truth.
If you want to use specific jars, you need to create the correct poms for
those jars.... and you need to think about the correct transitive
dependencies of those jars... and you need to do that for the closed graph
that is your entire dependency tree.

If you start from that place, you will get Maven to do what you need.


On 29 July 2013 23:09, Bahmer, Eric V <bahmer@lanl.gov> wrote:

> I didn't pick the build system unfortunately.
> I'm just using what came with the productÅ 
> And cursing their developers for using something that doesn't seem to mesh
> with high security environments.
>
>
> On 7/29/13 8:18 AM, "Stephen Connolly" <stephen.alan.connolly@gmail.com>
> wrote:
>
> >On 29 July 2013 15:04, Bahmer, Eric V <bahmer@lanl.gov> wrote:
> >
> >> I was just hoping that maybe maven could use the local version numbers
> >> without renumbering everything as a command line option, especially for
> >>my
> >> environment where I can't have the maven going online and have to use
> >>the
> >> packages that I built from sources due to security requirements.
> >>
> >>
> >In the on-going war between Maven and people who want to make Maven do
> >things their way, chalk up another victory for Maven.
> >
> >You entered this battle determined to bend Maven to your will... that is
> >the only surefire way to ensure your defeat by Maven. I suspect the fixing
> >of your issues will involve unwinding a lot of "hard won" battles on your
> >behalf.
> >
> >I humbly suggest that you consider a different build system, as Maven does
> >not share your philosophy, and as such you will only end up hating Maven
> >(when you should be hating yourself for using it against an inappropriate
> >use-case). That way, when you have an appropriate use case for a Maven
> >style build of a project, you will still be open to using Maven for that
> >project.
> >
> >-Stephen
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message