Errors in maven pom defined by IntelliJ IDEA - java

This question was posted before but with very little information and no solution.
I'm getting an error in my pom file: "Cannot resolve symbol 'runfx.args'"
My project is a maven project based on the javafx archetype. The pom was automatically generated by intelliJ and I only added the JDA dependency and bintray repository (for the JDA dependency) that are the bottom of the pom.
If it is relevant, I can run the program trough IntelliJ without using maven.
maven install and maven compile work without errors but maven deploy throws the following error:
Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.6:unpack-dependencies (unpack-dependencies) on project MessageSpreadBot: Unknown archiver type: No such archiver: 'pom'. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven->dependency-plugin:2.6:unpack-dependencies (unpack-dependencies) on project MessageSpreadBot: Unknown archiver type
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at >org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at >org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at >org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at >org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at >org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unknown archiver type
at >org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:281)
at >org.apache.maven.plugin.dependency.UnpackDependenciesMojo.execute(UnpackDependenciesMojo.java:91)
at >org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at >org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 21 more
Caused by: org.codehaus.plexus.archiver.manager.NoSuchArchiverException: No >such archiver: 'pom'.
at >org.codehaus.plexus.archiver.manager.DefaultArchiverManager.getUnArchiver(DefaultArchiverManager.java:77)
at >org.codehaus.plexus.archiver.manager.DefaultArchiverManager.getUnArchiver(DefaultArchiverManager.java:122)
at >org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:242)
... 24 more
Here is the full pom:
<?xml version="1.0" encoding="UTF-8"?>
<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>
<groupId>ArthurSilva</groupId>
<artifactId>MessageSpreadBot</artifactId>
<version>1.0</version>
<name>MessageSpreadBot</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<mainClass>ArthurSilva.MainApp</mainClass>
</properties>
<organization>
<!-- Used as the 'Vendor' for JNLP generation -->
<name>KON</name>
</organization>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>unpack-dependencies</id>
<phase>package</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<excludeScope>system</excludeScope>
<excludeGroupIds>junit,org.mockito,org.hamcrest</excludeGroupIds>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<id>unpack-dependencies</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${java.home}/../bin/javafxpackager</executable>
<arguments>
<argument>-createjar</argument>
<argument>-nocss2bin</argument>
<argument>-appclass</argument>
<argument>${mainClass}</argument>
<argument>-srcdir</argument>
<argument>${project.build.directory}/classes</argument>
<argument>-outdir</argument>
<argument>${project.build.directory}</argument>
<argument>-outfile</argument>
<argument>${project.build.finalName}.jar</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>default-cli</id>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${java.home}/bin/java</executable>
<commandlineArgs>${runfx.args}</commandlineArgs>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>8</source>
<target>8</target>
<compilerArguments>
<bootclasspath>${sun.boot.class.path}${path.separator}${java.home}/lib/jfxrt.jar</bootclasspath>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<additionalClasspathElements>
<additionalClasspathElement>${java.home}/lib/jfxrt.jar</additionalClasspathElement>
</additionalClasspathElements>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>3.8.3_464</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>jcenter</id>
<name>jcenter-bintray</name>
<url>http://jcenter.bintray.com</url>
</repository>
</repositories>
</project>
Thanks
Edit: I tried changing the maven-dependency-plugin version to 3.1.1 and it failed maven install, I changed back to 2.6 and it still fails install. Gives the same error as the one above. I tried cleaning then compiling but it still doesn't work.

I used your pom and the problem is that the plugin tries to unpack a pom.
Unpacking d:\Profiles\aclaudel.m2\repository\club\minnced\opus-java\1.0.4\opus-java-1.0.4.pom to D:\tmp\target\classes with includes "" and excludes ""
[ERROR] [...] Unknown archiver type: No such archiver: 'pom'.
A workaround is to exclude the artifact in the plugin configuration :
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>unpack-dependencies</id>
<phase>package</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<excludeArtifactIds>opus-java</excludeArtifactIds>
<excludeScope>system</excludeScope>
<excludeGroupIds>junit,org.mockito,org.hamcrest</excludeGroupIds>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>

