[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mh_make full log



Geert Stappers <stappers@stappers.nl> writes:

>> But where set "bundle version should be 3.5.0" ??
>> 
>> | $ grep --context=2 bundle $( find . -name pom.xml )
>
> Search for 'bundle' in the seven pom.xml files
> and hope to catch a version number or something alike

If I need to find almost anything about the project, I would never start
with grep but Maven itself because there are, at least, project
inheritance:

        <parent>
          <groupId>com.fasterxml.jackson</groupId>
          <artifactId>jackson-base</artifactId>
          <version>2.9.4</version>
        </parent>

and properties:

        <properties>
          <jackson.version>2.9.4</jackson.version>
          <jackson.version.annotations>2.9.0</jackson.version.annotations>
          <jackson.version.core>2.9.4</jackson.version.core>
          <jackson.version.databind>2.9.4</jackson.version.databind>
          <jackson.version.dataformat>2.9.4</jackson.version.dataformat>
          <jackson.version.datatype>2.9.4</jackson.version.datatype>
          <jackson.version.jacksonjr>2.9.4</jackson.version.jacksonjr>
          <jackson.version.jaxrs>2.9.4</jackson.version.jaxrs>
          <jackson.version.module>2.9.4</jackson.version.module>
          <jackson.version.module.kotlin>2.9.4</jackson.version.module.kotlin>
          <jackson.version.module.scala>2.9.4</jackson.version.module.scala>
          <javac.src.version>1.7</javac.src.version>
          <javac.target.version>1.7</javac.target.version>
          <version.asm>5.2</version.asm>
          <version.junit>4.12</version.junit>
          <version.plugin.bundle>3.2.0</version.plugin.bundle>
          <version.plugin.cobertura>2.7</version.plugin.cobertura>
          <version.plugin.compiler>3.2</version.plugin.compiler>
          <version.plugin.enforcer>3.0.0-M1</version.plugin.enforcer>
          <version.plugin.jar>2.5</version.plugin.jar>
          <version.plugin.javadoc>3.0.0-M1</version.plugin.javadoc>
          <version.plugin.release>2.5.3</version.plugin.release>
          <version.plugin.replacer>1.5.2</version.plugin.replacer>
          <version.plugin.shade>2.4.3</version.plugin.shade>
          <version.plugin.surefire>2.17</version.plugin.surefire>
        </properties>

that must be 'resolved' first and which make 'grep pom.xml' almost
useless.

> Help is needed

tl;dr - maven-bundle-plugin:3.2.0 is required by the project

    $ git clone https://salsa.debian.org/stappers/jackson-modules-base.git .
    $ git show --shortstat 
    commit f074cf80b4ec0dff3989aa1ac71a582d1d73424e (HEAD -> master, origin/master, origin/HEAD)
    Author: Geert Stappers <stappers@stappers.nl>
    Date:   Mon Jun 25 23:41:30 2018 +0200

        new file:   debian/README.workinprogress

        Tells what is (was?) going on.

     1 file changed, 12 insertions(+)
    $ mvn help:effective-pom -Doutput=effective-pom.xml

The last command will resolve all versions and write them into
effective-pom.xml file. And now it actually makes sense to use grep:

    $ grep --line-number --context=2 maven-bundle-plugin effective-pom.xml
    502-          <plugin>
    503-            <groupId>org.apache.felix</groupId>
    504:            <artifactId>maven-bundle-plugin</artifactId>
    505-            <version>3.2.0</version>
    506-            <configuration>
    --
    788-        <plugin>
    789-          <groupId>org.apache.felix</groupId>
    790:          <artifactId>maven-bundle-plugin</artifactId>
    791-          <version>3.2.0</version>
    792-          <extensions>true</extensions>
    --
    1944-          <plugin>
    1945-            <groupId>org.apache.felix</groupId>
    1946:            <artifactId>maven-bundle-plugin</artifactId>
    1947-            <version>3.2.0</version>
    1948-            <configuration>
    --
    2279-        <plugin>
    2280-          <groupId>org.apache.felix</groupId>
    2281:          <artifactId>maven-bundle-plugin</artifactId>
    2282-          <version>3.2.0</version>
    2283-          <extensions>true</extensions>
    --
    3654-          <plugin>
    3655-            <groupId>org.apache.felix</groupId>
    3656:            <artifactId>maven-bundle-plugin</artifactId>
    3657-            <version>3.2.0</version>
    3658-            <configuration>
    --
    3986-        <plugin>
    3987-          <groupId>org.apache.felix</groupId>
    3988:          <artifactId>maven-bundle-plugin</artifactId>
    3989-          <version>3.2.0</version>
    3990-          <extensions>true</extensions>
    --
    5324-          <plugin>
    5325-            <groupId>org.apache.felix</groupId>
    5326:            <artifactId>maven-bundle-plugin</artifactId>
    5327-            <version>3.2.0</version>
    5328-            <configuration>
    --
    5657-        <plugin>
    5658-          <groupId>org.apache.felix</groupId>
    5659:          <artifactId>maven-bundle-plugin</artifactId>
    5660-          <version>3.2.0</version>
    5661-          <extensions>true</extensions>
    --
    6993-          <plugin>
    6994-            <groupId>org.apache.felix</groupId>
    6995:            <artifactId>maven-bundle-plugin</artifactId>
    6996-            <version>3.2.0</version>
    6997-            <configuration>
    --
    7326-        <plugin>
    7327-          <groupId>org.apache.felix</groupId>
    7328:          <artifactId>maven-bundle-plugin</artifactId>
    7329-          <version>3.2.0</version>
    7330-          <extensions>true</extensions>
    --
    8690-          <plugin>
    8691-            <groupId>org.apache.felix</groupId>
    8692:            <artifactId>maven-bundle-plugin</artifactId>
    8693-            <version>3.2.0</version>
    8694-            <configuration>
    --
    9022-        <plugin>
    9023-          <groupId>org.apache.felix</groupId>
    9024:          <artifactId>maven-bundle-plugin</artifactId>
    9025-          <version>3.2.0</version>
    9026-          <extensions>true</extensions>
    --
    10354-          <plugin>
    10355-            <groupId>org.apache.felix</groupId>
    10356:            <artifactId>maven-bundle-plugin</artifactId>
    10357-            <version>3.2.0</version>
    10358-            <configuration>
    --
    10745-        <plugin>
    10746-          <groupId>org.apache.felix</groupId>
    10747:          <artifactId>maven-bundle-plugin</artifactId>
    10748-          <version>3.2.0</version>
    10749-          <extensions>true</extensions>

Hope this helps.

-- 
Mykola
https://manandbytes.git{lab,hub}.io/


Reply to: