Thanks Jeroen. That would be a great help. Although I am not hands on with svn and don't know how to checkout a particular version from it. But definitely would give it a shot. I am using eclipse 3.3 and maven 2.0.7
Thanks and regards, Amit On Wed, Mar 19, 2008 at 12:37 PM, Jeroen Lankheet <[EMAIL PROTECTED]> wrote: > > The last remark I made can safely be ignored. > I can now build both Eclipse plugins and RCP app with the 'hacked' mojo. > > Good luck to all Eclipse with maven builders. > Jeroen. > > > Jeroen Lankheet wrote: > > > > Hi Amit, > > > > The problem was detected reviously and filed under > > http://jira.codehaus.org/browse/MOJO-738 > > I solved the problem as follows: > > 1. I checked out version 6085 of the trunk of the pde-maven-plugin. I > used > > this specific version because I'm using Eclipse 3.3 with maven 2.0.8 on > > Windows. > > 2. I changed "zip" in EclipsePDEAttachMojo.java to "jar" > > 3. I changed the ".zip" in line 226 of EclipsePDEMojo.java to ".jar" and > > line 236 to "clean build.update.jar" > > 4. I built the 'damn' thing: mvn clean install > > 5. I ignored the build error because of test failures > > 6. I grabbed the class files and updated the pde-maven-plugin jar with > > these class files. > > When I build my Eclipse plugin I now have a jar archive installed in my > > project directory and in the local repository. > > > > This is not a proper way of working. To my opinion, building the type of > > archive should be configurable in the POM, and not fixed in the code as > it > > is now, but at least it's working for me now. > > > > One more thing. The PDE plugin may also be used to build an RCP > > application. The fix I mention here will not work for RCP, but the > > alpha-2-SNAPSHOT version will. > > > > Regards, > > Jeroen > > > > > > amit kumar-18 wrote: > >> > >> Hi Jeroren, > >> I spent almost a week on avoiding that src.zip in the plugin.zip. I did > >> not > >> find any help on that and ultimately I had to resolve to a workaround > >> which > >> is that I now build a feature(dummy) which includes the plug in I > >> actually > >> want to build. When I get the feature.zip, I find my plug in inside > that > >> without src.zip. > >> > >> I know its not something I should have resolved to, but that was the > only > >> thing that I could find to fix the src.zip problem. > >> > >> If you find something on how to correct the ant calls, please let me > know > >> as > >> well. > >> > >> > >> Thanks and regards, > >> Amit Kumar > >> > >> On Mon, Mar 17, 2008 at 6:40 PM, JeroenL <[EMAIL PROTECTED]> wrote: > >> > >>> > >>> Hi all, > >>> > >>> I'm trying to build an Eclipse plugin with maven. > >>> Problems are that 1) the archive is zipped and 2) a directory is added > >>> and > >>> 3) a sr.zip is added. > >>> After investigating the calls to Ant I discovered that maven calls the > >>> targets "clean build.jars zip.plugin". > >>> According my belief this should be "clean build.update.jar" > >>> Does anyone have an idea how to call the proper targets? > >>> > >>> Regards, > >>> Jeroen > >>> -- > >>> View this message in context: > >>> > http://www.nabble.com/pde-maven-plugin-calls-wrong-ant-target-tp16092576s177p16092576.html > >>> Sent from the Maven - Users mailing list archive at Nabble.com. > >>> > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] > >>> For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/pde-maven-plugin-calls-wrong-ant-target-tp16092576s177p16138073.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
