Hi Piotr,

I guess the reason for the build failing is the following:

You are not using the default maven structure (src/main/resources) for the 
directory containing the template. 

Therefore, Maven is not automatically processing this. Usually the maven 
resources plugin copies resources to the output and optionally does some 
replacing of maven-properties. If you need that, you need to specify the 
resource directory. Then the build will copy the resources and replace the 
properties to the final output directory (in case of a debug build to the 
debug-js directory, in case of a release to the js-release directory). The 
htmlTemplate needs to reference the correct directory.

If you don’t need any maven-properties such as versions etc. replaced, you need 
to specify the location of the template to a place it can find it. 

In your case the build succeeds, if you use this:
            
<htmlTemplate>${basedir}/src/resources/mdl-js-index-template.html</htmlTemplate>


Hope that explains things and helps you continune (

Chris


Am 23.04.17, 12:21 schrieb "piotrz" <piotrzarzyck...@gmail.com>:

    Hi Chris,
    
    I definitely moved forward with build of my project, but I have one weird
    exception [1] which I really do not know what's mean.
    
    It occurs when I'm adding following option to my pom:
    
    
<htmlTemplate>${basedir}/target/javascript/bin/js-debug/mdl-js-index-template.html</htmlTemplate>
    
    Everything is building fine without that option. I've prepared project
    example [2] if you wanted to try it out. You need to build "lib" and then
    "app". 
    
    Appreciate for help.
    
    [1] https://paste.apache.org/G6Sa
    [2] https://1drv.ms/u/s!ApVpLyjpHDC2zR-rU7tggib25h46
     
    Piotr
    
    
    
    -----
    Apache Flex PMC
    piotrzarzyck...@gmail.com
    --
    View this message in context: 
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Maven-Build-library-project-type-to-js-only-swc-tp61001p61287.html
    Sent from the Apache Flex Development mailing list archive at Nabble.com.
    

Reply via email to