commons-logging lost in spring-core in maven? The 2019 Stack Overflow Developer Survey Results Are InHow can I create an executable JAR with dependencies using Maven?What's the difference between @Component, @Repository & @Service annotations in Spring?Build order of Maven multimodule project?Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2. 3.2:compile (default-compile) on project aopencommonHow to pack switchyard application with mavendownload the repositories in mavenMigrating existing jersey postgres app to spring bootmaven project using rest controller and gave a basic request and gives 404. url : http://localhost:8080/Spring4MVCHelloWorldRestServiceDemo/testrestWhile deploying spring project I am getting dependency injection errorFailed to read artifact descriptor for org.apac he.maven.plugins

Why is Grand Jury testimony secret?

Access elements in std::string where positon of string is greater than its size

Is flight data recorder erased after every flight?

How to create dashed lines/arrows in Illustrator

Falsification in Math vs Science

I looked up a future colleague on LinkedIn before I started a job. I told my colleague about it and he seemed surprised. Should I apologize?

Realistic Alternatives to Dust: What Else Could Feed a Plankton Bloom?

I see my dog run

A poker game description that does not feel gimmicky

Inline version of a function returns different value than non-inline version

How to change the limits of integration

What is the use of option -o in the useradd command?

Landlord wants to switch my lease to a "Land contract" to "get back at the city"

Is "plugging out" electronic devices an American expression?

Manuscript was "unsubmitted" because the manuscript was deposited in Arxiv Preprints

How to manage monthly salary

How can I fix this gap between bookcases I made?

Why isn't airport relocation done gradually?

Why don't Unix/Linux systems traverse through directories until they find the required version of a linked library?

The difference between dialogue marks

What do the Banks children have against barley water?

What can other administrators access on my machine?

Unbreakable Formation vs. Cry of the Carnarium

Extreme, unacceptable situation and I can't attend work tomorrow morning



commons-logging lost in spring-core in maven?



The 2019 Stack Overflow Developer Survey Results Are InHow can I create an executable JAR with dependencies using Maven?What's the difference between @Component, @Repository & @Service annotations in Spring?Build order of Maven multimodule project?Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2. 3.2:compile (default-compile) on project aopencommonHow to pack switchyard application with mavendownload the repositories in mavenMigrating existing jersey postgres app to spring bootmaven project using rest controller and gave a basic request and gives 404. url : http://localhost:8080/Spring4MVCHelloWorldRestServiceDemo/testrestWhile deploying spring project I am getting dependency injection errorFailed to read artifact descriptor for org.apac he.maven.plugins



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Below is my pom.xml



<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<properties>
<jdk.version>1.8</jdk.version>
<spring.version>4.1.6.RELEASE</spring.version>

</properties>
<dependencies>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>$spring.version</version>
</dependency>

</dependencies>

</project>


I can print the dependency tree by 'mvn dependency:tree'



- org.springframework:spring-webmvc:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-beans:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-context:jar:4.1.6.RELEASE:compile
[INFO] | - org.springframework:spring-aop:jar:4.1.6.RELEASE:compile
[INFO] | - aopalliance:aopalliance:jar:1.0:compile
[INFO] +- org.springframework:spring-core:jar:4.1.6.RELEASE:compile
[INFO] | - commons-logging:commons-logging:jar:1.2:compile
[INFO] +- org.springframework:spring-expression:jar:4.1.6.RELEASE:compile
[INFO] - org.springframework:spring-web:jar:4.1.6.RELEASE:compile


You can see the the commons-logging is under the spring-core.



But when I changed to below.



<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<properties>
<jdk.version>1.8</jdk.version>
<spring.version>4.1.6.RELEASE</spring.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</dependency>

</dependencies>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.spring.platform</groupId>
<artifactId>platform-bom</artifactId>
<version>1.1.2.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>


And print the following tree.



INFO] - org.springframework:spring-webmvc:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-beans:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-context:jar:4.1.6.RELEASE:compile
[INFO] | - org.springframework:spring-aop:jar:4.1.6.RELEASE:compile
[INFO] | - aopalliance:aopalliance:jar:1.0:compile
[INFO] +- org.springframework:spring-core:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-expression:jar:4.1.6.RELEASE:compile
[INFO] - org.springframework:spring-web:jar:4.1.6.RELEASE:compile


You can find that the commons-logging is lost.



I can click into the child of the spring-webmvc in IDE and confirm that the commons-logging exists in spring-core-4.1.6.RELEASE.pom.



I ran into this issue because I want to exclude the commons-logging from spring and plan to use jcl-over-slf4j. So why the commons-logging jar file is lost when I use the io.spring.platform. Thanks.










share|improve this question






















  • It is not recommedate to use commons-logging according the doc

    – Yu Jiaao
    Mar 8 at 10:06

















