maven

Maven Surefire not running JUnit 5 tests

柔情痞子 提交于 2021-02-11 13:00:20
问题 I've been trying to run JUnit 5 tests with Maven Surefire. However, it doesn't seem like Surefire is running any tests at all, even though I do have some, and in the default directory, too. This is the console output I'm getting: https://prnt.sc/ugo1xt Here are the relevant parts of the pom.xml: <dependencies> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter</artifactId> <version>5.7.0-M1</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins>

Maven Surefire not running JUnit 5 tests

风格不统一 提交于 2021-02-11 12:59:06
问题 I've been trying to run JUnit 5 tests with Maven Surefire. However, it doesn't seem like Surefire is running any tests at all, even though I do have some, and in the default directory, too. This is the console output I'm getting: https://prnt.sc/ugo1xt Here are the relevant parts of the pom.xml: <dependencies> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter</artifactId> <version>5.7.0-M1</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins>

How to get latest sources.jar and javadoc.jar for latest SNAPSHOT aar?

我怕爱的太早我们不能终老 提交于 2021-02-11 12:56:58
问题 I am trying to pull dependency from our local network repo with: configurations.all { resolutionStrategy { cacheChangingModulesFor 0, 'seconds' } } And : implementation("com.abc.core.library:library:0.6.1-SNAPSHOT") { changing = true } But when the library snapshot is updated with same number, aar file is updated but the sources.jar and javadoc.jar is not updated. Any solution? 来源: https://stackoverflow.com/questions/65189106/how-to-get-latest-sources-jar-and-javadoc-jar-for-latest-snapshot

Easiest Way to Use Database in Sample Java Project?

≯℡__Kan透↙ 提交于 2021-02-11 12:53:30
问题 I'll preface this with: I have very little database experience. I understand the concept of a database and how to use a database within Java, but I have no idea how to create one and my knowledge of SQL is essentially zilch. I am creating a sample project to show off the features of IntelliJ to my company, in the hopes they will convert from Eclipse. One of the big features for our company will be database integration, so I would like to show off the Database tools. To do this, I need a

maven repository setup not working

岁酱吖の 提交于 2021-02-11 12:49:32
问题 I am referencing a repository in my POM.xml to add the ojdbc.jar to my project but Maven (I use the STS plugin) keeps telling me it can't find the jar. I am showing below my repositories and jar dependency as defined in my POM.xml. Anyone has an idea as to why the jar can't be found? Is my POM.xml not setup properly? Note the vaadin repo works fine as the vaadin jars are correctly added to my project. <repositories> <repository> <id>myrepo</id> <url>http://mvnrepository.com/</url> <

Using flexmojos maven plugin to build AIR mobile application

半城伤御伤魂 提交于 2021-02-11 12:40:44
问题 I have dial with AIR mobile application based on 's:ViewNavigatorApplication'. I use Apache Flex SDK 4.10 and Flexmojos plugin 6.0.1 and JetBrains IDEA 12.1.4 I made 'pom.xml', added 'air-framework' dependencies. The IDE imported it successfully and made the project configuration. The dependencies are shown under the 'Extranl Libraries' node, I can see it. But I don't see ViewNavigatorApplication class, I only see WindowedApplication. The 'pom.xml' loads 'airmobile-config.xml'. When I try to

What is the most optimal way to make an API on apache camel to have (SSL) implemented for HTTPS?

帅比萌擦擦* 提交于 2021-02-11 12:36:42
问题 I am looking to make my API created with Apache-Camel be HTTPS enabled. I have conducted some reading into the various ways (using Jetty, Netty etc.) but I'm wanting to know what the simplest and most efficient way to implement SSL to my camel based API is. Here is my current configuration, I would prefer (for simplicity's sake if I could use netty4-http) public void configure() { restConfiguration() .component("netty4-http")//Specifies the Camel component to use as the REST transport .host(

maven jar deployed twice in a war module with attachClasses set to true

萝らか妹 提交于 2021-02-11 12:15:15
问题 I am trying to use module as a dependency in another project by deploying it to our nexus repository. The problem is that maven tries to deploy the jar twice and our policy forbids to overwrite a release version. The module is packaged as a war. Here is my configuration. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.3</version> <executions> <execution> <id>build-war</id> <phase>package</phase> <goals> <goal>war</goal> </goals> <

Running jacoco check goal with maven 3.5

房东的猫 提交于 2021-02-11 10:20:10
问题 My jacoco plugin configuration in a pom likes below <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.7.5.201505241946</version> <executions> <execution> <id>pre-unit-test</id> <goals> <goal>prepare-agent</goal> </goals> <configuration> <destFile>${jacoco.ut.execution.data.file}</destFile> </configuration> </execution> <execution> <id>merge-execs</id> <phase>pre-site</phase> <inherited>false</inherited> <goals> <goal>merge</goal> </goals>

Running jacoco check goal with maven 3.5

瘦欲@ 提交于 2021-02-11 10:20:06
问题 My jacoco plugin configuration in a pom likes below <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.7.5.201505241946</version> <executions> <execution> <id>pre-unit-test</id> <goals> <goal>prepare-agent</goal> </goals> <configuration> <destFile>${jacoco.ut.execution.data.file}</destFile> </configuration> </execution> <execution> <id>merge-execs</id> <phase>pre-site</phase> <inherited>false</inherited> <goals> <goal>merge</goal> </goals>