| Summary: | NPE when building | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Andrew Overholt <overholt> | ||||||
| Component: | Tycho | Assignee: | Jan Sievers <jan.sievers> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | akurtakov, caniszczyk, jan.sievers, sgehwolf | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Andrew Overholt
I just tried mv ~/.m2{,.bak} and a fresh 'mvn -fae clean install' and it failed again.
Created attachment 193273 [details]
output of mvn -X -fae clean install
I was using maven 3.0.2 but I just tried with 3.0.3 and the same error occurs. I've had this happen on hudson.eclipse.org now, too: https://hudson.eclipse.org/hudson/job/cbi-linuxtools-Helios/415/console Steps to reproduce: <ensure the mvn on your PATH resolves to a maven 3.0.2 or 3.0.3 download> git clone git://git.eclipse.org/gitroot/linuxtools/org.eclipse.linuxtools.git linuxtools cd linuxtools mvn -fae clean install Oops, scratch comment #5. Steps to reproduce: <ensure the mvn on your PATH resolves to a maven 3.0.2 or 3.0.3 download> git clone git://git.eclipse.org/gitroot/linuxtools/org.eclipse.linuxtools.git linuxtools cd linuxtools git checkout -b stable-0.7 origin/stable-0.7 mvn -fae clean install admittedly the NPE is far from appropriate error handling here. But the root cuase here is that modules http://git.eclipse.org/c/linuxtools/org.eclipse.linuxtools.git/tree/profiling/org.eclipse.linuxtools.profiling-feature?h=stable-0.7 and http://git.eclipse.org/c/linuxtools/org.eclipse.linuxtools.git/tree/profiling/org.eclipse.linuxtools.profiling.test-feature?h=stable-0.7 have a pom.xml with packaging type eclipse-feature, but there is no feature.xml in the module directory. By commenting out these two modules in the reactor I can get past the NPEs. The bottom line is we need to validate for existence of feature.xml in modules of packaging type eclipse-feature and create an appropriate error message if feature.xml is missing. Created attachment 193362 [details]
patch
patch which validates feature.xml early.
TODO apply to master after we branched 0.12.x
Thanks, Jan. Sorry for it being an oversight on my part and I look forward to better error messages. fixed with commit faf0ef2 |