0















Below is my pom.xml



<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<properties>
<jdk.version>1.8</jdk.version>
<spring.version>4.1.6.RELEASE</spring.version>

</properties>
<dependencies>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>$spring.version</version>
</dependency>

</dependencies>

</project>


I can print the dependency tree by 'mvn dependency:tree'



- org.springframework:spring-webmvc:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-beans:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-context:jar:4.1.6.RELEASE:compile
[INFO] | - org.springframework:spring-aop:jar:4.1.6.RELEASE:compile
[INFO] | - aopalliance:aopalliance:jar:1.0:compile
[INFO] +- org.springframework:spring-core:jar:4.1.6.RELEASE:compile
[INFO] | - commons-logging:commons-logging:jar:1.2:compile
[INFO] +- org.springframework:spring-expression:jar:4.1.6.RELEASE:compile
[INFO] - org.springframework:spring-web:jar:4.1.6.RELEASE:compile


You can see the the commons-logging is under the spring-core.



But when I changed to below.



<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<properties>
<jdk.version>1.8</jdk.version>
<spring.version>4.1.6.RELEASE</spring.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</dependency>

</dependencies>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.spring.platform</groupId>
<artifactId>platform-bom</artifactId>
<version>1.1.2.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>


And print the following tree.



INFO] - org.springframework:spring-webmvc:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-beans:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-context:jar:4.1.6.RELEASE:compile
[INFO] | - org.springframework:spring-aop:jar:4.1.6.RELEASE:compile
[INFO] | - aopalliance:aopalliance:jar:1.0:compile
[INFO] +- org.springframework:spring-core:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-expression:jar:4.1.6.RELEASE:compile
[INFO] - org.springframework:spring-web:jar:4.1.6.RELEASE:compile


You can find that the commons-logging is lost.



I can click into the child of the spring-webmvc in IDE and confirm that the commons-logging exists in spring-core-4.1.6.RELEASE.pom.



I ran into this issue because I want to exclude the commons-logging from spring and plan to use jcl-over-slf4j. So why the commons-logging jar file is lost when I use the io.spring.platform. Thanks.










share|improve this question






















  • It is not recommedate to use commons-logging according the doc

    – Yu Jiaao
    Mar 8 at 10:06













0












0








0








Below is my pom.xml



<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<properties>
<jdk.version>1.8</jdk.version>
<spring.version>4.1.6.RELEASE</spring.version>

</properties>
<dependencies>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>$spring.version</version>
</dependency>

</dependencies>

</project>


I can print the dependency tree by 'mvn dependency:tree'



- org.springframework:spring-webmvc:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-beans:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-context:jar:4.1.6.RELEASE:compile
[INFO] | - org.springframework:spring-aop:jar:4.1.6.RELEASE:compile
[INFO] | - aopalliance:aopalliance:jar:1.0:compile
[INFO] +- org.springframework:spring-core:jar:4.1.6.RELEASE:compile
[INFO] | - commons-logging:commons-logging:jar:1.2:compile
[INFO] +- org.springframework:spring-expression:jar:4.1.6.RELEASE:compile
[INFO] - org.springframework:spring-web:jar:4.1.6.RELEASE:compile


You can see the the commons-logging is under the spring-core.



But when I changed to below.



<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<properties>
<jdk.version>1.8</jdk.version>
<spring.version>4.1.6.RELEASE</spring.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</dependency>

</dependencies>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.spring.platform</groupId>
<artifactId>platform-bom</artifactId>
<version>1.1.2.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>


And print the following tree.



INFO] - org.springframework:spring-webmvc:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-beans:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-context:jar:4.1.6.RELEASE:compile
[INFO] | - org.springframework:spring-aop:jar:4.1.6.RELEASE:compile
[INFO] | - aopalliance:aopalliance:jar:1.0:compile
[INFO] +- org.springframework:spring-core:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-expression:jar:4.1.6.RELEASE:compile
[INFO] - org.springframework:spring-web:jar:4.1.6.RELEASE:compile


You can find that the commons-logging is lost.



I can click into the child of the spring-webmvc in IDE and confirm that the commons-logging exists in spring-core-4.1.6.RELEASE.pom.



I ran into this issue because I want to exclude the commons-logging from spring and plan to use jcl-over-slf4j. So why the commons-logging jar file is lost when I use the io.spring.platform. Thanks.










share|improve this question














Below is my pom.xml



<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<properties>
<jdk.version>1.8</jdk.version>
<spring.version>4.1.6.RELEASE</spring.version>

</properties>
<dependencies>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>$spring.version</version>
</dependency>

</dependencies>

</project>


I can print the dependency tree by 'mvn dependency:tree'



