DevOps 应用集

分类: Maven

pom下覆盖springboot下tomat子包版本

Posted on 15 7 月, 2020 by admin

org.springframework.boot 2.2.1 version 下包含 tomcat 9.027 version
如果要在pom中升级tomcat到9.037版本,做如下修改

<tomcat-embed.version>9.0.37</tomcat-embed.version>

<dependencyManagement> 

 <dependencies> 

 <dependency> 

 <groupId>org.apache.tomcat.embed</groupId> 

 <artifactId>tomcat-embed-core</artifactId> 

 <version>${tomcat-embed.version}</version> 

 </dependency> 

 <dependency> 

 <groupId>org.apache.tomcat.embed</groupId> 

 <artifactId>tomcat-embed-el</artifactId> 

 <version>${tomcat-embed.version}</version> 

 </dependency> 

 <dependency> 

 <groupId>org.apache.tomcat.embed</groupId> 

 <artifactId>tomcat-embed-websocket</artifactId> 

 <version>${tomcat-embed.version}</version> 

 </dependency> 

 </dependencies>




建议使用 Maven Helper plugin for Idea 观看

Posted in Maven, TomcatLeave a Comment on pom下覆盖springboot下tomat子包版本

配置和运行Sona

Posted on 8 7 月, 20208 7 月, 2020 by admin

settings.xml 里加入

<profiles>
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!-- Sonar Host e.g. http://localhost:9000 -->
<sonar.host.url>
http://localhost:9000
</sonar.host.url>
</properties>
</profile>
</profiles>

 

Exclusion files in pom.xml

<sonar.exclusions>

/usr/file1

/usr/file2


</sonar.exclusions>

Run Sona using maven

mvn clean install  sonar:sonar -s /maven/location/settings.xml
Posted in Maven, SonaLeave a Comment on 配置和运行Sona

Mave/git issue fixed 例子

Posted on 18 11 月, 201918 11 月, 2019 by admin
  • 当 maven compile code时, 下载很多的resource files时, 怎样略过如下
mvn clean compile -o install
  • 开发免不了进行代码review,当遇到git提交出现 ‘Changes not staged for commit’ 问题的解决方法
    Cases are
    1) when pull from remote branch1
    2) Modify and submit, then push to remote branch2
    3) Remote branch2 updated some files, and local branch modified
    4) Cant submit and push to remote branch2 now

Solution steps:
1) Check out new local branch from remote branch2
2) Modify new local branch and submit & push to remote branch2
3) After merge to remote branch1(e.g. master branch), remove old local branch and checkout from remote branch
4) Remove the local branch which pushes to remote branch2

Posted in Git, MavenLeave a Comment on Mave/git issue fixed 例子

近期文章

  • Oracle表中字段为timestamp值转化为date显示的sql语句
  • 解决idea环境代码保存后不能实时编译的问题
  • 自定义XStream fields序列化顺序
  • Oracle 修改blob为clob,clob为blob
  • Apple Script: 备份Mac Notes到PDFs

近期评论

    归档

    • 2021 年 2 月
    • 2020 年 8 月
    • 2020 年 7 月
    • 2020 年 1 月
    • 2019 年 11 月
    • 2019 年 5 月
    • 2019 年 3 月
    • 2019 年 2 月
    • 2018 年 12 月

    分类

    • Apple Script
    • docker
    • Git
    • gRPC
    • Hana
    • Idea
    • Java
    • Jenkins
    • Linux
    • Maven
    • Mockito
    • Oracle
    • Selenium
    • Sona
    • SpringBoot
    • Tomcat
    • Uncategorized
    • VirtualBox
    • VMWare
    • VPN
    • XML

    其他操作

    • 登录
    • 条目 feed
    • 评论 feed
    • WordPress.org

    bidvertiser

    Powered by DoHints.cn