Hello,
Thanks for your help :)
I have a pretty simple pom.xml, that follows what is presented on the Maven PDE
Plugin page[1]. Here is the PDE part:
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>pde-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<eclipseInstall>${path.to.eclipse}</eclipseInstall>
</configuration>
</plugin>
</plugins>
</build>
If I run mvn clean compile, I get the following errors:
[javac] 2. ERROR in
C:\dev\EclipseRCP\LogbackRCP\plugins\LogbackPlugin\src\main\java\ch\qos\logback\eclipse\model\LoggingEventManager.java
(at line 21)
[javac] private Collection<LoggingEvent> loggingEventCollection = new
ArrayList<LoggingEvent>();
[javac] ^^^^^^^^^^^^
[javac] Syntax error, parameterized types are only available if source
level is 5.0
I first tried to add a maven-compile-plugin to specify that I want to use the JDK
1.5, but the build didn't work either.
After some research, I found that the generated build.xml has these elements:
<property name="javacSource" value="1.3"/>
<property name="javacTarget" value="1.2"/>
Do you have a way to change these values? Since the build.xml is generated, I guess
that it must be an option somewhere...
Cheers,
Sébastien
[1]http://mojo.codehaus.org/pde-maven-plugin/examples/simple_plugin.html
Magali Hélène wrote:
I used the PDE Plugin with JDK 1.5, and it was ok...
Which errors have you and how do you use the plugin ?
Magali Hélène
Sebastien Pennec a écrit :
Hello,
I'm currently using the PDE plugin to build, guess what, an Eclipse
plugin.
It returns errors when I use JDK 1.5 generics. Is it normal behavior?
I thought that my code could be written using JDK 1.5... Should I only
write JDK 1.4-compliant code?
Thanks for any hint :)
Sébastien
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
--
Sébastien Pennec
[EMAIL PROTECTED]
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch/
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email