- org.springframework:spring-webmvc:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-beans:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-context:jar:4.1.6.RELEASE:compile
[INFO] | - org.springframework:spring-aop:jar:4.1.6.RELEASE:compile
[INFO] | - aopalliance:aopalliance:jar:1.0:compile
[INFO] +- org.springframework:spring-core:jar:4.1.6.RELEASE:compile
[INFO] | - commons-logging:commons-logging:jar:1.2:compile
[INFO] +- org.springframework:spring-expression:jar:4.1.6.RELEASE:compile
[INFO] - org.springframework:spring-web:jar:4.1.6.RELEASE:compile


You can see the the commons-logging is under the spring-core.



But when I changed to below.



<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<properties>
<jdk.version>1.8</jdk.version>
<spring.version>4.1.6.RELEASE</spring.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</dependency>

</dependencies>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.spring.platform</groupId>
<artifactId>platform-bom</artifactId>
<version>1.1.2.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>


And print the following tree.



INFO] - org.springframework:spring-webmvc:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-beans:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-context:jar:4.1.6.RELEASE:compile
[INFO] | - org.springframework:spring-aop:jar:4.1.6.RELEASE:compile
[INFO] | - aopalliance:aopalliance:jar:1.0:compile
[INFO] +- org.springframework:spring-core:jar:4.1.6.RELEASE:compile
[INFO] +- org.springframework:spring-expression:jar:4.1.6.RELEASE:compile
[INFO] - org.springframework:spring-web:jar:4.1.6.RELEASE:compile


You can find that the commons-logging is lost.



I can click into the child of the spring-webmvc in IDE and confirm that the commons-logging exists in spring-core-4.1.6.RELEASE.pom.



I ran into this issue because I want to exclude the commons-logging from spring and plan to use jcl-over-slf4j. So why the commons-logging jar file is lost when I use the io.spring.platform. Thanks.







java spring maven






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 8 at 8:49









liam xuliam xu

1,12732037




1,12732037












  • It is not recommedate to use commons-logging according the doc

    – Yu Jiaao
    Mar 8 at 10:06

















  • It is not recommedate to use commons-logging according the doc

    – Yu Jiaao
    Mar 8 at 10:06
















It is not recommedate to use commons-logging according the doc

– Yu Jiaao
Mar 8 at 10:06





It is not recommedate to use commons-logging according the doc

– Yu Jiaao
Mar 8 at 10:06












2 Answers
2






active

oldest

votes


















0














By importing a pom, you apply the dependencyManagement in that pom, but also the dependencyManagement from it's parent and it's parent's parent etc.



The spring platform-bom:1.1.2.RELEASE extends from spring-boot-starter-parent:1.2.3.RELEASE. And in that parent pom there's a dependencyManagement part that already excludes the commons-logging:



<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>$spring.version</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>





