DPascalBernard / maven-alfresco-archetypes

Automatically exported from code.google.com/p/maven-alfresco-archetypes
0 stars 0 forks source link

Share archetype: can't find application.properties when build invoked from parent #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have a Share extension project that is a module of a parent project. 
When I invoke the build from the module directory, it works fine, but when
I invoke it from the parent directory, I get the following error:

Caused by: org.apache.maven.plugin.MojoExecutionException: Error loading
property file 'src/main/properties/local/application.properties'
    at
org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:450
)
    at
org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.
java:394)
    at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:195)
    at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:157)
    at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.ja
va:490)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycl
eExecutor.java:694)
    ... 17 more
Caused by: org.apache.maven.shared.filtering.MavenFilteringException: Error
loading property file 'src/main/properties/local/application.properties'
    at
org.apache.maven.shared.filtering.DefaultMavenFileFilter.loadProperties(DefaultM
avenFileFilter.java:265)
    at
org.apache.maven.shared.filtering.DefaultMavenFileFilter.getDefaultFilterWrapper
s(DefaultMavenFileFilter.java:143)
    at
org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:442
)
    ... 22 more
Caused by: java.io.FileNotFoundException:
src/main/properties/local/application.properties
    at
org.apache.maven.shared.filtering.PropertyUtils.loadPropertyFile(PropertyUtils.j
ava:65)
    at
org.apache.maven.shared.filtering.DefaultMavenFileFilter.loadProperties(DefaultM
avenFileFilter.java:260)

Original issue reported on code.google.com by geis....@gmail.com on 7 Dec 2009 at 10:37

GoogleCodeExporter commented 9 years ago
Could just be a Maven issue.  The build fails with Maven 2.2.1 from the command 
line,
but it works when invoked from 3.0alpha from Eclipse.

Original comment by geis....@gmail.com on 8 Dec 2009 at 1:07

GoogleCodeExporter commented 9 years ago
Can we verify this with the latest version?

Original comment by colum...@gmail.com on 4 Aug 2011 at 1:23

GoogleCodeExporter commented 9 years ago
I cannot verify this one, let's re-evaluate on version 4x

Original comment by colum...@gmail.com on 15 Nov 2011 at 5:19

GoogleCodeExporter commented 9 years ago
I replicated this using Maven 3.0.3 from command line. The workaround I used 
was to prepend '${basedir}/' to relative paths in pom.xml.

Original comment by ukdavo on 14 Mar 2012 at 3:33

GoogleCodeExporter commented 9 years ago
I replicated this using Maven 3.0.3 from command line. The workaround I used 
was to prepend '${basedir}/' to relative paths in pom.xml.

Original comment by ukdavo on 14 Mar 2012 at 3:34

GoogleCodeExporter commented 9 years ago
Fixed on trunk applying advise of ukdavo (thanks!) - 
http://code.google.com/p/maven-alfresco-archetypes/source/detail?r=370

Original comment by mauri...@session.it on 3 Apr 2012 at 5:01

GoogleCodeExporter commented 9 years ago

Original comment by mauri...@session.it on 6 Apr 2012 at 6:26