Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Build Failing at Ant Step for UI(Build Scout Classic 22 Ant)
Build Failing at Ant Step for UI [message #1858960] Wed, 03 May 2023 12:22 Go to next message
Luis Nothvogel is currently offline Luis NothvogelFriend
Messages: 56
Registered: October 2019
Member
Hi all,

Since i switched my Classic Scout 22 (Java 11) Projekt from SVN to git i cant build anymore.
I get the following Maven error:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for PROJECT Parent Module 1.0.0-SNAPSHOT:
[INFO] 
[INFO] PROJECT Parent Module ............................. SUCCESS [  1.185 s]
[INFO] PROJECT Shared .................................... SUCCESS [ 19.652 s]
[INFO] PROJECT Server .................................... SUCCESS [ 10.878 s]
[INFO] PROJECT Client .................................... SUCCESS [ 39.780 s]
[INFO] PROJECT Server Application ........................ SUCCESS [  4.399 s]
[INFO] PROJECT Server Application (Development) .......... SUCCESS [  4.708 s]
[INFO] PROJECT HTML UI ................................... FAILURE [  0.561 s]
[INFO] PROJECT HTML UI Application ....................... SKIPPED
[INFO] PROJECT HTML UI Application (Development) ......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:21 min
[INFO] Finished at: 2023-05-03T13:44:54+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:3.0.0:run (check-npm-install-workspace) on project PROJECT.ui.html: An Ant BuildException has occured: Could not create C:\Programming\PROJECTStuff\PROJECT_Git\PROJECT\pom.xml\target\npm_update.marker
[ERROR] around Ant part ...<touch file="C:\Programming\PROJECTStuff\PROJECT_Git\PROJECT.ui.html\../PROJECT/pom.xml\target\npm_update.marker" mkdirs="true" />... @ 6:139 in C:\Programming\PROJECTStuff\PROJECT_Git\PROJECT.ui.html\target\antrun\build-main.xml: Das System kann den angegebenen Pfad nicht finden
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:3.0.0:run (check-npm-install-workspace) on project PROJECT.ui.html: An Ant BuildException has occured: Could not create C:\Programming\PROJECTStuff\PROJECT_Git\PROJECT\pom.xml\target\npm_update.marker
around Ant part ...<touch file="C:\Programming\PROJECTStuff\PROJECT_Git\PROJECT.ui.html\../PROJECT/pom.xml\target\npm_update.marker" mkdirs="true" />... @ 6:139 in C:\Programming\PROJECTStuff\PROJECT_Git\PROJECT.ui.html\target\antrun\build-main.xml
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    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:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
    at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant BuildException has occured: Could not create C:\Programming\PROJECTStuff\PROJECT_Git\PROJECT\pom.xml\target\npm_update.marker
around Ant part ...<touch file="C:\Programming\PROJECTStuff\PROJECT_Git\PROJECT.ui.html\../PROJECT/pom.xml\target\npm_update.marker" mkdirs="true" />... @ 6:139 in C:\Programming\PROJECTStuff\PROJECT_Git\PROJECT.ui.html\target\antrun\build-main.xml
    at org.apache.maven.plugins.antrun.AntRunMojo.execute (AntRunMojo.java:308)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    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:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
    at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
Caused by: org.apache.tools.ant.BuildException: Could not create C:\Programming\PROJECTStuff\PROJECT_Git\PROJECT\pom.xml\target\npm_update.marker
    at org.apache.tools.ant.taskdefs.Touch.touch (Touch.java:360)
    at org.apache.tools.ant.taskdefs.Touch.touch (Touch.java:334)
    at org.apache.tools.ant.taskdefs.Touch.touch (Touch.java:284)
    at org.apache.tools.ant.taskdefs.Touch.execute (Touch.java:273)
    at org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:299)
    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:566)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute (DispatchUtils.java:99)
    at org.apache.tools.ant.Task.perform (Task.java:350)
    at org.apache.tools.ant.Target.execute (Target.java:449)
    at org.apache.tools.ant.Target.performTasks (Target.java:470)
    at org.apache.tools.ant.Project.executeSortedTargets (Project.java:1401)
    at org.apache.tools.ant.Project.executeTarget (Project.java:1374)
    at org.apache.maven.plugins.antrun.AntRunMojo.execute (AntRunMojo.java:287)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    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:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
    at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
Caused by: java.io.IOException: Das System kann den angegebenen Pfad nicht finden
    at java.io.WinNTFileSystem.createFileExclusively (Native Method)
    at java.io.File.createNewFile (File.java:1035)
    at org.apache.tools.ant.util.FileUtils.createNewFile (FileUtils.java:1224)
    at org.apache.tools.ant.taskdefs.Touch.touch (Touch.java:357)
    at org.apache.tools.ant.taskdefs.Touch.touch (Touch.java:334)
    at org.apache.tools.ant.taskdefs.Touch.touch (Touch.java:284)
    at org.apache.tools.ant.taskdefs.Touch.execute (Touch.java:273)
    at org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:299)
    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:566)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute (DispatchUtils.java:99)
    at org.apache.tools.ant.Task.perform (Task.java:350)
    at org.apache.tools.ant.Target.execute (Target.java:449)
    at org.apache.tools.ant.Target.performTasks (Target.java:470)
    at org.apache.tools.ant.Project.executeSortedTargets (Project.java:1401)
    at org.apache.tools.ant.Project.executeTarget (Project.java:1374)
    at org.apache.maven.plugins.antrun.AntRunMojo.execute (AntRunMojo.java:287)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    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:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
    at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
[ERROR] 
[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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :PROJECT.ui.html

Process finished with exit code 1



The PROJECT.ui.html/target/build-main.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<project name="maven-antrun-" default="main">
  <target name="main">
    <available file="C:\Programming\PROJECTStuff\PROJECT_Git\PROJECT.ui.html\../PROJECT/pom.xml\target\node/node_modules/@eclipse-scout" property="master_skip_init_node" />
    <available file="C:\Programming\PROJECTStuff\PROJECT_Git\PROJECT.ui.html\../PROJECT/pom.xml\target\npm_update.marker" property="master_skip_npm_update" />
    <touch file="C:\Programming\PROJECTStuff\PROJECT_Git\PROJECT.ui.html\../PROJECT/pom.xml\target\npm_update.marker" mkdirs="true" />
  </target>
</project>


Does anyone know why this happens?

EDIT: I think the problem is in the ant script. The path contains "pom.xml". That shoudnt be there.

[Updated on: Wed, 03 May 2023 12:28]

Report message to a moderator

Re: Build Failing at Ant Step for UI [message #1858963 is a reply to message #1858960] Wed, 03 May 2023 12:36 Go to previous messageGo to next message
Arthur van Dorp is currently offline Arthur van DorpFriend
Messages: 48
Registered: October 2015
Member
Quote:
The path contains "pom.xml"

That's what I would say as well. Have a look at your pom.xml files, whether you define a relativePath or some such with <whatever>/pom.xml instead of <whatever>. Or possibly check other configuration files where there are paths.
Re: Build Failing at Ant Step for UI [message #1858964 is a reply to message #1858963] Wed, 03 May 2023 12:44 Go to previous messageGo to next message
Luis Nothvogel is currently offline Luis NothvogelFriend
Messages: 56
Registered: October 2019
Member
Yep that fixed it. For some reason in all pom.xml the relativePath contained /pom.xml . I dont know where that came from but when i removed it, it worked. Thank you :)
Re: Build Failing at Ant Step for UI [message #1858965 is a reply to message #1858964] Wed, 03 May 2023 12:47 Go to previous message
Arthur van Dorp is currently offline Arthur van DorpFriend
Messages: 48
Registered: October 2015
Member
Perfect. I have a very dim recollection of an issue like that some time ago. Possibly Maven doesn't trip over this but other tools like Ant do and something has changed over time which tool uses what information.
Previous Topic:Assertion error: No userId available
Next Topic:[Solved] WAR files creation fail
Goto Forum:
  


Current Time: Tue Feb 27 06:47:50 GMT 2024

Powered by FUDForum. Page generated in 0.01890 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top