The rub is, I ONLY want to execute this from the build server (to do the syncing with a password in the properties file as mentioned in the first email of this type).
I don't want anyone else to run this (they can if they'd like). So I'm a bit further now, so I've installed a snapshot version to our internal repository and tried running it by: mvn up.anttools:sync-plugin:sync -D sync.dir=up-svcs/lty/proj/LTY-P000039 But I'm getting: [INFO] Internal error in the plugin manager executing goal 'up.anttools:sync-plugin:1.0-SNAPSHOT:sync': Unable to find the mojo 'up.anttools:sync-plugin:1.0-SNAPSHOT:sync' in the plugin 'up.anttools:sync-plugin' Component descriptor cannot be found in the component repository: org.codehaus.plexus.component.factory.ComponentFactoryant-mojo. Why is it looking for a mojo with that massive name? -----Original Message----- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Monday, September 11, 2006 2:57 PM To: Maven Users List Subject: Re: antrun plugin can't find proper jars I would just make another submodule, get it first in my list of modules (make the others depend on it), and put the plugin execution in that pom.xml. There is probably a better way to do it, but this would work, so I'd probably just do it, and worry about finding a better way later when I had time (which would probably never happen). Wayne On 9/11/06, EJ Ciramella <[EMAIL PROTECTED]> wrote: > So by adding a plugin to a parent pom (one with modules defined) - maven > will always run that plugin for all the submodules? > > What if I only want it to run once prior to anything else happening? > > -----Original Message----- > From: EJ Ciramella [mailto:[EMAIL PROTECTED] > Sent: Monday, September 11, 2006 10:30 AM > To: Maven Users List > Subject: RE: antrun plugin can't find proper jars > > Ok - that works, I added: > > <plugin> > > <artifactId>maven-antrun-plugin</artifactId> > <executions> > <execution> > <id>p4sync</id> > <phase>validate</phase> > <configuration> > <tasks> > <ant > antfile="test.xml" target="build"> > </ant> > </tasks> > </configuration> > <goals> > <goal>run</goal> > </goals> > </execution> > </executions> > <dependencies> > <dependency> > <groupId>ant</groupId> > <artifactId>ant-apache-oro</artifactId> > <version>1.6.5</version> > </dependency> > <dependency> > <groupId>oro</groupId> > <artifactId>oro</artifactId> > <version>2.0.8</version> > </dependency> > </dependencies> > </plugin> > > To my parent pom, but now I see it run this sync (and fails) with every > subproject as it attempts to validate the pom.xmls. > > How could I simply add to the parent pom a target (in ant speak) to sync > the entire project? We need to recycle passwords stored in people's > home directories inside property files so using maven's build in p4 > syncing stuff isn't going to work for us. > > -----Original Message----- > From: Wayne Fay [mailto:[EMAIL PROTECTED] > Sent: Friday, September 08, 2006 5:31 PM > To: Maven Users List > Subject: Re: antrun plugin can't find proper jars > > http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html > "Using optional ant tasks" > > Basically you add the optional jars as dependencies to the > maven-antrun-plugin itself in the build-plugins-plugin node. > > Wayne > > On 9/8/06, EJ Ciramella <[EMAIL PROTECTED]> wrote: > > Here's a better question - is anyone trying to use any of the optional > > tasks in ant via maven? > > > > -----Original Message----- > > From: EJ Ciramella [mailto:[EMAIL PROTECTED] > > Sent: Friday, September 08, 2006 1:50 PM > > To: [email protected] > > Subject: antrun plugin can't find proper jars > > > > I'm running into a bit of a problem. Since we require passwords to > log > > into perforce and for security reasons, I'm prevented from having some > > sort of shell log the build user in, I'm attempting to shell out to > ant > > so maven can sync the project directory. > > > > So if I do "ant -f test.xml" things work just fine, but when I execute > > maven, I get this: > > > > Embedded error: The following error occurred while executing this > line: > > E:\work\up-svcs\lty\proj\LTY-P000039\test.xml:4: Could not create task > > or type of type: p4sync. > > > > Ant could not find the task or a class this task relies upon. > > > > > > Any suggestions? > > > > --------------------------------------------------------------------- > > 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] > > > --------------------------------------------------------------------- > 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]
