2009/5/8 David Leangen <op...@leangen.net> > When I run mvn clean install, the pax:eclipse goal gets executed. However, >> files are not copied to my target/pax-eclipse folder. >> >> the only files in "target/pax-eclipse" will be embedded/inlined files >> _not_ found in "target/classes" >> >> If I later run mvn pax:clean pax:eclipse, then the files get embedded. >> >> yes, because clean removes files from "target/classes" and because you >> don't do a compile >> or install then they aren't replaced - therefore "target/pax-eclipse" will >> contain the difference, >> ie. the entire contents of the bundle >> >> How can I ensure that the files get embedded during a regular build (i.e. >> so I don't have to build twice). >> >> one thing you forgot to mention: _why_ do you need these files in >> "target/pax-eclipse" ? >> >> this folder is only needed to keep PDE happy, you shouldn't need every >> single file in it >> > > Right. > > The reason is that this bundle exports packages from an inlined bundle. If > the target/pax-eclipse directory is not included, then Eclipse gives me an > error like: > > "Package 'stuart.is.so.smart' does not exist in this plug-in > > The error is there because the manifest says that the bundle exports this > package, but (I suppose) PDE doesn't find it. >
if you build the bundle (mvn install) you should have two folders on the classpath: target/classes - the files generated during compilation target/pax-eclipse - additional files embedded into the bundle for some weird reason you have files that don't appear in either of these folders (unless you do a clean without rebuilding which would empty your "target/classes", etc. but then _exactly_ the same code is used to populate pax-eclipse, and the files now magically appear - hence my suspicion that something else is going on, especially as this is exactly the same use-case as Wouter, and 1.4 was working for him) BTW, you do refresh your Eclipse project (F5) after doing an "mvn clean install" ? I can't debug this remotely so you'll need to create a testcase and log the issue in JIRA Cheers, > > =David > -- Cheers, Stuart
_______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general