I think I have made the modifications that would make your life simpler... you probably still would need to change a parent pom, but that would be the only change... fix will be in ship-maven-plugin 1.0-alpha-2
On 10 May 2012 09:39, Stephen Connolly <stephen.alan.conno...@gmail.com> wrote: > Hmmm. I wonder if I were to modify the ship-maven-plugin to allow ship > scripts to be pulled from the plugin's classpath rather than the > filesystem would that solve your issue. > > On 9 May 2012 21:49, Raketemensch <li...@libertylost.org> wrote: >> Well, that's why I'm asking for a best practice, I'm trying to avoid >> antishness as much as possible. >> >> However, I'm in charge of 400+ individual Maven projects, not counting all >> the modules. If an environment changes, I'm not eager to load up 400+ >> individual pom files to make the required change, then commit them all, etc. >> >> The profiles I'm looking to include look like this: >> >> <profile> >> <id>iwebdev</id> >> <build> >> <plugins> >> <plugin> >> >> <groupId>org.codehaus.mojo</groupId> >> >> <artifactId>wagon-maven-plugin</artifactId> >> <version>1.0-beta-3</version> >> <executions> >> <execution> >> >> <id>iwebdev05</id> >> >> <phase>deploy</phase> >> <goals> >> >> <goal>upload-single</goal> >> </goals> >> >> <configuration> >> >> <serverId>iwebdev05</serverId> >> >> <fromFile>${project.build.directory}/${final.name}.ear</fromFile> >> >> <url>scp://iwebdev05/data/web/webapps</url> >> >> </configuration> >> </execution> >> <execution> >> >> <id>iwebdev06</id> >> >> <phase>deploy</phase> >> <goals> >> >> <goal>upload-single</goal> >> </goals> >> >> <configuration> >> >> <serverId>iwebdev06</serverId> >> >> <fromFile>${project.build.directory}/${final.name}.ear</fromFile> >> >> <url>scp://iwebdev06/data/web/webapps</url> >> >> </configuration> >> </execution> >> >> </executions> >> </plugin> >> </plugins> >> </build> >> </profile> >> >> It's not something I can put into a settings.xml file, which I'd rather not >> do anyway, since it would be a very big potential build-breaker. But at the >> same time, we have 10+ individual environments, and I'd rather not pollute >> each project pom with pages of this stuff, nor would I like to (As mentioned >> earlier) update 400+ poms just because a server path changes. >> >> Is there a better way to handle this? >> >> (I appreciate any advice given) >> >> -- >> View this message in context: >> http://maven.40175.n5.nabble.com/Best-way-to-handle-a-universal-pom-tp5691958p5698492.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org