share|improve this answer






























    0














    You are using io.spring.platform:platform-bom:1.1.2.RELEASE for dependency management, and that causes to drop the (transitive) dependency to commons-logging.



    Looking inside that pom (see platform-bom-1.1.2.RELEASE.pom ) , we see its parent is org.springframework.boot:spring-boot-starter-parent:1.2.3.RELEASE (at spring-boot-starter-parent:1.2.3.RELEASE.pom.



    The boot-starter parent excludes common-logging (check the pom file). So, if you use the bom and you still need the common-logging dependency, you have to import it separately in your pom.






    share|improve this answer























    • Damn, you beat me by 3 seconds! Just because I was fiddling with formatting :-S

      – Geert Pante
      Mar 8 at 9:52











    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55059597%2fcommons-logging-lost-in-spring-core-in-maven%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    By importing a pom, you apply the dependencyManagement in that pom, but also the dependencyManagement from it's parent and it's parent's parent etc.



    The spring platform-bom:1.1.2.RELEASE extends from spring-boot-starter-parent:1.2.3.RELEASE. And in that parent pom there's a dependencyManagement part that already excludes the commons-logging:



    <dependencyManagement>
    <dependencies>
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-core</artifactId>
    <version>$spring.version</version>
    <exclusions>
    <exclusion>
    <groupId>commons-logging</groupId>
    <artifactId>commons-logging</artifactId>
    </exclusion>
    </exclusions>
    </dependency>
    </dependencies>
    </dependencyManagement>





    share|improve this answer



























      0














      By importing a pom, you apply the dependencyManagement in that pom, but also the dependencyManagement from it's parent and it's parent's parent etc.



      The spring platform-bom:1.1.2.RELEASE extends from spring-boot-starter-parent:1.2.3.RELEASE. And in that parent pom there's a dependencyManagement part that already excludes the commons-logging:



      <dependencyManagement>
      <dependencies>
      <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-core</artifactId>
      <version>$spring.version</version>
      <exclusions>
      <exclusion>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      </exclusion>
      </exclusions>
      </dependency>
      </dependencies>
      </dependencyManagement>





      share|improve this answer

























        0












        0








        0







        By importing a pom, you apply the dependencyManagement in that pom, but also the dependencyManagement from it's parent and it's parent's parent etc.



        The spring platform-bom:1.1.2.RELEASE extends from spring-boot-starter-parent:1.2.3.RELEASE. And in that parent pom there's a dependencyManagement part that already excludes the commons-logging:



        <dependencyManagement>
        <dependencies>
        <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-core</artifactId>
        <version>$spring.version</version>
        <exclusions>
        <exclusion>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        </exclusion>
        </exclusions>
        </dependency>
        </dependencies>
        </dependencyManagement>





        share|improve this answer













        By importing a pom, you apply the dependencyManagement in that pom, but also the dependencyManagement from it's parent and it's parent's parent etc.



        The spring platform-bom:1.1.2.RELEASE extends from spring-boot-starter-parent:1.2.3.RELEASE. And in that parent pom there's a dependencyManagement part that already excludes the commons-logging:



        <dependencyManagement>
        <dependencies>
        <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-core</artifactId>
        <version>$spring.version</version>
        <exclusions>
        <exclusion>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        </exclusion>
        </exclusions>
        </dependency>
        </dependencies>
        </dependencyManagement>






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 8 at 9:51









        Geert PanteGeert Pante

        8,4902142




        8,4902142























            0














            You are using io.spring.platform:platform-bom:1.1.2.RELEASE for dependency management, and that causes to drop the (transitive) dependency to commons-logging.



            Looking inside that pom (see platform-bom-1.1.2.RELEASE.pom ) , we see its parent is org.springframework.boot:spring-boot-starter-parent:1.2.3.RELEASE (at spring-boot-starter-parent:1.2.3.RELEASE.pom.



            The boot-starter parent excludes common-logging (check the pom file). So, if you use the bom and you still need the common-logging dependency, you have to import it separately in your pom.






            share|improve this answer























            • Damn, you beat me by 3 seconds! Just because I was fiddling with formatting :-S

              – Geert Pante
              Mar 8 at 9:52















            0














            You are using io.spring.platform:platform-bom:1.1.2.RELEASE for dependency management, and that causes to drop the (transitive) dependency to commons-logging.



            Looking inside that pom (see platform-bom-1.1.2.RELEASE.pom ) , we see its parent is org.springframework.boot:spring-boot-starter-parent:1.2.3.RELEASE (at spring-boot-starter-parent:1.2.3.RELEASE.pom.



            The boot-starter parent excludes common-logging (check the pom file). So, if you use the bom and you still need the common-logging dependency, you have to import it separately in your pom.






            share|improve this answer























            • Damn, you beat me by 3 seconds! Just because I was fiddling with formatting :-S

              – Geert Pante
              Mar 8 at 9:52













            0












            0








            0







            You are using io.spring.platform:platform-bom:1.1.2.RELEASE for dependency management, and that causes to drop the (transitive) dependency to commons-logging.



            Looking inside that pom (see platform-bom-1.1.2.RELEASE.pom ) , we see its parent is org.springframework.boot:spring-boot-starter-parent:1.2.3.RELEASE (at spring-boot-starter-parent:1.2.3.RELEASE.pom.



            The boot-starter parent excludes common-logging (check the pom file). So, if you use the bom and you still need the common-logging dependency, you have to import it separately in your pom.






            share|improve this answer













            You are using io.spring.platform:platform-bom:1.1.2.RELEASE for dependency management, and that causes to drop the (transitive) dependency to commons-logging.



            Looking inside that pom (see platform-bom-1.1.2.RELEASE.pom ) , we see its parent is org.springframework.boot:spring-boot-starter-parent:1.2.3.RELEASE (at spring-boot-starter-parent:1.2.3.RELEASE.pom.



            The boot-starter parent excludes common-logging (check the pom file). So, if you use the bom and you still need the common-logging dependency, you have to import it separately in your pom.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 8 at 9:51









            DanieleDaniele

            1,271611




            1,271611












            • Damn, you beat me by 3 seconds! Just because I was fiddling with formatting :-S

              – Geert Pante
              Mar 8 at 9:52

















            • Damn, you beat me by 3 seconds! Just because I was fiddling with formatting :-S

              – Geert Pante
              Mar 8 at 9:52
















            Damn, you beat me by 3 seconds! Just because I was fiddling with formatting :-S

            – Geert Pante
            Mar 8 at 9:52





            Damn, you beat me by 3 seconds! Just because I was fiddling with formatting :-S

            – Geert Pante
            Mar 8 at 9:52

















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55059597%2fcommons-logging-lost-in-spring-core-in-maven%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

            Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

            Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved