Christian Fröhler created JSPWIKI-1094:
------------------------------------------

             Summary: mvn eclipse:eclipse fails
                 Key: JSPWIKI-1094
                 URL: https://issues.apache.org/jira/browse/JSPWIKI-1094
             Project: JSPWiki
          Issue Type: Bug
          Components: Build system
    Affects Versions: 2.11.0-M2
         Environment: Tested on Windows machine and Mac OS
            Reporter: Christian Fröhler
             Fix For: 2.11.0-M3


Building current source of JSPWiki fails with
{noformat}
mvn eclipse:eclipse
{noformat}
fails:


{noformat}
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache JSPWiki ..................................... SUCCESS [  1.506 s]
[INFO] Apache JSPWiki initial wiki pages builder .......... SUCCESS [  0.067 s]
[INFO] Apache JSPWiki initial wiki pages (de) ............. FAILURE [  0.158 s]
[INFO] Apache JSPWiki initial wiki pages (en) ............. SKIPPED
[INFO] Apache JSPWiki initial wiki pages (es) ............. SKIPPED
[INFO] Apache JSPWiki initial wiki pages (fi) ............. SKIPPED
[INFO] Apache JSPWiki initial wiki pages (fr) ............. SKIPPED
[INFO] Apache JSPWiki initial wiki pages (it) ............. SKIPPED
[INFO] Apache JSPWiki initial wiki pages (nl) ............. SKIPPED
[INFO] Apache JSPWiki initial wiki pages (pt_BR) .......... SKIPPED
[INFO] Apache JSPWiki initial wiki pages (ru) ............. SKIPPED
[INFO] Apache JSPWiki initial wiki pages (zh_CN) .......... SKIPPED
[INFO] Apache JSPWiki utility classes ..................... SKIPPED
[INFO] Apache JSPWiki Main Jar ............................ SKIPPED
[INFO] Apache JSPWiki markdown support .................... SKIPPED
[INFO] Apache JSPWiki Main War ............................ SKIPPED
[INFO] Apache JSPWiki portable ............................ SKIPPED
[INFO] jspwiki-it-builder ................................. SKIPPED
[INFO] jspwiki-selenide-tests ............................. SKIPPED
[INFO] jspwiki-it-test-custom ............................. SKIPPED
[INFO] jspwiki-it-test-custom-absolute-urls ............... SKIPPED
[INFO] jspwiki-it-test-custom-jdbc ........................ SKIPPED
[INFO] jspwiki-it-test-cma ................................ SKIPPED
[INFO] jspwiki-it-test-cma-jdbc ........................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.710 s
[INFO] Finished at: 2019-03-18T22:19:05+01:00
[INFO] Final Memory: 22M/232M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-eclipse-plugin:2.10:eclipse (default-cli) on 
project jspwiki-wikipages-de: Unable to resolve resource location: 
./jspwiki-war/src/main/config/dev/jspwiki-checkstyle.xml -> [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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :jspwiki-wikipages-de

{noformat}


Reason: relative path in pom.xml, which cannot be resolved when building the 
submodules
{code:xml}
             <additionalConfig>
               <file>
                 <name>.checkstyle</name>
-                
<location>./jspwiki-war/src/main/config/dev/jspwiki-checkstyle.xml</location>
+                
<location>${maven.multiModuleProjectDirectory}/jspwiki-war/src/main/config/dev/jspwiki-checkstyle.xml</location>
               </file>
               <file>
                 <name>.settings/org.eclipse.jdt.core.prefs</name>
-                
<location>./jspwiki-war/src/main/config/dev/jspwiki-eclipse-codestyle.xml</location>
+                
<location>${maven.multiModuleProjectDirectory}/jspwiki-war/src/main/config/dev/jspwiki-eclipse-codestyle.xml</location>
               </file>
             </additionalConfig>
             <additionalProjectnatures>
{code}
Solution: use property ${maven.multiModuleProjectDirectory}
 This property is available in maven since mvn 3.3.1



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to