简体   繁体   English

覆盖Maven项目中依赖项的样式表

[英]Override the style sheet of a dependency in a maven project

I have a dependency in a maven project which renders html pages. 我在渲染HTML页面的Maven项目中有一个依赖项。 I want to change the style of a table since the view is getting cut off. 由于视图已被切断,因此我想更改表的样式。 How can I access the stylesheet of the table and inject rules into it? 如何访问表的样式表并将规则插入表中? Using intellij as the IDE and the dependency is the FF4J package. 使用intellij作为IDE和依赖项是FF4J软件包。

The CSS you are looking for is part of the dependency ff4j-web and the static HTML content is located in Github Repository . 您要查找的CSS是ff4j-web依赖ff4j-web一部分,静态HTML内容位于Github存储库中 This solution has been chosen to have a working web application inside a JAR with no internet required (back in 2013) 选择该解决方案是为了在JAR内拥有一个可运行的Web应用程序,而无需互联网(早在2013年)

Unfortunately, to change this content you will have update the source code 不幸的是,要更改此内容,您将需要更新源代码。

  • Fork the repository on your account 在您的帐户上分叉存储库
  • mvn clean install to check everything is OK (you may want to skip the 10k+ tests with -Dmaven.test.skip=true it should work but takes 12min) mvn clean install检查一切正常(您可能需要使用-Dmaven.test.skip=true跳过10k +测试,它应该可以工作,但需要12分钟)
  • Change version of dependency in your own project from 1.7.2 to 1.8-SNAPSHOT 将您自己项目中的依赖项版本从1.7.2更改为1.8-SNAPSHOT
  • Edit the CSS according to your findings and clean install ff4j-web. 根据您的发现编辑CSS并干净安装ff4j-web。
  • Create a pull request to have everyone benefit of your changes 创建请求请求,使所有人都受益于您的更改

If you know what is missing in the CSS you can also update the issue existing one adn we will be pleased to release 1.7.3 with your updates. 如果您知道CSS缺少的内容,还可以更新存在的问题我们将很高兴发布1.7.3的更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM