NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Barry1337
Joined: 11 Mar 2010 Posts: 10
|
Posted: Thu Mar 11, 2010 3:43 pm Post subject: Maven question |
|
|
Hello,
For college I'm working on a lejos project (firmware replacement for the lego NXT robot) in netbeans. I'm using the lejos plugin so that I can upload to the robbot's brick. Now that problem is that I can only make a lejos project, but cannot convert it to Maven. So is there a way that I can have 2 projects (1 maven and 1 lejos) with synchronous source code? So that when I change something in the lejos project, it automatically gets updated in the Maven project?
Thanks in advance. |
|
| Back to top |
|
 |
Fabrizio Giudici Posted via mailing list.
|
Posted: Fri Mar 12, 2010 9:41 am Post subject: Maven question |
|
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 3/11/10 16:44 , Barry1337 wrote:
| Quote: | Hello,
For college I'm working on a lejos project (firmware replacement
for the lego NXT robot) in netbeans. I'm using the lejos plugin so
that I can upload to the robbot's brick. Now that problem is that I
can only make a lejos project, but cannot convert it to Maven. So
is there a way that I can have 2 projects (1 maven and 1 lejos)
with synchronous source code? So that when I change something in
the lejos project, it automatically gets updated in the Maven
project?
| I think that just a few of us here know how a lejos project is done -
I mean, which build system is based on. I suppose is it Ant? In this
case, yes, it is generically possible to have a project whose same
source tree is shared by an Ant and a Maven. You need only to
reconcile the different source directory layout (src vs src/main/java,
etc..). This can be done either with Ant or Maven, even though
generically speaking it's always advisable to let Maven work in the
way it expects, and change things in Ant.
Of course whether this will make your life easier or harder depends on
many details.
- --
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici - www.tidalwave.it/people
address-removed
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkuaDAkACgkQeDweFqgUGxeRxACgofo/ElypKV7oJqGble9qLxrV
oCUAoIaAdgv9HHkiu0Ss67qQOWQMnmPS
=BjXV
-----END PGP SIGNATURE----- |
|
| Back to top |
|
 |
Barry1337
Joined: 11 Mar 2010 Posts: 10
|
Posted: Fri Mar 12, 2010 12:36 pm Post subject: |
|
|
Yes, leJOS works with ant.
How would you reconcile the different source directory layout in practice? (this is the first time I work with ant/Maven)
So I've got a leJOS ant project and underneath that a Maven project. What next?
Thanks in advance. |
|
| Back to top |
|
 |
Barry1337
Joined: 11 Mar 2010 Posts: 10
|
Posted: Sat Mar 13, 2010 11:24 am Post subject: |
|
|
| Bump, anyone? |
|
| Back to top |
|
 |
Fabrizio Giudici Posted via mailing list.
|
Posted: Sat Mar 13, 2010 11:22 pm Post subject: Maven question |
|
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 3/12/10 13:36 , Barry1337 wrote:
| Quote: | Yes, leJOS works with ant. How would you reconcile the different
source directory layout in practice? (this is the first time I work
with ant/Maven) So I've got a leJOS ant project and underneath that
a Maven project. What next?
| You should prepare some script that moves the files around; in any
reasonabily written Ant script there are are properties that refer to
the directories (such as src.dir). For instance, in Ant scripts
generated by NetBeans, these properties are in
nbproject/project.properties. You _could_ run in some bug and need
some specific tweak, but you can't tell until you try it. During a
transition period in which I had some projects in "dual mode" with Ant
and Maven, I had to do some serious patching to the Ant scripts, but
they were NetBeans Platform projects. Two small JSE projects worked fine.
- --
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici - www.tidalwave.it/people
address-removed
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkucHdkACgkQeDweFqgUGxfTnQCgp32h5D+F+C6TRekwU+88e722
pSoAoKP5Of55sr+lQxcmIUWtvoRGpof1
=K4M4
-----END PGP SIGNATURE----- |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|