java.io.FileNotFoundException: File 'web/pom.xml' does not exist

AppFuse JIRA | Alex Coles | 9 years ago
  1. 0

    I have created a multi-module project with two separate "web" applications - as the project requires two discreet web applications (one for admin and one that is public-facing). The major change was to duplicate the contents of the web directory created from the archetype - and rename the two web directories as "admin-client" and "public-client". The following lines in the base pom.xml was changed <modules> <module>core</module> <module>web</module> </modules> to: <modules> <module>core</module> <module>admin-client</module> <module>public-client</module> </modules> Each of the modular pom.xml were also updated to reflect the naming conventions. When executing the mvn appfuse:full-source task, it successfully executes for the 'core' module. However, it fails on the 'admin-client' module: [INFO] ---------------------------------------------------------------------------- [INFO] Building Application - Admin Web Client (Spring MVC) [INFO] task-segment: [appfuse:full-source] [INFO] ---------------------------------------------------------------------------- [INFO] [appfuse:full-source] [INFO] [AppFuse] Installing source from web-common module... [INFO] [AppFuse] Installing source from spring module... [ERROR] Failed to copy jdbc.properties to core module [INFO] [AppFuse] Source successfully exported, modifying pom.xml... [INFO] [AppFuse] Removing maven-warpath-plugin... [INFO] [AppFuse] Adding dependencies from web-common module... [INFO] [AppFuse] Adding dependencies from spring module... [INFO] [AppFuse] Removing maven-warpath-plugin... [INFO] [AppFuse] Updated dependencies in pom.xml... [ERROR] Unable to write to pom.xml: File 'web/pom.xml' does not exist java.io.FileNotFoundException: File 'web/pom.xml' does not exist at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:136) at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:961) at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:979) at org.appfuse.mojo.installer.InstallSourceMojo.createFullSourcePom(InstallSourceMojo.java:428) at org.appfuse.mojo.installer.InstallSourceMojo.execute(InstallSourceMojo.java:277) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] File 'web/pom.xml' does not exist [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 35 seconds [INFO] Finished at: Thu Sep 20 20:22:49 CEST 2007 [INFO] Final Memory: 7M/22M [INFO] ------------------------------------------------------------------------ It looks, therefore as though the AMP plugin hardcodes the 'web' module name - and expects only that module to exist, as opposed to allowing for the name to be picked up from the list of modules within the <module> tag in the base pom.xml.

    AppFuse JIRA | 9 years ago | Alex Coles
    java.io.FileNotFoundException: File 'web/pom.xml' does not exist
  2. 0

    I have created a multi-module project with two separate "web" applications - as the project requires two discreet web applications (one for admin and one that is public-facing). The major change was to duplicate the contents of the web directory created from the archetype - and rename the two web directories as "admin-client" and "public-client". The following lines in the base pom.xml was changed <modules> <module>core</module> <module>web</module> </modules> to: <modules> <module>core</module> <module>admin-client</module> <module>public-client</module> </modules> Each of the modular pom.xml were also updated to reflect the naming conventions. When executing the mvn appfuse:full-source task, it successfully executes for the 'core' module. However, it fails on the 'admin-client' module: [INFO] ---------------------------------------------------------------------------- [INFO] Building Application - Admin Web Client (Spring MVC) [INFO] task-segment: [appfuse:full-source] [INFO] ---------------------------------------------------------------------------- [INFO] [appfuse:full-source] [INFO] [AppFuse] Installing source from web-common module... [INFO] [AppFuse] Installing source from spring module... [ERROR] Failed to copy jdbc.properties to core module [INFO] [AppFuse] Source successfully exported, modifying pom.xml... [INFO] [AppFuse] Removing maven-warpath-plugin... [INFO] [AppFuse] Adding dependencies from web-common module... [INFO] [AppFuse] Adding dependencies from spring module... [INFO] [AppFuse] Removing maven-warpath-plugin... [INFO] [AppFuse] Updated dependencies in pom.xml... [ERROR] Unable to write to pom.xml: File 'web/pom.xml' does not exist java.io.FileNotFoundException: File 'web/pom.xml' does not exist at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:136) at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:961) at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:979) at org.appfuse.mojo.installer.InstallSourceMojo.createFullSourcePom(InstallSourceMojo.java:428) at org.appfuse.mojo.installer.InstallSourceMojo.execute(InstallSourceMojo.java:277) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] File 'web/pom.xml' does not exist [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 35 seconds [INFO] Finished at: Thu Sep 20 20:22:49 CEST 2007 [INFO] Final Memory: 7M/22M [INFO] ------------------------------------------------------------------------ It looks, therefore as though the AMP plugin hardcodes the 'web' module name - and expects only that module to exist, as opposed to allowing for the name to be picked up from the list of modules within the <module> tag in the base pom.xml.

    AppFuse JIRA | 9 years ago | Alex Coles
    java.io.FileNotFoundException: File 'web/pom.xml' does not exist
  3. 0

    GitHub comment 51#68446544

    GitHub | 2 years ago | EmperorDali
    java.io.FileNotFoundException: File '/data/data/com.zeapo.pwdstore/files/store/.gpg-id' does not exist
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to read initscript from ./init.scala

    GitHub | 3 years ago | antonkulaga
    java.io.FileNotFoundException: File './init.scala' does not exist
  6. 0

    "Requirement files" field does not work

    GitHub | 2 years ago | kodekarl
    javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.chroot.builders.ChrootBuilder from {"chrootName":"test-pbuilder","clear":false,"loginAsRoot":false,"command":"pwd\nls -lA\nenv|sort\nsleep 300","packagesFile":"install-me.txt","additionalPackages":"","ignoreExit":false,"noUpdate":false,"forceInstall":false,"stapler-class":"org.jenkinsci.plugins.chroot.builders.ChrootBuilder","kind":"org.jenkinsci.plugins.chroot.builders.ChrootBuilder"}

  1. Larten 2 times, last 9 months ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    File 'web/pom.xml' does not exist

    at org.apache.commons.io.FileUtils.openInputStream()
  2. Commons IO
    FileUtils.readFileToString
    1. org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:136)
    2. org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:961)
    3. org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:979)
    3 frames
  3. org.appfuse.mojo
    InstallSourceMojo.execute
    1. org.appfuse.mojo.installer.InstallSourceMojo.createFullSourcePom(InstallSourceMojo.java:428)
    2. org.appfuse.mojo.installer.InstallSourceMojo.execute(InstallSourceMojo.java:277)
    2 frames
  4. Maven Plugin
    DefaultPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
    1 frame
  5. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
    2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
    3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
    4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
    5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
    6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
    7. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
    8. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
    8 frames
  6. M3 Interceptor
    MavenCli.main
    1. org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
    1 frame
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  8. Plexus
    Launcher.main
    1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)[INFO]
    4 frames