Go to Post words of advice: never tease your dad about his receding hair line. it will come back to haunt you. trust me. - Brandon Martus [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-08-2013, 13:00
Fifthparallel Fifthparallel is offline
Registered User
AKA: Sam Chen
FRC #1410
 
Join Date: Dec 2012
Rookie Year: 2011
Location: Denver, CO
Posts: 65
Fifthparallel is an unknown quantity at this point
Integrate Maven and FRC Java projects?

Hiya!

I'd like to use Maven for dependency tracking for a couple of 3rd party libraries.

Is it possible to use Maven dependency tracking alongside an FRC project?

Thanks!
__________________
sudo chmod u+x helloworld.sh
gotta start somewhere.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-08-2013, 16:52
alexhenning alexhenning is offline
WPILib Developer
FRC #0348
 
Join Date: Apr 2010
Rookie Year: 2003
Location: MA
Posts: 49
alexhenning will become famous soon enough
Re: Integrate Maven and FRC Java projects?

FRC Java development currently doesn't provide any special support for Maven. If you are only using it to pull in dependencies, there is no reason you can't use it to pull the jars in from target/lib/*.jar to the classpath much like how the networktables jar is. The entire build process is ant scripts, you may need to dig into the sunspotfrcsdk directory to see how it works.

However, it is worth noting that java on the crio is a bit more interesting than Java SE. You need to target 1.2 (I think 1.3 works, but I can't test it right now and sunspotfrcsdk/ant/compile.xml targets 1.2), which will rule out many newer libraries and you have to make sure your libraries go through the preverification process and end up in the suite file that gets deployed to the crio.

Out of curiousity, what libraries are trying to use and why do you want to do maven?
Reply With Quote
  #3   Spotlight this post!  
Unread 12-08-2013, 11:31
Fifthparallel Fifthparallel is offline
Registered User
AKA: Sam Chen
FRC #1410
 
Join Date: Dec 2012
Rookie Year: 2011
Location: Denver, CO
Posts: 65
Fifthparallel is an unknown quantity at this point
Re: Integrate Maven and FRC Java projects?

We just had some third party libraries we wanted to utilize for a debugging project, but were distributed via .pom files and relied on Maven to resolve their own dependencies.

However, because the FRC Java projects targets J2ME, we're unable to (easily) use some of the java.net utilities that we would need anyway. We've moved the project to C++ and are now using a framework we like.

Thanks for responding though!
__________________
sudo chmod u+x helloworld.sh
gotta start somewhere.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-08-2013, 11:35
Jon Stratis's Avatar
Jon Stratis Jon Stratis is online now
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,784
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Integrate Maven and FRC Java projects?

In case anyone else comes across this thread looking for something similar, you can get around this issue and avoid integrating Maven with an FRC project. Create a maven project and set up the POM correctly to pull in the dependencies you want. Once those are in (including all of their dependencies), just save off all of the JAR's and import them into your FRC project. Yes, it's a bit of a pain, and yes, it defeats the whole point of having a dependency management solution like Maven, but it gets you what you want in the end!
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:36.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi