Re: Default Version of plugin

2020-07-13 Thread Martin Funk
So if not told otherwise, in plugin management, maven ist defaulting back to?
https://github.com/apache/maven/blob/master/maven-core/src/main/resources/META-INF/plexus/default-bindings.xml

Wow, I'm deeply surprised.

So, what is the recommended way to work with that? Is there a way to change the 
default-binding locally or is it recommended to to configure each plugin in the 
pom.xml as described by Maarten?

Configuring it in the pom would lead to this strange trait in my mind, that to 
enjoy the "default" benefits of a "current" core plugin I have to explicitly 
configure it. 

mf


On 2020/07/12 19:48:45, Tamás Cservenák  wrote: 
> Technically, plugin version comes from packaging mappings, not the
> super-pom, but yes, Maarten is right that in this case maven version
> "tells" version of plugin to be used.
> 
> HTH
> T
> 
> On Sun, Jul 12, 2020 at 8:40 PM Maarten Mulders 
> wrote:
> 
> > Hi Martin,
> >
> > Your super simplistic POM does not specify a parent, and as such it
> > inherits from the default POM that ships with Maven 3.6.3.
> >
> > Using mvn help:effective-pom -Dverbose=true you can see how the
> > effective model for your project builds up, and there you'll find that
> > version 2.2 is determined by Maven 3.6.3 indeed.
> >
> > You can declare the desired version for the Maven WAR Plugin by adding
> > this snippet to your POM:
> >
> >   
> > org.apache.maven.plugins
> > maven-war-plugin
> > 3.3.0
> >   
> >
> > Hope this helps.
> >
> > Maarten
> >
> > On 12/07/2020 15:21, Martin Funk wrote:
> > > How are the default versions of of a plugin in determined?
> > >
> > > My setup chooses:
> > > org.apache.maven.plugins:maven-war-plugin:2.2:war
> > > where I'd expect:
> > > org.apache.maven.plugins:maven-war-plugin:3.3:war
> > >
> > > I.e.: I downloaded the current maven and execute it in place:
> > > › ~/Downloads/apache-maven-3.6.3/bin/mvn -v
> > > Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
> > > Maven home: /Users/mafulafunk/Downloads/apache-maven-3.6.3
> > > Java version: 11.0.7, vendor: AdoptOpenJDK, runtime:
> > /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
> > > Default locale: en_DE, platform encoding: UTF-8
> > > OS name: "mac os x", version: "10.15.5", arch: "x86_64", family: "Mac"
> > >
> > >
> > > When running
> > > › ~/Downloads/apache-maven-3.6.3/bin/mvn clean package
> > > agains this super simplistic pom.xml:
> > > 
> > > 4.0.0
> > > foo.bar
> > > baz
> > > 1
> > > war
> > > 
> > >
> > > An error ist thrown:
> > >
> > > [...]
> > > [INFO] Building war:
> > /Users/mafulafunk/Code/gitlab/eigenfunk/eigen_microprofile/target/baz-1.war
> > > [INFO]
> > 
> > > [INFO] BUILD FAILURE
> > > [INFO]
> > 
> > > [INFO] Total time:  0.847 s
> > > [INFO] Finished at: 2020-07-12T15:13:41+02:00
> > > [INFO]
> > 
> > > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project
> > baz: Error assembling WAR: webxml attribute is required (or pre-existing
> > WEB-INF/web.xml if executing in update mode) -> [Help 1]
> > > [...]
> > >
> > > Which surprises me as I thought the current plugin version 3.3.0
> > > https://maven.apache.org/plugins/maven-war-plugin/index.html
> > >
> > > What am I missing?
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > For additional commands, e-mail: users-h...@maven.apache.org
> > >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
> 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Default Version of plugin

2020-07-12 Thread Martin Funk
How are the default versions of of a plugin in determined?

My setup chooses:
org.apache.maven.plugins:maven-war-plugin:2.2:war
where I'd expect:
org.apache.maven.plugins:maven-war-plugin:3.3:war

