Building BBB with Maven

18 views
Skip to first unread message

Kevin Day

unread,
Feb 21, 2010, 4:39:22 AM2/21/10
to Better Beans Binding
I'm struggling a bit with building the disitribution jar using Maven in Eclipse.
 
I've got things building correctly - mvn package works fine (each sub-project has classes in it's respective target file).  What I'm not at all clear on is how to get the build to generate the single jar that is made available on the download site.
 
When I run assembly:assembly (which appears to be what I need), I get the following failure:
 

[INFO] Reactor Summary:

[INFO]

[INFO] BetterBeansBinding ................................ FAILURE [5.594s]

[INFO] BetterBeansBinding EL ............................. SKIPPED

[INFO] BetterBeansBinding Core ........................... SKIPPED

[INFO] BetterBeansBinding Examples ....................... SKIPPED

[INFO] BetterBeansBinding Bean Examples .................. SKIPPED

[INFO] BetterBeansBinding SwingBinding ................... SKIPPED

[INFO] BetterBeansBinding Swing Examples ................. SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 6.609s

[INFO] Finished at: Sun Feb 21 02:07:19 MST 2010

[INFO] Final Memory: 4M/8M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.felix:maven-bundle-plugin:1.4.0:manifest (bundle-manifest) on project betterbeansbinding-core: Execution bundle-manifest of goal org.apache.felix:maven-bundle-plugin:1.4.0:manifest failed: Problem opening JAR: C:\Documents and Settings\kevin\.m2\repository\it\tidalwave\betterbeansbinding\betterbeansbinding-el\1.3.1-SNAPSHOT\betterbeansbinding-el-1.3.1-SNAPSHOT.jar -> [Help 1]

[ERROR]

 
 
 
The file in the error message isn't there...
 
I then did a mvn install, and that did indeed generate the missing jar - and after I did that, assembly:assembly works.
 
But I'm quite confused on this:  Shouldn't assemble:assemble  pick up the dependency that install hasn't yet been performed?  Or am I totally mis-understanding how this should work?  I'm relatively new to Maven, and I'm reading as much as I can - but I'm obviously still missing a few things.
 
FYI - I do now have the build working - just trying to get my head around things and make sure that I won't get bit by my lack of understanding (I could just see the above resulting in future changes I make in the source not getting propogated into the final jar).
 
Thanks much,
 
- K
 
Reply all
Reply to author
Forward
0 new messages