maven

cannot import cobertura-maven-plugin in intelliji

。_饼干妹妹 提交于 2021-01-29 17:28:06
问题 I use Intelliji IDEA 2019.3 and I try to use cobertura-maven-plugin this way <reporting> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>${cobertura.version}</version> <configuration> <formats> <format>html</format> <format>xml</format> </formats> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> <version>2.5</version> <configuration> <targetJdk>1.6<

How to debug a Maven OpenJFX application in IntelliJ

倾然丶 夕夏残阳落幕 提交于 2021-01-29 16:04:22
问题 Since JavaFX has become OpenJFX and needs to be added as a dependency to your Maven project, debugging a OpenJFX application has become complicated. In this question it is already answered how to solve it for NetBeans. But IntelliJ works slightly different. The Ppom.xml has been setup according to this example. How can you run an OpenJFX (JavaFX) application which is configured as a Maven project in debug mode in IntelliJ? 回答1: If you would copy the addition of VM options in the pom.xml for

This site can’t be reached localhost refused to connect. on empty project

删除回忆录丶 提交于 2021-01-29 15:02:58
问题 My localhost does not load the page: http://localhost:8080/ This site can’t be reached localhost refused to connect. I have a brand new project and when I run the project I don't get any errors or see any errors but when I try to view using the localhost I see the above error Here is the detail on my project. Java version on my machine: C:\WINDOWS\system32>java -version java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25

org.testng.TestNGException: An error occurred while instantiating class

倾然丶 夕夏残阳落幕 提交于 2021-01-29 14:59:59
问题 My selenium automation framework using TestNG is working fine on the windows 7 but when I configured the same framework on the windows 10 I'm facing the below issue. Could you please help me on the same. Test Details: Operating system: windows 10 64 bit Eclipse Version: Version: 2019-03 (4.11.0) TestNG version: 6.14.3 [RemoteTestNG] detected TestNG version 6.14.3 org.testng.TestNGException: An error occurred while instantiating class com.saf.aw_nxt_end_to_end_tests.AW_NXT_Login: org/w3c/dom

How to read java files from target folder in spring boot

爷,独闯天下 提交于 2021-01-29 14:52:38
问题 I've been trying to read java files that are stored inside target/generated-sources folder. To store these files I have used below plugin in pom.xml file <!-- For Code Generation --> <plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <version>0.12.3</version> <executions> <execution> <id>add-source-for-demoapp</id> <goals> <goal>generate</goal> </goals> <configuration> <schemaDirectory>src/main/resources/xsd</schemaDirectory> <schemaIncludes>

Unable to reference environment variables

99封情书 提交于 2021-01-29 14:42:53
问题 Anyone know why I am unable to reference the User environment variables shown below (red box) but I am able to reference the System environment variables (green box) without any issues? 回答1: Ok so, in short, they need to be placed in <environmentVariables>ENVIRONMENT VARIABLES GO HERE </environmentVariables> within the POM for them to be picked up. As @Andrey pointed out in his reply, they do show as unresolved but will still work. You can stop them showing as unresolved using: <!--suppress

How do I add dependency javadocs in Visual Studio Code?

送分小仙女□ 提交于 2021-01-29 14:18:09
问题 I've set up a maven project in visual studio code with the red hat java support. Everything works great, except that the intellisense doesn't include the javadoc descriptions for the functions and classes from my dependency. Is there a way to explicitly link VSCode to my library's jdocs? If so, how do I do it? 回答1: you could try this: for example, i have a project : /project /lib test-1.0.0.jar /doc test-1.0.0-javadoc.jar add in your .classPath : <classpathentry kind="lib" path="lib/test-1.0

org.getools - NoSuchFieldError: METER

老子叫甜甜 提交于 2021-01-29 14:13:02
问题 A Maven Java project using geotools 15.2 generates an error : NoSuchFieldError: METER pom.xml <dependency> <groupId>org.geotools</groupId> <artifactId>gt-data</artifactId> <version>15.2</version> </dependency> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-shapefile</artifactId> <version>15.2</version> </dependency> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-swing</artifactId> <version>15.2</version> </dependency> When running the code, the error is generated

Maven failsafe is not complaining that an inexistent profile was specified

血红的双手。 提交于 2021-01-29 12:55:58
问题 I have two profiles in my pom: <profiles> <profile> <id>functional-tests</id> <build> <plugins> <plugin> <artifactId>maven-failsafe-plugin</artifactId> <configuration> <testSourceDirectory>test/test-functional/java</testSourceDirectory> <includes> <include>**/*FT.java</include> </includes> </configuration> <executions> <execution> <goals> <goal>integration-test</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>it-tests</id> <build> <plugins>

Build all maven sub modules

北战南征 提交于 2021-01-29 12:35:51
问题 I have a maven web project which has multiple sub-modules that form a hierarchy. Dependency of the project on top is specified in my web project which links all of its sub-dependencies and make them available to the web project. But the issue is when Before building the web project I need to run mvn install for every sub-modules starting from the jar project which is lowest on the hierarchy, I want some maven configuration which will build all the sub modules automatically when I build the