Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354242 - Can't execute a successful Maven build of Virgo tooling
Summary: Can't execute a successful Maven build of Virgo tooling
Status: CLOSED FIXED
Alias: None
Product: Virgo
Classification: RT
Component: tooling (show other bugs)
Version: 3.0.0.RC1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.5.0.RELEASE   Edit
Assignee: Borislav Kapukaranov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-09 08:52 EDT by Borislav Kapukaranov CLA
Modified: 2011-08-09 11:19 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Borislav Kapukaranov CLA 2011-08-09 08:52:49 EDT
Reproducible only on Windows.
The maven build is trying to add a local p2 repository and on windows the path contains the following pattern "file://C:/", which is considered to be an example of authority coomponent in an URI. p2 doesn't like such path for a repository URI so the build fails with in short:
Reason: org.eclipse.equinox.p2.core.ProvisionException: URI has an authority component.

The fix is to replace "file://" with just "file:", which works on all OSs
Comment 1 Borislav Kapukaranov CLA 2011-08-09 08:56:06 EDT
Fixed. Targeting 3.5 which will be the first official tooling release.
Comment 2 Borislav Kapukaranov CLA 2011-08-09 11:19:28 EDT
Another error was the way the installed jdk was referenced. 
On windows sometimes there are spaces in the paths, which caused an error in the Maven job.
The solution was to put quotes around the jdk path in the master pom.xml.