I'm getting this error when trying to compile a java project.
[INFO] Failed to parse a schema.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:46 min
[INFO] Finished at: 2020-10-10T11:37:54+10:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:jaxb2-maven-plugin:1.6:xjc (demo) on project demo-server: Could not process schema files in directory C:\Users\jake\Desktop\Demos\ec\server\src\main\xsd\demo -> [Help 1]
[ERROR]
I'm not too sure what's going wrong here, or how to fix it in order to make it successfully build.
The error messages are from the "xjc" task of "jaxb2-maven-plugin". It is trying to generate Java source code from XSD files in the "src\main\xsd\demo" directory.
Apparently, there is a syntax problem in one or more of the XSD files.
To get more information about those syntax problems, try running Maven in debug mode; e.g. include the -X option on the mvn command line.
Related
I have followed the guide in https://developers.arcgis.com/java/latest/guide/get-the-sdk.htm but somehow I got this 404 forbidden error when trying to run mvn install to install the dependencies of my project (there's ArcGIS, and it's the core problem).
$ mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< redacted >-----------------------
[INFO] Building <redacted> 1.1
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from arcgis: https://esri.bintray.com/arcgis/com/esri/arcgisruntime/arcgis-java/100.8.0/arcgis-java-100.8.0.pom
Downloading from arcgis: https://esri.bintray.com/arcgis/com/esri/arcgisruntime/arcgis-java-jnilibs/100.8.0/arcgis-java-jnilibs-100.8.0.pom
Downloading from arcgis: https://esri.bintray.com/arcgis/com/esri/arcgisruntime/arcgis-java-resources/100.8.0/arcgis-java-resources-100.8.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.135 s
[INFO] Finished at: 2021-01-11T14:38:29+07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project <redacted>: Could not resolve dependencies for project <redacted>:jar:1.1: Failed to collect dependencies at com.esri.arcgisruntime:arcgis-java:jar:100.8.0: Failed to read artifact descriptor for com.esri.arcgisruntime:arcgis-java:jar:100.8.0: Could not transfer artifact com.esri.arcgisruntime:arcgis-java:pom:100.8.0 from/to arcgis (https://esri.bintray.com/arcgis): Authorization failed for https://esri.bintray.com/arcgis/com/esri/arcgisruntime/arcgis-java/100.8.0/arcgis-java-100.8.0.pom 403 Forbidden -> [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/DependencyResolutionException
When I tried to open the URL https://esri.bintray.com/arcgis/com/esri/arcgisruntime/arcgis-java/100.8.0/arcgis-java-100.8.0.pom in my browser, I also got that 404 forbidden error. I think the link is broken somehow?
I solved this by replacing the ArcGIS repo's URL from
https://esri.bintray.com/arcgis
to
https://esri.jfrog.io/artifactory/arcgis
in my project's pom.xml.
That repo URL (the latter) is used in ArcGIS Android installation guide, but somehow, the argis-java's documentation doesn't include this and instead include the former one which is broken (returns 404 forbidden error)
EDIT:
I just found an announcement about this issue, my bad, I didn't see this at the first time. So yes, they moved their repository from the former one to the latter. https://www.esri.com/arcgis-blog/products/developers/announcements/announcement-to-developers-using-arcgis-runtime-sdks-for-android-and-java/
I have a complete angular7 project and want to integrate with java.
is there any way to do it?
I am using eclipse maven + ibm websphere. (not spring boot)
I referred this post(by #TimeTraveler) and tried to follow...
however when I run command mvn clean package, I encounter this error
[INFO] --- frontend-maven-plugin:1.0:npm (npm install) # angular7test ---
[INFO] Running 'npm install' in C:\Users\eclipse-workspace\angular7test\angular-project
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:01 min
[INFO] Finished at: 2018-11-29T23:16:03+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:npm (npm install) on project angular7test: Failed to run task: 'npm install' failed. java.io.IOException: Cannot run program "C:\Users\eclipse-workspace\angular7test\node_installation\node\node.exe" (in directory "C:\Users\eclipse-workspace\angular7test\angular-project"): CreateProcess error=267, The directory name is invalid -> [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/MojoFailureException
and I also have a question .. based on that post, maven project looks like below
Maven Project -
src
main
java
resources
webapp
WEB-INF
web.xml
angular-project (I paste my angular project here)
node_installation ========>what is this?????
pom.xml
what is node_installation? .. is that a folder? do i need to create?
this is my package..
The error you posted indicates that Maven can't find the node.js executable node.exe in order to build your Angular project. Make sure you configure your pom as indicated on the frontend-maven-plugin readme page so that it will install node and npm into your project dir where maven expects to find it. This will create the node_installation directory you are missing and populate it with the node.exe executable, which should resolve the error.
I am new for maven. I have appfuse maven project and it is embedded. I wanted to make it as full-source, but it gave me following error:
Failed to execute goal org.appfuse.plugins:appfuse-maven-plugin:3.0.0:full-source (default-cli) on project OOS: svn: PROPFIND request failed on '/svn/appfuse~svn/tags/APPFUSE_3.0.0/data/common/src'
I have searched solution for this and found this information and applied that solution given in the site: adding
<trunk>https://svn.java.net/svn/appfuse~svn/</trunk>
inside of appfuse configuration tag. After adding this line to my pom.xml file, i have tried to run mvn appfuse:full-source, but it gave me the same error.
full stack is here:
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.mycompany:OOS:war:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.exclusions.exclusion.artifactId' for org.springmodules:spring-modules-validation:jar with value '*' does not match a valid id pattern. # line 363, column 33
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building AppFuse Spring MVC Application 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- appfuse-maven-plugin:3.0.0:full-source (default-cli) # OOS ---
[INFO] [AppFuse] Installing source from data-common module...
[ERROR] 175002 : svn: PROPFIND request failed on '/svn/appfuse~svn/tags/APPFUSE_3.0.0/data/common/src'
[ERROR] 175002 : svn: svn.java.net: Name or service not known
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.743s
[INFO] Finished at: Fri Oct 10 15:53:55 UZT 2014
[INFO] Final Memory: 10M/144M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.appfuse.plugins:appfuse-maven-plugin:3.0.0:full-source (default-cli) on project OOS: svn: PROPFIND request failed on '/svn/appfuse~svn/tags/APPFUSE_3.0.0/data/common/src'
[ERROR] svn: svn.java.net: Name or service not known
[ERROR] -> [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/MojoExecutionException
I have deleted whole repository directory in my .m2 folder, but did not help.
I wanted to check the link https://svn.java.net/svn/appfuse~svn/ but it asked username/password for entering. I think, this also can be a cause. I am using Ubuntu and tried to install subversion form Software center, but was no use: still the same problem.
I hope someone have faced this type of issue and will share.
Finally, I have figured it out. The problem was with mysql db. I was using default configurations in my project's pom.xml and by default it uses mysql dbms. It has connected with db and created all tables in mysql, but hasn't started the project. but, when i have changed db profile to postgresql, it has worked like a charm. I haven't understand why, but the appfuse maven project has some conflicts with mysql dbms.
[INFO] Verifying that there are no local modifications...
[INFO] ignoring changes on: **/pom.xml.backup, **/release.properties, **/pom.xml.branch, **/pom.xml.next, **/pom.xml.releaseBackup, **/pom.xml.tag
[INFO] Executing: /bin/sh -c cd /opt/Jenkins/ic/jenkins/jobs/util/workspace && git status
[INFO] Working directory: /opt/Jenkins/ic/jenkins/jobs/util/workspace
[INFO] Checking dependencies and plugins for snapshots ...
[INFO] Transforming 'my_proyect'...
[INFO] Not generating release POMs
[INFO] Executing goals 'clean verify'...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:23.375s
[INFO] Finished at: Wed Jan 22 15:21:16 ECT 2014
[JENKINS] Archiving /opt/Jenkins/ic/jenkins/jobs/util/workspace/pom.xml to xx.xxx.xxxx/my_proyect/1.0.2-SNAPSHOT/my_proyect-1.0.2-SNAPSHOT.pom
[INFO] Final Memory: 16M/246M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli) on project my_proyect: Could not create temporary file for release settings.xml: Permission denied -> [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/MojoExecutionException
channel stopped
Finished: FAILURE
I need help.
When built a snapshot does not give me problems, but if I want to generate a release I get the above log.
I have the jenkins 1.548
maven 3.1.1
nexus 2.7.0-0
Jenkins + maven-release-plugin + settings.xml = painful
Check the following locations for any mention or overrides of settings.xml file:
Jenkins
instance-level config
general Maven section
Maven release plugin section
job-level config
general Maven section
Maven release plugin section
pom.xml file
maven-release-plugin section
profiles section
In addition, things can get fussy depending on how you're running the job in Jenkins:
freestyle job with Maven goals
Maven job using regular "Build" button with "release:prepare" goals
Maven build using "Run Maven Release" button
Try experimenting with different job types.
I need to install db unit in my system. I have completed installing JDBC driver. i have downloaded junit-4.11.jar.
I have to generate the jar file into the directory.What is the correct method/step of doing this.AS per the link:
http://www.dbunit.org/building.html
i tried to run the command mvn from command line.
But i get the error
C:\Users\suvin>mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.225s
[INFO] Finished at: Tue Nov 20 14:51:56 IST 2012
[INFO] Final Memory: 1M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM
in this directory (C:\Users\suvin). Please verify you invoked Maven from the co
rrect directory. -> [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/MissingProject
Exception
Any help would be appreciated
Is dbUnit dependency is included in the POM file, if so mvn install does what you are expecting it to do
<dependency>
<groupId>org.dbunit</groupId>
<artifactId>dbunit</artifactId>
<version>2.4.3</version>
</dependency>
it seems C:\Users\suvin location doesn't have pom file, Before execute "mvn install" your command prompt should be in place where your POM file exist.
For your information.
Normaly from a source codes you can build(compile) it and get your jars. To build a source codes you can use either ant or maven which are some build tools in java. Source codes providers provide their source codes with build.xml or pom.xml or both. You could use your build technology to compile that java source and get jar from it.
you can learn ant and maven from the web