Hello, I followed the tutorial and maven example but when I do mvn clean package I receive this exception :
`[WARNING]
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:564)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:293)
at java.lang.Thread.run (Thread.java:844)
Caused by: javax.xml.bind.DataBindingException: javax.xml.bind.MarshalException
with linked exception:
[java.io.FileNotFoundException: file:/Users/myname/Projects/myprojectname/target/app/app.xml (No such file or directory)]
at javax.xml.bind.JAXB._marshal (JAXB.java:589)
at javax.xml.bind.JAXB.marshal (JAXB.java:347)
at fxlauncher.CreateManifest.main (CreateManifest.java:127)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:564)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:293)
at java.lang.Thread.run (Thread.java:844)
Caused by: javax.xml.bind.MarshalException
at com.sun.xml.bind.v2.runtime.MarshallerImpl.createXmlOutput (MarshallerImpl.java:200)
at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal (MarshallerImpl.java:221)
at javax.xml.bind.JAXB._marshal (JAXB.java:587)
at javax.xml.bind.JAXB.marshal (JAXB.java:347)
at fxlauncher.CreateManifest.main (CreateManifest.java:127)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:564)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:293)
at java.lang.Thread.run (Thread.java:844)
Caused by: java.io.FileNotFoundException: file:/Users/myname/Projects/myprojectname/target/app/app.xml (No such file or directory)
at java.io.FileOutputStream.open0 (Native Method)
at java.io.FileOutputStream.open (FileOutputStream.java:299)
at java.io.FileOutputStream. (FileOutputStream.java:238)
at java.io.FileOutputStream. (FileOutputStream.java:127)
at com.sun.xml.bind.v2.runtime.MarshallerImpl.createXmlOutput (MarshallerImpl.java:195)
at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal (MarshallerImpl.java:221)
at javax.xml.bind.JAXB._marshal (JAXB.java:587)
at javax.xml.bind.JAXB.marshal (JAXB.java:347)
at fxlauncher.CreateManifest.main (CreateManifest.java:127)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:564)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:293)
at java.lang.Thread.run (Thread.java:844)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE`
Indeed the file didn't exist, so I tried to create it and to do mvn package but I keep getting this error and I have no idea how to solve it, I'd be greateful if you could help me out.
I work with MacOS and Intellij, and I have the following pom.xml (the url is fake)
Hello, I followed the tutorial and maven example but when I do
mvn clean package
I receive this exception :`[WARNING] java.lang.reflect.InvocationTargetException at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:564) at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:293) at java.lang.Thread.run (Thread.java:844) Caused by: javax.xml.bind.DataBindingException: javax.xml.bind.MarshalException
Indeed the file didn't exist, so I tried to create it and to do
mvn package
but I keep getting this error and I have no idea how to solve it, I'd be greateful if you could help me out.I work with MacOS and Intellij, and I have the following pom.xml (the url is fake)
`<?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">
`