While developing two child projects at the same time I would like to just 'mvn package' at the parent level.
- mvn package parent - code - mvn package parent - code That does not seem to be the case so I end up doing this: - mvn install child 1 - 1.0-snapshot - mvn package child 2 - code - mvn install child 1 - 1.0-snapshot - mvn package 2 - code During this process child 1 is not ready to be 'installed', it is only installed because child 2 depends on it. I agree the applet needs to be installed in the local repo, but only once you hit a milestone release, and not just because child 2 depends on it during code tests. -Steve More On 5/10/07, Napoleon Esmundo Ramirez <[EMAIL PROTECTED]> wrote:
I don't see any reason why you wouldn't want the applet installed in the local repository. Anyway, I think you could still do `mvn package` on archiva parent directory as long as the archiva-applet is found on any other remote repository. On 5/10/07, Stephen More <[EMAIL PROTECTED]> wrote: > > I have tried this and see 1 downside, artifactId archiva-applet needs > to live in the loacl repository. ( with mvn install ). If not it > complains about a missing artifact. > > If archiva-applet was not installed in the local repository, is there > anyway to do mvn package on archiva-parent ? > > > -Thanks > Steve More > > > On 4/17/07, franz see <[EMAIL PROTECTED]> wrote: > > What archiva does with its applet is that in archiva-webapp, it declares > > archiva-applet as a dependency ( with scope set to provided ). Then it > uses > > dependency-maven-plugin ( though you can now use maven-dependency-plugin > > since i think it's much more updated now ) to copy the applet to > wherever it > > wants it to be ( see [1] ). > > > > Cheers, > > Franz > > > > [1] > > > http://svn.apache.org/repos/asf/maven/archiva/trunk/archiva-webapp/pom.xml > > > > > > dennisl-2 wrote: > > > > > > That's how I would do it, but I'd make the applet jar a dependency in > > > the war project, because it is a dependency. But you don't want the > > > applet jar in the WEB-INF/lib directory of your webapp, because then > it > > > can't be reached directly by the user's browser. Instead you want it > to > > > be copied to the directory above WEB-INF. You could probably use the > > > antrun-plugin to copy the applet jar from WEB-INF/lib to it's correct > > > place. > > > > > > Henri Tremblay wrote: > > >> Hello everyone, > > >> > > >> I'm trying to do something that I think is quite common but can't > find an > > >> easy way to do it. Here's how it goes: > > >> > > >> I have a war that basically contains nothing except a jar which > contains > > >> an > > >> applet. The applet jar is for performance reason an ueber jar. > > >> > > >> How would you do something like this? > > >> > > >> My current solution is to have a jar project that creates and ueber > jar > > >> and > > >> then a war project that includes the ueber jar by referencing it > > >> directly as > > >> a ressource (since I don't think it can be a dependency). > > >> > > >> Thanks a lot, > > >> Henri > > >> > > > > > > > > > -- > > > Dennis Lundberg > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > -- > > View this message in context: > http://www.nabble.com/Applet-with-maven-2-tf3586961s177.html#a10032928 > > Sent from the Maven - Users mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]