maven

compile java source 1.7 for 1.6 with Maven and Netbeans

空扰寡人 提交于 2021-01-29 00:40:27
问题 I have a source code written for java 1.7. I would like to compile it for java 1.6. If I understood correctly, I need to use the options -source 1.7 -target 1.6 I am using Maven2 and Netbeans (8.0). So, I tried : <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.2</version> <configuration> <source>1.7</source> <target>1.6</target> <compilerArguments> <bootclasspath>/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/rt.jar</bootclasspath> <

why do I have to remove a dependency from my pom before adding it back and installing to get the latest version of my maven package?

。_饼干妹妹 提交于 2021-01-29 00:38:29
问题 I have a maven package I've hosted on GitHub package registry. Whenever I make an update to the package I run mvn deploy to publish the changes, but if I simply run mvn install on the dependent application it doesn't seem to install the latest version of the package. Only after deleting the pom.xml and then loading the changes into IntelliJ, then adding it back and running mvn install does it seem to get the new publication of the package. This is my settings.xml file: <settings xmlns="http:/

Google app engine unable to create a DevAppServer

一个人想着一个人 提交于 2021-01-28 22:28:30
问题 When trying to create a local app server to test my web app, I'm completely unable to do so. Somebody else has seen the same error here and was advised that it was an issue with JDK>12, however I'm only using java 8. I'm able to deploy the app as normal but not create the local server. I've tried it through powershell using the native gcloud CLI, using the intellij plugin and now through the maven plugin and get the same issue each time. Any help would be much appreciated. stacktrace Apr 18,

Autowiring not working with @RestController

白昼怎懂夜的黑 提交于 2021-01-28 21:52:45
问题 I need to create a simple REST-service with some fields I want to export from applicatonContext.xml file, but I've got Stack-Trace org.springframework.beans.factory.BeanCreationException: Error creating bean with name 's3RestController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.lang.String com.emc.sk.data_mgmt_central.server.S3RestController.path; nested exception is org

WebSecurityConfigurerAdapter does not serve index.html when it's name does not mentioned in the URL explicitly

你离开我真会死。 提交于 2021-01-28 21:12:39
问题 I have a Spring Boot application based on this repository. The problem is I want to serve a UI5 app at the end. I need to make a src\main\webapp folder in my server app to push my static files in. For making this working I did these steps: In my pom.xml I have: <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId>

Webclient maven Dependency errors

人盡茶涼 提交于 2021-01-28 19:04:22
问题 I am getting a NoClassDefFoundError on the line where I try to create WebClient instance using ' create '. Tried builder() but still the same thing. Please tell me what's wrong with the dependencies which I have added and how this issue can be solved. webClient = WebClient.create(url) .post() .uri(uri) .contentType(MediaType.APPLICATION_JSON) .body(BodyInserters.fromMultipartData(map)) .retrieve() .bodyToMono(Object.class) .block() .toString() dependencies which I added are <dependency>

Maven not running with Spigot

馋奶兔 提交于 2021-01-28 17:12:00
问题 I'm trying to use MongoDB in a Spigot 1.16.1 Plugin and I'm having Problems with my maven imports. In my IDE (EclipseIDE) there are no Errors. If I export the Plugin and reload the Server the following error appears: pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>LeeCraft-Core_hj.2_v.2

Maven not running with Spigot

余生长醉 提交于 2021-01-28 17:10:00
问题 I'm trying to use MongoDB in a Spigot 1.16.1 Plugin and I'm having Problems with my maven imports. In my IDE (EclipseIDE) there are no Errors. If I export the Plugin and reload the Server the following error appears: pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>LeeCraft-Core_hj.2_v.2

Maven not running with Spigot

爱⌒轻易说出口 提交于 2021-01-28 17:01:53
问题 I'm trying to use MongoDB in a Spigot 1.16.1 Plugin and I'm having Problems with my maven imports. In my IDE (EclipseIDE) there are no Errors. If I export the Plugin and reload the Server the following error appears: pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>LeeCraft-Core_hj.2_v.2

Jenkins maven release job to trigger downstream parameterized job

时光怂恿深爱的人放手 提交于 2021-01-28 14:07:58
问题 I'm using the jenkins maven-release plugin to tag, package and perform a release. This is working fine. The plugin asks for: the version of the release (parameter releaseVersion of the release plugin); the version of development, after the release (parameter developmentVersion of the release plugin); Now, I want to have a second step after packaging this release. I want to import the specific version packaged (say 0.0.5) to our deployment tool. I did this by configuring a second Jenkins jobs.