[英]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 不幸的是,要更改此内容,您将需要更新源代码。
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分钟) 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.