I.e.: I downloaded the current maven and execute it in place:
› ~/Downloads/apache-maven-3.6.3/bin/mvn -v
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /Users/mafulafunk/Downloads/apache-maven-3.6.3
Java version: 11.0.7, vendor: AdoptOpenJDK, runtime: 
/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
Default locale: en_DE, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.5", arch: "x86_64", family: "Mac"


When running 
› ~/Downloads/apache-maven-3.6.3/bin/mvn clean package
agains this super simplistic pom.xml:

4.0.0
foo.bar
baz
1
war


An error ist thrown:

[...]
[INFO] Building war: 
/Users/mafulafunk/Code/gitlab/eigenfunk/eigen_microprofile/target/baz-1.war
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time:  0.847 s
[INFO] Finished at: 2020-07-12T15:13:41+02:00
[INFO] 
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project baz: 
Error assembling WAR: webxml attribute is required (or pre-existing 
WEB-INF/web.xml if executing in update mode) -> [Help 1]
[...]

Which surprises me as I thought the current plugin version 3.3.0
https://maven.apache.org/plugins/maven-war-plugin/index.html

What am I missing?

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Couldn't find a version in [2.0.0] to match range [1.0,2.0)

2008-02-07 Thread Martin Funk
Hi,

I'm trying to build geronimos daytrader application.
http://svn.apache.org/repos/asf/geronimo/daytrader/trunk

As I run 'mvn install' this comes up:

Couldn't find a version in [2.0.0] to match range [1.0,2.0)
  org.apache.geronimo.specs:geronimo-jaxrpc_1.1_spec:jar:null

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  codehaus-snapshots (http://snapshots.repository.codehaus.org),
  apache-incubator (http://people.apache.org/repo/m2-incubating-repository/)


What is this message trying to tell me? I understand that in the
pom.xmlthere is a dependency given on the geronimo-jaxrpc module in
the range of [
1.0, 2.0)
What I don't understand is that maven is not finding any version within that
range, since there are such modules present in the repository?

Can someone please give me a hint?

Martin


Re: Couldn't find a version in [2.0.0] to match range [1.0,2.0)

2008-02-07 Thread Martin Funk
As I read it its not a dependecy coming form somewhere, but its a list of
available versions.
Maybe I'm wrong.
But following my assumption I find:
http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-jaxrpc_1.1_spec/maven-metadata.xml
which claims that there is only version 2.0.0 available, though there are
the other directories too.

So is that a bug or is it just a convention to 'deprecate' or 'delete'
versions in the repository?

Martin

2008/2/7, Wayne Fay [EMAIL PROTECTED]:

 I know they've been working on their applications lately as we've had
 another question or two recently on this list related to bugs in their
 code/samples.

 Please ask them directly (Geronimo Dev) why its not working.

 (Looking at the error message, it seems like there is a dependency on
 2.0.0 coming from somewhere, but this module specifies [1.0, 2.0) which
 means that 2.0.0 is not acceptable.)

 Wayne

 On 2/7/08, Martin Funk [EMAIL PROTECTED] wrote:
  Hi,
 
  I'm trying to build geronimos daytrader application.
  http://svn.apache.org/repos/asf/geronimo/daytrader/trunk
 
  As I run 'mvn install' this comes up:
 
  Couldn't find a version in [2.0.0] to match range [1.0,2.0)
org.apache.geronimo.specs:geronimo-jaxrpc_1.1_spec:jar:null
 
  from the specified remote repositories:
central (http://repo1.maven.org/maven2),
apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository
 ),
apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository
 ),
codehaus-snapshots (http://snapshots.repository.codehaus.org),
apache-incubator (
 http://people.apache.org/repo/m2-incubating-repository/)
 
 
  What is this message trying to tell me? I understand that in the
  pom.xmlthere is a dependency given on the geronimo-jaxrpc module in
  the range of [
  1.0, 2.0)
  What I don't understand is that maven is not finding any version within
 that
  range, since there are such modules present in the repository?
 
  Can someone please give me a hint?
 
  Martin
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]