Maven is about doing things the right way, no hacks. Hacks impede understanding of a project by others (or yourself 6 months later) and are an antipattern
What happens when 6 months down the line you need a new feature and decide to upgrade the release plugin? You have relied on the hack, and the hack works no more... Far better to reorg the project processes so the hack is no longer required up front. You will have a simpler project and you can just concentrate on writing code.... Time spent hacking the build is time not coding On Friday, 20 July 2012, Kalle Korhonen wrote: > Thanks Werdex. Using the release plugin version 2.3.2 and it's still > exactly the same, only <goals>deploy -f Sources/pom.xml</goals> works > when the pom.xml is not in the root, regardless of pomFileName > setting. Stephen, isn't that exactly why you want to lock down the > plugin versions? I'll take a well-working hack any day over proper but > broken. > > Kalle > > > On Thu, Apr 21, 2011 at 12:23 AM, Stephen Connolly > <[email protected] <javascript:;>> wrote: > > fyi that is a hack and may not work in future versions when the bug is > fixed > > > > - Stephen > > > > --- > > Sent from my Android phone, so random spelling mistakes, random nonsense > > words and other nonsense are a direct result of using swype to type on > the > > screen > > On 20 Apr 2011 15:36, "werdex" <[email protected] <javascript:;>> > wrote: > >> Hi, > >> The following did trick for me: > >> <configuration> > >> <goals>deploy -f Sources/pom.xml</goals> > >> </configuration> > >> > >> -- > >> View this message in context: > > > http://maven-users.828.n2.nabble.com/Release-plugin-release-project-from-within-subdirectory-tp5057222p6290891.html > >> Sent from the maven users mailing list archive at Nabble.com. > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected]<javascript:;> > >> For additional commands, e-mail: [email protected]<javascript:;> > >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] <javascript:;> > For additional commands, e-mail: [email protected]<javascript:;> > >
