This is indeed an interesting view. I'm still thinking the Ant way I guess... I will just have to find how to pull the correct artifacts automatically in Felix... I guess it is a known problem...
Le 27 août 2010 à 12:33, Anders Hammar a écrit : > My first comment when people ask me about copying their build output around > is: > Why don't you just fetch it from the repo? > > The (Maven) repository is the hub here. Your project should deploy the files > and where ever you need those artifacts, you then pull it from the repo. > There are today numerous ways of pulling artifacts from a repo. Here's just > a few: > * Use Maven > * Use the Ant maven tasks > * Use REST calls (if you use Nexus as the repo manager) > * Use Aether > > /Anders > > 2010/8/27 Thiébault Benoît <[email protected]> > >> I tried wagon : >> >> >> <plugin> >> <groupId>org.codehaus.mojo</groupId> >> <artifactId>wagon-maven-plugin</artifactId> >> <version>1.0-beta-3</version> >> <executions> >> <execution> >> <id>copy-jar-to-felix</id> >> <phase>package</phase> >> <goals> >> <goal>copy</goal> >> </goals> >> <configuration> >> >> <source>file://target/assembly-module-2.0-SNAPSHOT-assembly</source> >> >> <includes>*</includes> >> <target>.</target> >> </configuration> >> </execution> >> </executions> >> </plugin> >> >> Got a "No such file or directory" exception without any precision (even >> with -e option) when executing. >> Are the source and target path relative ? to the project home ? the target >> directory ? >> >> Le 27 août 2010 à 10:35, Antonio Petrelli a écrit : >> >>> 2010/8/27 Thiébault Benoît <[email protected]>: >>>> But now, I have all my jar files in the >> $PROJECT_HOME/Modules/assembly-module/target/assembly-module-1.0-SNAPSHOT-assembly/ >> directory... which is not what I expect. How can I move them to my Felix >> directory (which is not in the $PROJECT_HOME directory) ? Am I using the >> right plugin or is it better to use the deploy plugin in this case ? >>> >>> I think that, to move files around, Ant (doh!) or Wagon plugin are the >> best. >>> I suggest you to use Wagon since the destination might be remote. >>> >>> Antonio >>> >>> --------------------------------------------------------------------- >>> 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]
