Ticket #775 (closed Defect: fixed)

Opened 9 years ago

Last modified 8 years ago

hot deployment on Windows

Reported by: dgf Owned by:
Priority: Major Milestone:
Component: DeepaMehta Standard Distribution Version: 4.5
Keywords: Cc: AsifM, Malte
Complexity: 3 Area: Runtime Environment


Pax Runner fails on a fresh Windows 8 installation with Java 8u31 and Maven 3.2.5

The dynamic resolution of the file installation uses the basedir property and this results in unusable paths.


After cloning and starting DeepaMehta in C:\projects\deepamehta the property evaluation results in C:\projects\deepamehta/modules/dm4-core/target and the Pax Runner throws a strange class not found exception for the main class of C:\projects\deepamehta.modules.dm4-core.target

Some research and tests later, I realized that the Felix Fileinstall Plugin can only handle directories with slashes or escaped back-slashes like C:/projects/deepamehta/modules/dm4-core/target and the escaped form C:\\projects\\deepamehta\\modules\\dm4-core\\target

A manually adjusted configuration works with static paths and only without the leading/trailing comma.


The underlying question is - How we can create such a dynamic relative path in the right form? This is a Maven specific topic and there are also other properties like the logging file and repository path. I have found different solutions to replace the Maven property basedir value:




Change History

comment:1 Changed 9 years ago by jri

  • Cc AsifM added

Summary for Windows users:

A workaround is to set absolute paths in the felix.fileinstall.dir property (in pom.xml), e.g.


Note the forward slashes. (Alternatively you could use backward slashes but you have to escape them as \\ then.)
IMPORTANT: you must remove the 2 surprising leading and trailing commas.

If still not working remove the line breaks between the individual <felix.fileinstall.dir> entries.

Unfortunately there is no apparent general fix to this issue.

Thanks to dgf and AsifM for providing help!

comment:2 Changed 9 years ago by jri

  • Cc Malte added

comment:3 Changed 9 years ago by jri

  • Version 4.5 deleted

comment:4 Changed 9 years ago by jri

  • Version set to 4.5
  • Milestone Release 4.5 deleted

comment:5 follow-up: ↓ 6 Changed 8 years ago by Malte

Is this still an issue with the introduction of the bundle-dev directory and the dm4.deploy.dir property?

comment:6 in reply to: ↑ 5 Changed 8 years ago by jri

  • Status changed from new to closed
  • Resolution set to fixed

Replying to Malte:

Is this still an issue with the introduction of the bundle-dev directory and the dm4.deploy.dir property?

This should no longer be an issue anymore.
Thank you for reminding!

Last edited 8 years ago by jri (previous) (diff)
Note: See TracTickets for help on using tickets.