maven

Maven Aspectj plugin calls the JPA model generator again

主宰稳场 提交于 2021-02-08 14:00:08
问题 I have a Maven project where I generate the JPA metamodel using the Hibernate metamodel generator. <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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>xxx</groupId> <artifactId>xxx</artifactId> <version>1.0.0-SNAPSHOT</version> </parent> <artifactId>xxx</artifactId> <dependencies>

Missing tools-1.6.jar with Eclipse and Maven

别说谁变了你拦得住时间么 提交于 2021-02-08 12:22:19
问题 I am trying to get a project to run using Maven in Eclipse, but I am getting this error below. The tools.jar is in the JDK's lib folder, but tools-1.6.jar doesn't seem to exist on my computer. I am using the JDK 1.7 and my JAVA_HOME is pointing to that folder (as is my eclipse.ini ) Anyone know where I can get this file or what I might be doing wrong? The container 'Maven Dependencies' references non existing library C:\Users\sejohnson\.m2\repository\com\sun\tools\1.6\tools-1.6.jar 回答1: The

Unable to add resources to final jar for maven project in Intellij

天涯浪子 提交于 2021-02-08 11:46:37
问题 I am unable to add images from my resources directory (which is marked as resources root) to the final jar that I want t generate. I have tried building a jar using File -> Project Structure -> Project Settings -> Artifacts -> Click green plus sign -> Jar -> From modules with dependencies. But failed. I have also tried building a jar from the Maven project window in Intellij. Which failed as well. Here is my pom.xml file: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven

Maven error: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec

好久不见. 提交于 2021-02-08 11:10:51
问题 I'm using netbeans. I tried to reinstall it but it did not work. Following is the stack trace when I run mvn clean install -X: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 at org.neuroph.util.NeurophArrayList.get(NeurophArrayList.java:376) at org.neuroph.core.Layer.getNeuronAt(Layer.java:230) at org.neuroph.util.ConnectionFactory.forwardConnect(ConnectionFactory.java:231) at neuralNetwork.util.NeuralNetworkBuilder.customStandardNNet(NeuralNetworkBuilder.java:34) at

Maven error: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec

梦想的初衷 提交于 2021-02-08 11:10:22
问题 I'm using netbeans. I tried to reinstall it but it did not work. Following is the stack trace when I run mvn clean install -X: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 at org.neuroph.util.NeurophArrayList.get(NeurophArrayList.java:376) at org.neuroph.core.Layer.getNeuronAt(Layer.java:230) at org.neuroph.util.ConnectionFactory.forwardConnect(ConnectionFactory.java:231) at neuralNetwork.util.NeuralNetworkBuilder.customStandardNNet(NeuralNetworkBuilder.java:34) at

Maven error: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec

ぐ巨炮叔叔 提交于 2021-02-08 11:08:46
问题 I'm using netbeans. I tried to reinstall it but it did not work. Following is the stack trace when I run mvn clean install -X: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 at org.neuroph.util.NeurophArrayList.get(NeurophArrayList.java:376) at org.neuroph.core.Layer.getNeuronAt(Layer.java:230) at org.neuroph.util.ConnectionFactory.forwardConnect(ConnectionFactory.java:231) at neuralNetwork.util.NeuralNetworkBuilder.customStandardNNet(NeuralNetworkBuilder.java:34) at

Convert JavaFX desktop app to Web app

拜拜、爱过 提交于 2021-02-08 10:46:28
问题 I have a Maven JavaFX based desktop App and I have to convert it to a dynamic web app in eclipse or any other IDE ( I am using Eclipse Neon-Java EE). I have tried with Project Facets (Right click on project name --> Properties --> Project Facets --> dynamic web app) I have generated Web Content files (Meta-INF and WEB-INF). In the project folder still appears the letter "M" and not the golobe icon. When I try to run it in Tomcat it shows a 404 error. My project looks like this: Can anybody

Intellij Ultimate 2016.2 stuck on maven build after project import

孤人 提交于 2021-02-08 10:30:32
问题 After importing the maven project in Intellij. It started a background task of indexing and building. Build task is not getting complete. I checked the Intellij logs and found a Runtime exception. This is happening only in Intellij background tasks. #org.jetbrains.idea.maven - Cannot reconnect. java.lang.RuntimeException: Cannot reconnect. at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:111) at org.jetbrains.idea.maven.server.MavenIndexerWrapper

Docker image with Maven fails to run

与世无争的帅哥 提交于 2021-02-08 09:13:41
问题 I want to use Maven in my Docker image. After looking here https://hub.docker.com/_/maven/, I tried using this Dockerfile: FROM openjdk:7 RUN apk add --no-cache curl tar bash ARG MAVEN_VERSION=3.3.9 ARG USER_HOME_DIR="/root" RUN mkdir -p /usr/share/maven /usr/share/maven/ref \ && curl -fsSL http://apache.osuosl.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz \ | tar -xzC /usr/share/maven --strip-components=1 \ && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn ENV

How to get line by line coverage xml file in Emma- maven project

倖福魔咒の 提交于 2021-02-08 08:42:13
问题 I am using the Emma tool in Maven project. Emma creates line by line code coverage in HTML file, it does not display line by line code coverage XML file. It gives only a summary XML file. Is there a way to keep or generate line by line code coverage XML file in Emma? I have entered following plugin in my pom.xml <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> <version>2.7</version> <configuration>