Building leJOS with maven

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: roger, 99jonathan, imaqine

Building leJOS with maven

Postby hatemybrain » Mon Aug 13, 2012 12:09 pm

Hi Lejos Users and Developers,

I'm trying to build some lejos packages using maven, but maven cannot find definition for lejos-parent artifact.
According to existing pom.xml files, this artifact should be defined in leJOS_NXJ_0.9.1beta-3_source.tar.gz/parent/pom.xml, but there is no such file.

Here is maven's output:
Code: Select all
me@localhost:~/Downloads/leJOS_NXJ_0.9.1beta-3_source/classes$ mvn compile
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project lejos:classes:0.9-SNAPSHOT (/home/alan/Downloads/leJOS_NXJ_0.9.1beta-3_source/classes/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not find artifact lejos:lejos-parent:pom:0.9-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 5, column 13 -> [Help 2]


Am I doing something wrong or maven isn't fully supported yet?
hatemybrain
New User
 
Posts: 1
Joined: Mon Aug 13, 2012 11:43 am

Re: Building leJOS with maven

Postby skoehler » Mon Aug 13, 2012 12:45 pm

hatemybrain wrote:Am I doing something wrong or maven isn't fully supported yet?


The build files for maven are pretty much experimental. Much more work is needed to fully support maven.
The parent project is located in trunk/parent in SVN.
skoehler
leJOS Team Member
 
Posts: 1110
Joined: Thu Oct 30, 2008 4:54 pm

Re: Building leJOS with maven

Postby mpscholz » Mon Oct 01, 2012 8:33 pm

skoehler wrote:
hatemybrain wrote:Am I doing something wrong or maven isn't fully supported yet?

The build files for maven are pretty much experimental. Much more work is needed to fully support maven.


Is there someone working on it presently?
leJOS Developer
mpscholz
New User
 
Posts: 15
Joined: Fri Jan 18, 2008 1:37 pm
Location: Germany

Re: Building leJOS with maven

Postby skoehler » Mon Oct 01, 2012 11:36 pm

mpscholz wrote:
skoehler wrote:
hatemybrain wrote:Am I doing something wrong or maven isn't fully supported yet?

The build files for maven are pretty much experimental. Much more work is needed to fully support maven.


Is there someone working on it presently?

I'm not sure. I guess help is appreciated. What needs to be done?
Well, we basically need to write a maven plugin for compiling leJOS NXT and PC projects.
skoehler
leJOS Team Member
 
Posts: 1110
Joined: Thu Oct 30, 2008 4:54 pm

Re: Building leJOS with maven

Postby mpscholz » Tue Oct 02, 2012 8:03 am

skoehler wrote:Well, we basically need to write a maven plugin for compiling leJOS NXT and PC projects.


Couldn't we just tell maven to use the leJOS SDK by configuring the maven-compiler-plugin appropriately in some common parent pom?
leJOS Developer
mpscholz
New User
 
Posts: 15
Joined: Fri Jan 18, 2008 1:37 pm
Location: Germany

Re: Building leJOS with maven

Postby skoehler » Tue Oct 02, 2012 11:27 am

mpscholz wrote:
skoehler wrote:Well, we basically need to write a maven plugin for compiling leJOS NXT and PC projects.


Couldn't we just tell maven to use the leJOS SDK by configuring the maven-compiler-plugin appropriately in some common parent pom?


Oh yeah, we can do that, but it looks crazy:
http://lejos.svn.sourceforge.net/viewvc ... iew=markup

Did I mention we also need a maven plugin for linking leJOS NXT programs?

Also, certain circular dependencies need to be resolved: pctools.jar is needed for linking - however, pctools.jar must also include certain *.nxj files, which of course are linked.
skoehler
leJOS Team Member
 
Posts: 1110
Joined: Thu Oct 30, 2008 4:54 pm

Re: Building leJOS with maven

Postby mpscholz » Tue Oct 02, 2012 11:46 am

skoehler wrote:Also, certain circular dependencies need to be resolved: pctools.jar is needed for linking - however, pctools.jar must also include certain *.nxj files, which of course are linked.


I see.
I might be wrong, but in most cases large difficulties in setting up a state-of-the art build system (and in particular circular dependencies) hint to the fact that the structuring of the artifacts in the system is not optimal.

So I wonder whether the first logical step towards a maintainable and clear build infrastructure won't be to tidy up a bit (?).
Just in case, though, there's enough pain with the current state to justify that effort and risk.

Yet, I admit that when checking out the complete lejos trunk in the repository yesterday, I felt somewhat confused by all the stuff that's in there...
It can be hard to find things there, to recognize the dependencies and to know which parts are still maintained.
leJOS Developer
mpscholz
New User
 
Posts: 15
Joined: Fri Jan 18, 2008 1:37 pm
Location: Germany

Re: Building leJOS with maven

Postby tysonlee » Fri Oct 12, 2012 5:53 am

Thanks for your prompt replies! I will try new+new and old+old and use whichever works best.
tyson
tysonlee
New User
 
Posts: 1
Joined: Fri Oct 12, 2012 5:52 am


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff