Open GoogleCodeExporter opened 8 years ago
Thank you for reporting the issue.
Unfortunately I haven't managed to reproduce it: my build works with the same
declaration as yours.
Could you possibly send me the complete content of your pom.xml?
Original comment by v.kary...@gmail.com
on 17 Jul 2012 at 3:14
Hi, attached is the pom extracted from hg. I had to reconstruct it, so
formating is lost. sorry.
thanks.
Original comment by henning....@codecentric.de
on 17 Jul 2012 at 3:24
Sorry, cannot find the attached file anywhere.
Could you resend it please?
Original comment by v.kary...@gmail.com
on 17 Jul 2012 at 6:10
Here is the pom.xml as text:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>my-groupId</groupId>
<artifactId>my-artifactId</artifactId>
<version>0.0.1</version>
<packaging>war</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.9</version>
<configuration>
<wtpversion>2.0</wtpversion>
</configuration>
</plugin>
<plugin>
<groupId>com.googlecode.addjars-maven-plugin</groupId>
<artifactId>addjars-maven-plugin</artifactId>
<version>1.0.4</version>
<executions>
<execution>
<goals>
<goal>add-jars</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>${basedir}/lib</directory>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.2.8</version>
</dependency>
</dependencies>
</project>
Original comment by henning....@codecentric.de
on 19 Jul 2012 at 9:09
I have tried your pom.xml but the problem did not occur in my case.
Please have a look at the sample project in the attached archive. It builds
successfully for me.
Could you check it and modify so that the problem takes place?
BTW
I did see another problem though: the war plugin could not find the web.xml
file when its path was set relatively. To fix it I had to set the absolute path
to web.xml. I will look into this problem separately.
Original comment by v.kary...@gmail.com
on 20 Jul 2012 at 7:40
Attachments:
I have a similar issue too, however it builds on a couple boxes, but only seems
to fail on one box. On that box we are unable to not reproduce this error.
Original comment by warchild...@gmail.com
on 21 Aug 2012 at 9:39
I have found a way to reproduce this for sure. Run a mvn install
cobertura:cobertura deploy.
Original comment by warchild...@gmail.com
on 21 Aug 2012 at 9:45
Unfortunately, I am still unable to reproduce the originally reported issue.
Please attach a sample project where I can see it.
As for the issue I mentioned in comment #5, it can be solved by specifying
absolute path to web.xml:
<webXml>${basedir}/src/main/webapp/WEB-INF/web.xml</webXml>
instead of
<webXml>src/main/webapp/WEB-INF/web.xml</webXml>
Original comment by v.kary...@gmail.com
on 22 Aug 2012 at 5:40
Is that because maven version?
Original comment by K...@navidao.com
on 6 Sep 2012 at 3:57
> Is that because maven version?
The plugin requires maven version 3.0.3 or higher.
I have to repeat: I am unable to reproduce this issue.
If you want the issue get fixed, please create a sample project and attach it.
Then I'll be able to continue with the investigation.
Original comment by v.kary...@gmail.com
on 6 Sep 2012 at 4:11
I have the same issue too. I have made a little investigation. I added simple
configuration from Usage page. Eclipse says me: "Plugin execution is not
covered by lifecycle configuration". I am using maven-source-plugin,
maven-clean-plugin, maven-jar-plugin. I tried to add "phase". For example:
...
<executions>
<execution>
<phase>install</phase>
<goals>
...
There are no errors if you use "install" phase. And error is appeared if you
use "compile" phase. The same happens if you use maven install on both cases.
Unfortunately, I can't still compile my project. But I hope this helps with
investigation to you. As I understand addjars-maven-plugin conflicts with
maven-source-plugin, maven-clean-plugin, maven-jar-plugin.
Let me know if you have questions for me. Thanks.
Original comment by a.podava...@gmail.com
on 2 Dec 2012 at 7:35
Also, as topic starter said we have
..
Caused by: java.lang.UnsupportedOperationException
at java.util.Collections$UnmodifiableCollection.add(Collections.java:1075)
at com.googlecode.addjars.mojo.AddJarsMojo.executeInt(AddJarsMojo.java:103)
at com.googlecode.addjars.mojo.AddJarsMojo.execute(AddJarsMojo.java:77)
... 25 more
Take a look at patch. May be it solves the problem.
Patch description: Do not add to unmodifiable collection. Create new one
instead.
Original comment by a.podava...@gmail.com
on 2 Dec 2012 at 9:28
Attachments:
[deleted comment]
a.podavalov: thank you for providing the patch.
Since it does not break anything (at least), I've applied the patch and
released a new version of the plugin (1.0.5). It will appear in Maven Central
in a couple of hours.
I don't think however the patch will fix all of the issues mentioned above. The
plugin is a hack in nature, and the hack often conflicts with hacks used in
other plugins :)
The safest way to use the plugin is to move its declaration to a separate pom
(of packaging 'pom'). Just like it is suggested in the section "IDE,
addjars-maven-plugin, and autocompletion" of
http://code.google.com/p/addjars-maven-plugin/wiki/UsagePage .
Original comment by v.kary...@gmail.com
on 9 Dec 2012 at 9:42
Also I have to admit that I am not going to spent much efforts to support this
plugin. I've moved my project to Gradle, where you can easily add local jars to
your project classpath.
Patches from the community are welcome however: I will review and release them.
Original comment by v.kary...@gmail.com
on 9 Dec 2012 at 9:49
Have you used any specific M2E connector with you POM configuration for it to
work? I have the same problem as those mentioned before, and your sample
project does the same thing too.
"Plugin execution not covered by lifecycle configuration"
Original comment by Sharkep...@gmail.com
on 7 Jan 2013 at 10:43
Original issue reported on code.google.com by
henning....@codecentric.de
on 16 Jul 2012 at 8:44