Related

Maven generate-sources "Some problems were encountered while building the effective model for "

I don't understand, sometimes It works and sometimes not....
I am trying to use generate-sources goal, but I received this message:
[WARNING] Some problems were encountered while building the effective model for SoapClientSd:SoapClientSd:jar:0.0.2
[WARNING] Reporting configuration should be done in <reporting> section, not in maven-site-plugin <configuration> as reportPlugins parameter. # line 139, column 20
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[INFO] ---------------------< SoapClientSd:SoapClientSd >-------------------
[INFO] Building SoapClientSd 0.0.2
[INFO] --------------------------------[ jar ]------------------------------
[INFO] BUILD SUCCESS
[INFO] Total time: 0.250 s
[INFO] Finished at: 2018-10-08T21:46:21+02:00
Here my pom:
<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>
<groupId>SoapClientSd</groupId>
<artifactId>SoapClientSd</artifactId>
<version>0.0.2</version>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<properties>
<jdk.source>1.7</jdk.source>
<jdk.target>1.7</jdk.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<wsdl>http://localhost:8080/SoapSd/UniboServices?wsdl</wsdl>
<ws.stub.package.name>it.unibo.test.services</ws.stub.package.name>
<log4j.version>1.2.17</log4j.version>
<commons-io.version>2.4</commons-io.version>
<commons-logging.version>1.2</commons-logging.version>
<cxf.version>2.5.2</cxf.version>
<maven-javadoc-plugin.version>2.10.3</maven-javadoc-plugin.version>
<maven-source-plugin.version>3.0.0</maven-source-plugin.version>
<maven-compiler-plugin.version>3.6.1</maven-compiler-plugin.version>
</properties>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>wsdl2java</goal>
</goals>
<configuration>
<tasks>
</tasks>
<sourceRoot>target/generated-sources</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>${wsdl}</wsdl>
<extraargs>
<extraarg>-verbose</extraarg>
<extraarg>-client</extraarg>
<extraarg>-frontend</extraarg>
<extraarg>jaxws21</extraarg>
<extraarg>-p</extraarg>
<extraarg>${ws.stub.package.name}</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${jdk.source}</source>
<target>${jdk.target}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<additionalparam>${javadoc.opts}</additionalparam>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
<configuration>
<reportPlugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<additionalparam>${javadoc.opts}</additionalparam>
</configuration>
</plugin>
</reportPlugins>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-bundle</artifactId>
<version>${cxf.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
</dependency>
</dependencies>
</project>
What am I doing wrong? Why I get this error? I just run "generated sources" again after a while and It doesn't work. I also try with -X, and clean, but It doesn't work.
To generate-sources your application must be started.
Check if you can access http://localhost:8080/SoapSd/UniboServices?wsdl
try to close all target/generated-sources folders

Milo Project Maven Run Error

I was trying to build the milo master project in eclipse. I did a maven build as suggested by various people online. But every time a do the maven build I am getting a build error stating it requires a goal. Can anyone let me know whats wrong with the build.
Here is the console error:
[ERROR] No goals have been specified for this build. You must specify
a valid lifecycle phase or a goal in the format :
or :[:]:.
Available lifecycle phases are: validate, initialize,
generate-sources, process-sources, generate-resources,
process-resources, compile, process-classes, generate-test-sources,
process-test-sources, generate-test-resources, process-test-resources,
test-compile, process-test-classes, test, prepare-package, package,
pre-integration-test, integration-test, post-integration-test, verify,
install, deploy, pre-clean, clean, post-clean, pre-site, site,
post-site, site-deploy. -> [Help 1] [ERROR] [ERROR] To see the full
stack trace of the errors, re-run Maven with the -e switch. [ERROR]
Re-run Maven using the -X switch to enable full debug logging. [ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles: [ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
And here is the POM file:
<?xml version="1.0" encoding="UTF-8"?>
<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>
<groupId>org.eclipse.milo</groupId>
<artifactId>milo</artifactId>
<version>0.2.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Eclipse Milo - OPC-UA (IEC 62541)</name>
<description>An open source implementation of OPC-UA (IEC 62541).</description>
<url>https://github.com/eclipse/milo</url>
<scm>
<url>https://github.com/eclipse/milo</url>
<connection>scm:git:git://github.com/eclipse/milo.git</connection>
<developerConnection>scm:git:git#github.com:eclipse/milo.git</developerConnection>
<tag>HEAD</tag>
</scm>
<developers>
<developer>
<id>kevinherron</id>
<name>Kevin Herron</name>
<email>kevinherron#gmail.com</email>
</developer>
</developers>
<licenses>
<license>
<name>Eclipse Public License 1.0</name>
<url>https://eclipse.org/org/documents/epl-v10.php</url>
<distribution>repo</distribution>
</license>
<license>
<name>Eclipse Distribution License 1.0</name>
<url>https://eclipse.org/org/documents/edl-v10.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<modules>
<module>build-tools</module>
<module>milo-examples</module>
<module>opc-ua-stack</module>
<module>opc-ua-sdk</module>
</modules>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<prerequisites>
<maven>3.0.5</maven>
</prerequisites>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<configuration>
<failOnError>false</failOnError>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<extensions>false</extensions>
<inherited>true</inherited>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>javadoc-and-source</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<configuration>
<failOnError>false</failOnError>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<configuration>
<configLocation>milo/checkstyle.xml</configLocation>
<excludes>
**/Ua*Loader*,
**/org/eclipse/milo/opcua/stack/core/types/structured/*,
**/org/eclipse/milo/opcua/stack/core/types/enumerated/*,
**/org/eclipse/milo/opcua/sdk/core/CefactEngineeringUnits.java,
**/org/eclipse/milo/opcua/sdk/client/model/nodes/objects/*,
**/org/eclipse/milo/opcua/sdk/client/model/nodes/variables/*,
**/org/eclipse/milo/opcua/sdk/client/model/types/objects/*,
**/org/eclipse/milo/opcua/sdk/client/model/types/variables/*,
**/org/eclipse/milo/opcua/sdk/server/model/nodes/objects/*,
**/org/eclipse/milo/opcua/sdk/server/model/nodes/variables/*,
**/org/eclipse/milo/opcua/sdk/server/model/types/objects/*,
**/org/eclipse/milo/opcua/sdk/server/model/types/variables/*,
**/org/eclipse/milo/opcua/stack/core/Identifiers.java,
**/org/eclipse/milo/opcua/stack/core/types/builtin/unsigned/*,
**/org/eclipse/milo/opcua/stack/core/StatusCodes.java,
**/org/opcfoundation/opcua/binaryschema/*
</excludes>
</configuration>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>7.1.1</version>
</dependency>
<dependency>
<groupId>org.eclipse.milo</groupId>
<artifactId>build-tools</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>1.7.21</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>1.7.21</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<configuration>
<configLocation>milo/checkstyle.xml</configLocation>
<excludes>
**/Ua*Loader*,
**/org/eclipse/milo/opcua/stack/core/types/structured/*,
**/org/eclipse/milo/opcua/stack/core/types/enumerated/*,
**/org/eclipse/milo/opcua/sdk/core/CefactEngineeringUnits.java,
**/org/eclipse/milo/opcua/sdk/client/model/nodes/objects/*,
**/org/eclipse/milo/opcua/sdk/client/model/nodes/variables/*,
**/org/eclipse/milo/opcua/sdk/client/model/types/objects/*,
**/org/eclipse/milo/opcua/sdk/client/model/types/variables/*,
**/org/eclipse/milo/opcua/sdk/server/model/nodes/objects/*,
**/org/eclipse/milo/opcua/sdk/server/model/nodes/variables/*,
**/org/eclipse/milo/opcua/sdk/server/model/types/objects/*,
**/org/eclipse/milo/opcua/sdk/server/model/types/variables/*,
**/org/eclipse/milo/opcua/stack/core/Identifiers.java,
**/org/eclipse/milo/opcua/stack/core/types/builtin/unsigned/*,
**/org/eclipse/milo/opcua/stack/core/StatusCodes.java,
**/org/opcfoundation/opcua/binaryschema/*
</excludes>
<encoding>UTF-8</encoding>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<failOnViolation>true</failOnViolation>
</configuration>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
<executions>
<!-- Replacing default-compile as it is treated specially by maven -->
<execution>
<id>default-compile</id>
<phase>none</phase>
</execution>
<!-- Replacing default-testCompile as it is treated specially by maven -->
<execution>
<id>default-testCompile</id>
<phase>none</phase>
</execution>
<execution>
<id>java-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>java-test-compile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>generate-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
<configuration>
<supportedProjectTypes>
<supportedProjectType>jar</supportedProjectType>
<supportedProjectType>bundle</supportedProjectType>
</supportedProjectTypes>
<instructions>
<Import-Package>
com.sun.management.*;resolution:=optional,
!javax.annotation.*,
*
</Import-Package>
</instructions>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
<tagNameFormat>v#{project.version}</tagNameFormat>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<configuration>
<configLocation>milo/checkstyle.xml</configLocation>
<excludes>
**/Ua*Loader*,
**/org/eclipse/milo/opcua/stack/core/types/structured/*,
**/org/eclipse/milo/opcua/stack/core/types/enumerated/*,
**/org/eclipse/milo/opcua/sdk/client/api/model/nodes/objects/*,
**/org/eclipse/milo/opcua/sdk/client/api/model/nodes/variables/*,
**/org/eclipse/milo/opcua/sdk/client/api/model/types/objects/*,
**/org/eclipse/milo/opcua/sdk/client/api/model/types/variables/*,
**/org/eclipse/milo/opcua/sdk/server/model/nodes/objects/*,
**/org/eclipse/milo/opcua/sdk/server/model/nodes/variables/*,
**/org/eclipse/milo/opcua/sdk/server/model/types/objects/*,
**/org/eclipse/milo/opcua/sdk/server/model/types/variables/*,
**/org/eclipse/milo/opcua/stack/core/Identifiers.java,
**/org/eclipse/milo/opcua/stack/core/types/builtin/unsigned/*,
**/org/eclipse/milo/opcua/stack/core/StatusCodes.java
</excludes>
</configuration>
</plugin>
</plugins>
</reporting>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</project>
From the root of the project, try running mvn clean install.
It sounds like you're just running mvn and expecting something to happen.

Why my java program is failing to load maven plugin?

I am working on JAVAFX application, and I am using pom.xml file, in which I have dependencies, It was working well in my last computer, but when I imported it to another pc than it is giving me an error, that failed to execute maven plugin, I have searched over internet, and followed all possible solutions, given out there, but all doesn't worked for me.
Now I have a question, that why I am getting this error that failed to load maven plugin?
here is the log trace:
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project EmployeeManagement: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
and here is my pom.xml
<?xml version="1.0" encoding="UTF-8"?> <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>
<groupId>com.viremp</groupId>
<artifactId>EmployeeManagement</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<name>EmployeeManagement</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<mainClass>com.viremp.employeemanagement.MainApp</mainClass>
</properties>
<organization>
<!-- Used as the 'Vendor' for JNLP generation -->
<name>VirEmp Technologies International</name>
</organization>
<build>
<plugins>
<plugin>
<groupId>com.zenjava</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>8.6.0</version>
<configuration>
<mainClass>com.viremp.employeemanagement.MainApp</mainClass>
<bundler>EXE</bundler>
<needShortcut>true</needShortcut>
<appName>Employee Management System</appName>
</configuration>
<executions>
<execution>
<id>create-jfxjar</id>
<phase>package</phase>
<goals>
<goal>build-jar</goal>
</goals>
</execution>
<execution>
<id>create-native</id>
<phase>package</phase>
<goals>
<goal>build-native</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>unpack-dependencies</id>
<phase>package</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<excludeScope>system</excludeScope>
<excludeGroupIds>junit,org.mockito,org.hamcrest</excludeGroupIds>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<id>unpack-dependencies</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${java.home}/../bin/javapackager</executable>
<arguments>
<argument>-createjar</argument>
<argument>-nocss2bin</argument>
<argument>-appclass</argument>
<argument>${mainClass}</argument>
<argument>-srcdir</argument>
<argument>${project.build.directory}/classes</argument>
<argument>-outdir</argument>
<argument>${project.build.directory}</argument>
<argument>-outfile</argument>
<argument>${project.build.finalName}.jar</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>default-cli</id>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${java.home}/bin/java</executable>
<commandlineArgs>${runfx.args}</commandlineArgs>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>8</source>
<target>8</target>
<compilerArguments>
<bootclasspath>${sun.boot.class.path}${path.separator}${java.home}/lib/jfxrt.jar</bootclasspath>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<additionalClasspathElements>
<additionalClasspathElement>${java.home}/lib/jfxrt.jar</additionalClasspathElement>
</additionalClasspathElements>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.jfoenix</groupId>
<artifactId>jfoenix</artifactId>
<version>1.3.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>6.0.6</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-lang/commons-lang -->
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
</dependencies>
Thanks in advance!!
The exec plugin executes a binary in the path ${java.home}/../bin/javapackager.
When executing it it returns an errorcode of 1, which is likely to be that it could not find the binary.
Check that you have a valid JAVA_HOME and that javapackager exist.
Perhaps you have a jre on the new machine?
I have resolved this issue, actually it was throwing an error failed to execute because of some other build errors in my code, which were related to MySQL, before that I was thinking that let me first resolve this plugin error than I will remove that error, but when I haven't got any suitable answer, so than I thought to remove other errors, than I will come back to this and will remove this error, but when I removed my other errors, than the magic happened, and all error goes, that MySQL as well as plugin errors.
Don't know why, but it did the trick for me.
Don't know why by removing other errors, removed this issue too, what's the relation between all this.

Error running maven (Failed to execute)

I am running maven in my JAVA EE project, but I got an error that does not explain too much even I use the debug option
mvn clean install -Dmaven.test.skip=true -X
[ERROR] Failed to execute goal com.google.code.maven-replacer-plugin:maven-replacer-plugin:1.3.2:replace (default) on project deviceWeb: File 'C:\Development\Workspaces\EclipseWS\device-iot\device
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.google.code.maven-replacer-plugin:maven-replacer-plugin:1.3.2:replace (default) on project deviceWeb: File 'C:\Developmen
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: File 'C:\Development\Workspaces\EclipseWS\device-iot\deviceWeb\null' does not exist
at com.google.code.maven_replacer_plugin.ReplacerMojo.execute(ReplacerMojo.java:198)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 20 more
Caused by: java.io.FileNotFoundException: File 'C:\Development\Workspaces\EclipseWS\device-iot\deviceWeb\null' does not exist
at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:137)
at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1102)
at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1120)
at com.google.code.maven_replacer_plugin.file.FileUtils.readFile(FileUtils.java:28)
at com.google.code.maven_replacer_plugin.Replacer.replace(Replacer.java:23)
at com.google.code.maven_replacer_plugin.ReplacerMojo.replaceContents(ReplacerMojo.java:232)
at com.google.code.maven_replacer_plugin.ReplacerMojo.execute(ReplacerMojo.java:189)
... 22 more
[ERROR]
[ERROR]
checking the pom.xml the only file I see is this one, but it exists on the Filesystem
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>maven-replacer-plugin</artifactId>
<version>1.3.2</version>
<executions>
<execution>
<!-- the replace should happen before the app is packaged -->
<phase>prepare-package</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<includes>
<!-- replace the token in this file -->
</includes>
<include>target/deviceWeb/WEB-INF/jsp/template/footer.jsp</include>
<regex>false</regex>
<replacements>
<replacement>
<!-- the name of the token to replace -->
<token>CURRENT_VERSION_MAVEN</token>
<!-- replace it with the maven project version -->
<value>${project.version} (${buildNumber})</value>
</replacement>
<replacement>
<token>CURRENT_DATE_MAVEN</token>
<value>${maven.build.timestamp}</value>
</replacement>
</replacements>
</configuration>
</plugin>
the POM.XML
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.tdk.iot</groupId>
<artifactId>devices-private</artifactId>
<packaging>pom</packaging>
<name>devices-private</name>
<version>2.0</version>
<description></description>
<url>https://webgate.com.tdk.iot/TDKnet/confluence/display/${project.artifactId}/Home</url>
<scm>
<connection>scm:git:https://webgate.com.tdk.iot/TDKnet/stash/scm/envdevices/devices-private-app.git</connection>
<developerConnection>scm:git:https://webgate.com.tdk.iot/TDKnet/stash/scm/envdevices/devices-private-app.git</developerConnection>
<url>https://webgate.com.tdk.iot/TDKnet/stash/projects/ENVdevices/repos/devices-private-app/browse</url>
</scm>
<issueManagement>
<system>Jira</system>
<url>https://webgate.com.tdk.iot/TDKnet/jira/browse/ENVdevices</url>
</issueManagement>
<properties>
<weblogic.version>10.3.3.0</weblogic.version>
<junit.version>4.12</junit.version>
<spring.version>3.2.6.RELEASE</spring.version>
<spring.ws.version>1.5.8</spring.ws.version>
<pattern.integration.tests>**/*IT.java</pattern.integration.tests>
<pattern.dao.tests>**/*UTDAO.java</pattern.dao.tests>
<module.relative.url>../../${project.artifactId}/target/site</module.relative.url>
</properties>
<modules>
<module>devicesWeb</module>
<module>devicesEar</module>
</modules>
<dependencies>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.6</version>
<configuration>
<excludes>
<exclude>${pattern.integration.tests}</exclude>
<exclude>${pattern.dao.tests}</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0</version>
<!--
<configuration>
<rules>
<DependencyConvergence/>
</rules>
</configuration>
-->
<executions>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.0</version>
</requireMavenVersion>
<requireJavaVersion>
<version>1.7</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
<configuration>
<includePom>true</includePom>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>verify</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0</version>
<configuration>
<!-- Only the modules will find the customized site template -->
<siteDirectory>${basedir}/../site/src</siteDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.6</version>
<inherited>true</inherited>
<configuration>
<forkMode>once</forkMode>
</configuration>
</plugin>
<!-- To remove unwanted files generated on each run: called on phase "clean" -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<filesets>
<fileset>
<directory>${basedir}</directory>
<includes>
<include>orizon_report*.html</include>
<include>*.log</include>
<include>*.xls</include>
<include>*.zip</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
<configuration>
<formats>
<format>xml</format>
<format>html</format>
</formats>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>env-releases</id>
<name>ENV</name>
<url>https://webgate.com.tdk.iot/TDKnet/nexus/content/repositories/env/</url>
</repository>
<snapshotRepository>
<id>env-snapshots</id>
<name>ENV snapshots</name>
<url>https://webgate.com.tdk.iot/TDKnet/nexus/content/repositories/env-snapshots/</url>
</snapshotRepository>
</distributionManagement>
</project>

failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli)

I need to make for school a Maven project.
It's a project to use JPA. I added all the needed dependencies. And when I run the project I get the following error:
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project se42Her: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
I checked a lot of questions asked before but they didn't work. I added my POM below. Thanks in advance. :)
<?xml version="1.0" encoding="UTF-8"?><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>
<groupId>nl.se42HER</groupId>
<artifactId>se42Her</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>se42Her</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<mainClass>nl.se42her.se42her.MainApp</mainClass>
</properties>
<organization>
<!-- Used as the 'Vendor' for JNLP generation -->
<name>Your Organisation</name>
</organization>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>unpack-dependencies</id>
<phase>package</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<excludeScope>system</excludeScope>
<excludeGroupIds>junit,org.mockito,org.hamcrest</excludeGroupIds>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<id>unpack-dependencies</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${java.home}/../bin/javafxpackager</executable>
<arguments>
<argument>-createjar</argument>
<argument>-nocss2bin</argument>
<argument>-appclass</argument>
<argument>${mainClass}</argument>
<argument>-srcdir</argument>
<argument>${project.build.directory}/classes</argument>
<argument>-outdir</argument>
<argument>${project.build.directory}</argument>
<argument>-outfile</argument>
<argument>${project.build.finalName}.jar</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>default-cli</id>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${java.home}/bin/java</executable>
<commandlineArgs>${runfx.args}</commandlineArgs>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<compilerArguments>
<bootclasspath>${sun.boot.class.path}${path.separator}${java.home}/lib/jfxrt.jar</bootclasspath>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<additionalClasspathElements>
<additionalClasspathElement>${java.home}/lib/jfxrt.jar</additionalClasspathElement>
</additionalClasspathElements>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.33</version>
</dependency>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>eclipselink</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.jpa.modelgen.processor</artifactId>
<version>2.5.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
The errors I get:
Error 1:
java.lang.SecurityException: Invalid signature file digest for
Manifest main attributes at
sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:284)
at
sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:238)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:273) at
java.util.jar.JarVerifier.update(JarVerifier.java:228) at
java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at
java.util.jar.JarFile.getInputStream(JarFile.java:450) at
sun.misc.JarIndex.getJarIndex(JarIndex.java:137) at
sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:839) at
sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:831) at
java.security.AccessController.doPrivileged(Native Method) at
sun.misc.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:830) at
sun.misc.URLClassPath$JarLoader.(URLClassPath.java:803) at
sun.misc.URLClassPath$3.run(URLClassPath.java:530) at
sun.misc.URLClassPath$3.run(URLClassPath.java:520) at
java.security.AccessController.doPrivileged(Native Method) at
sun.misc.URLClassPath.getLoader(URLClassPath.java:519) at
sun.misc.URLClassPath.getLoader(URLClassPath.java:492) at
sun.misc.URLClassPath.getNextLoader(URLClassPath.java:457) at
sun.misc.URLClassPath.getResource(URLClassPath.java:211) at
java.net.URLClassLoader$1.run(URLClassLoader.java:365) at
java.net.URLClassLoader$1.run(URLClassLoader.java:362) at
java.security.AccessController.doPrivileged(Native Method) at
java.net.URLClassLoader.findClass(URLClassLoader.java:361) at
java.lang.ClassLoader.loadClass(ClassLoader.java:424) at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at
java.lang.ClassLoader.loadClass(ClassLoader.java:357) at
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)
Error: A JNI error has occurred, please check your installation and
try again Exception in thread "main"
Error 2:
INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing
READ-LOCK when accessing TokenHierarchy:
input-source:org.netbeans.modules.editor.NbEditorDocument#1ae8c632,
mimeType='text/x-maven-pom+xml', kitClass=null, length=5342,
version=13,
file=org.netbeans.modules.maven.grammar.POMDataObject#467490[C:\Users\Tjidde
Nieuwenhuizen\Documents\GitHub\SE42Her\se42Her\pom.xml#4283ecb8:2052c29a]
java.lang.Exception at
org.netbeans.lib.lexer.TokenHierarchyOperation.ensureReadLocked(TokenHierarchyOperation.java:406)
at
org.netbeans.lib.lexer.TokenHierarchyOperation.tokenSequence(TokenHierarchyOperation.java:431)
at
org.netbeans.lib.lexer.TokenHierarchyOperation.tokenSequence(TokenHierarchyOperation.java:427)
at
org.netbeans.api.lexer.TokenHierarchy.tokenSequence(TokenHierarchy.java:186)
at
org.netbeans.modules.xml.text.completion.XMLCompletionQuery.shouldCloseTag(XMLCompletionQuery.java:468)
at
org.netbeans.modules.xml.text.completion.XMLCompletionQuery.queryValues(XMLCompletionQuery.java:351)
at
org.netbeans.modules.xml.text.completion.XMLCompletionQuery.query(XMLCompletionQuery.java:127)
at
org.netbeans.modules.xml.text.completion.XMLCompletionProvider$Query.query(XMLCompletionProvider.java:124)
at
org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:223)
at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303) at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
I'm trying to run the following code.
https://github.com/tjidde-nl/SE42Her/blob/master/se42Her/src/main/java/nl/se42her/se42her/FXMLController.java which uses
https://github.com/tjidde-nl/SE42Her/blob/master/se42Her/src/main/java/DOA/CustomerDAOImpl.java

Categories