Bug 268607 - "Property file not loaded", when maven filters are defined usign Environment Variables in his file-url
Summary: "Property file not loaded", when maven filters are defined usign Environment ...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: IAM (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL: http://code.google.com/p/q4e/issues/d...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-13 16:21 EDT by carlosyague CLA
Modified: 2012-01-05 13:10 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description carlosyague CLA 2009-03-13 16:21:06 EDT
Q4E Version: 0.9.0 (Eclipse IAM)
Eclipse Version: 3.4 (Ganymede)
Java Version: 1.5
OS: All (Windows and Linux)
Apache Maven Command-Line Version: 2.0.9

Hi!

Q4E reports an Error in the Eclipse view "Problems"

*Description*: Error loading property file
'C:\workspace\main_mvn_project\apps_mvn_projects\app_mvn1\${env.WORKSPACE}\main_mvn_project\src\main\filters\env-prod.properties'
C:\workspace\main_mvn_project\apps_mvn_projects\app_mvn1\${env.WORKSPACE}\main_mvn_project\src\main\filters\env-prod.properties
*Resource*: pom.xml
*Path*: core
*Location*: line 1
*Type*: pomproblemmarker

This error not occurs when I install this project through Maven
command-line mode:
$main_mvn_project/apps_mvn_projects/app_mvn1> mvn install


My Maven project has this architecture.
* main_mvn_project/pom.xml
* main_mvn_project/src/main/filters/env-prod.properties
* main_mvn_project/apps_mvn_projects/pom.xml
* main_mvn_project/apps_mvn_projects/app_mvn1/pom.xml
* main_mvn_project/apps_mvn_projects/app_mvn2/pom.xml
...
* main_mvn_project/apps_mvn_projects/app_mvn8/pom.xml

This error occurs compiling "app_mvn1" Eclipse Project.

The <filters/> declaration is in "main_mvn_project/pom.xml":
..
<build>
  <defaultGoal>package</defaultGoal>
  <filters>
    <filter>${env.WORKSPACE}/src/main/filters/env-prod.properties</filter>
  </filters>
..

I supuse Q4E not supports maven environment variables declarations like
${env.VARIABLE_NAME}

Thank you in advance!