That works great! Thanks a lot. Now I'm running into the next
problem.
The output I get now is:
[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-compiler-plugin:0.21.0:compile (default-compile)
on project org.eclipse.m2e.wtp: Compilation failure: Compilation failure:
[ERROR]
/home/vagrant/rpmbuild/BUILD/m2e.wtp-releases-1.1.0-1.1.0.20140611-1646/org.eclipse.m2e.wtp/src/org/eclipse/m2e/wtp/namemapping/PatternBasedFileNameMapping.java:[12]
[ERROR] import org.apache.maven.plugin.war.util.MappingUtils;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.apache.maven.plugin.war cannot be resolved
[ERROR]
/home/vagrant/rpmbuild/BUILD/m2e.wtp-releases-1.1.0-1.1.0.20140611-1646/org.eclipse.m2e.wtp/src/org/eclipse/m2e/wtp/namemapping/PatternBasedFileNameMapping.java:[37]
[ERROR] return MappingUtils.evaluateFileNameMapping(pattern, artifact);
[ERROR] ^^^^^^^^^^^^
[ERROR] MappingUtils cannot be resolved
However I have added a "BuildRequires:
mvn(org.apache.maven.plugins:maven-war-plugin:pom:)" and the JAR from
this package (maven-war-plugin) does include this package & class.
The only thing I see is that the POM refers to version 2.2 but Fedora
has 2.4, but I understood that that would be fixed automatically (like
with the Tycho version differences). The class structure hasn't changed
either. I suspect I'm missing something silly. I've attached my spec
file. What could be going wrong?
It appears that MappingUtils has been removed in 2.5 (it was present in
2.4). See :
http://maven.apache.org/plugins-archives/maven-war-plugin-2.4/apidocs/org...
http://maven.apache.org/plugins-archives/maven-war-plugin-2.5/apidocs/org...
I haven't looked into it but you may need to find a document that either
explains how to migrate, or figure out what MappingUtils did and how the
functionality is provided in 2.5+ .
Cheers,
--
Roland Grunberg