[fedora-java] Packaging m2e-wtp

Julius Schwartzenberg julius.schwartzenberg at abz.nl
Fri Feb 27 17:07:59 UTC 2015


On 02/27/2015 10:38 AM, Mat Booth wrote:
> In other fedora packages we just remove the jgit dependencies, for
> example see eclipse-mylyn.spec lines 243-246:
>
> http://pkgs.fedoraproject.org/cgit/eclipse-mylyn.git/tree/eclipse-mylyn.spec#n243
>
> I think this is an acceptible workaround

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?

Thanks,
Julius
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eclipse-m2e-wtp.spec
Type: text/x-rpm-spec
Size: 1847 bytes
Desc: eclipse-m2e-wtp.spec
URL: <http://lists.fedoraproject.org/pipermail/java-devel/attachments/20150227/51ced8cb/attachment.bin>


More information about the java-devel mailing list