Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Contributor
kurtzettel
Posts: 4
Registered: 11-29-2011
My Carrier: Verizon

Maven BlackBerry Plugin

Hello BlackBerry Developers,

 

I have recently created a Maven Plugin for building BlackBerry Java apps.  It is open sourced and licensed with the Apache License.  Here is the Maven plugin page:

 

http://dev.goodformobile.com/maven-mobile-plugin/

 

Look at the usage page before you ask any questions.  The latest SNAPSHOT is built here:

 

http://dev.goodformobile.com/bamboo/browse/MMP-SI

 

and the plugin itself can be downloaded from the Nexus repo:

 

http://dev.goodformobile.com/nexus/content/repositories/releases/

 

and the source is in SVN.

 

If you want to add anything or have questions you can submit a patch or send me a message.  So far I have only used it with 4.5 through 7.1 but it should work on older stuff.  Nothing is Eclipse specific so it should also work with the JDE.  I have only used it for a few libraries and apps in the RIM Eclipse Plugin.

 

Most importantly: It runs in Windows or Linux.  I haven't tested it on a Mac but I don't know of any reason it wouldn't work.

Please use plain text.
Developer
simon_hain
Posts: 10,780
Registered: 07-29-2008
My Carrier: O2 Germany

Re: Maven BlackBerry Plugin

Welcome to the support forums Kurt, i appreciate your efforts, thank you for posting this here, and even more for contributing the plugin to the developer community.

I have downloaded the sources a few days ago and successfully compiled the plugin (with skipTests=true, as i did not have the proguard jar the tests want as it seems).

I did not succeed to build the hello world sample though. I saw that it referenced an older version of the plugin and changed that, but to no avail. Can you check if the hello world in your SVN builds well on your side?

I am really looking forward to see the plugin working, we have a few complicated projects that i did not succeed to build with bb-ant yet, and this would save me quite some hours on our release process.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.

peter_strange wrote:
"This process should happen traumatically for you in both JDE and Eclipse."
Please use plain text.
New Contributor
kurtzettel
Posts: 4
Registered: 11-29-2011
My Carrier: Verizon

Re: Maven BlackBerry Plugin

I made the Hello World a few months back so it likely doesn't work.  You may want to look at some of the projects under the src/test/resources/projects directory.  This weekend I'll take a pass at getting some better examples out there.

Please use plain text.
New Contributor
kurtzettel
Posts: 4
Registered: 11-29-2011
My Carrier: Verizon

Re: Maven BlackBerry Plugin

I haven't looked at hello-world but I got the advanced fields example building.  Checkout svn://goodformobile.com/maven-plugin/trunk/blackberry-root and intstall the pom.  Then checkout svn://goodformobile.com/maven-plugin/trunk/test-advanced-fields.  If you use these settings in your settings.xml:

 

<profile>
<id>rim-6.0.0</id>
<properties>
<rim.platform>rim-6.0.0</rim.platform>
<rim.jar.version>6.0.0.30</rim.jar.version>
<jde.directory>C:\\tools\\eclipse\\eclipse-rim-3.0.2\\plugins\\net.rim.ejde.componentpack6.0.0_6.0.0.30\\components</jde.directory>
<preverify.path>C:\tools\j2me\WTK2.5.2\bin\preverify.exe</preverify.path>
<signature.path>C:\tools\rim\signatureTool</signature.path>
</properties>
</profile>

 

And run:

 

mvn clean install -P rim-6.0.0 -Drim.platform=rim-6.0.0

Please use plain text.
Developer
simon_hain
Posts: 10,780
Registered: 07-29-2008
My Carrier: O2 Germany

Re: Maven BlackBerry Plugin

Hello Kurt,
after playing around a bit with my local maven guru we succeeded in building the project.

I have to admit that my maven knowledge is very basic, i did not know that i had to checkout the blackberry-root project and run maven install with rim-jar.version as a parameter.
We also had to put the rim api jar to the correct repository path manually as we had it somewhere else.

Signing was slow, and we suspected some error in the build, but after a while it completed successfully.

Now to the real task, get my main project to compile with it. No time for it right now, but i'll report if we succeed, it's fairly complicated with many dependencies and 4 different preprocessing levels.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.

peter_strange wrote:
"This process should happen traumatically for you in both JDE and Eclipse."
Please use plain text.