Error when mvn -P tomcat,min

2008-08-31 Thread Fancing
When i built the Jetspeed Portal as the tutorial: http://portals.apache.org/tutorials/jetspeed-2/01/build-it.html, i got the following errors: $ mvn -P tomcat,min [ERROR] BUILD ERROR [INFO] --- [INFO] Error executing any tasks Embedded

Re: How do I add generated resources to target jar?

2008-08-31 Thread Jan van Mansum
Thanks Dan! That did the trick. I included the following in my pom and it works beautifully: ... build resources resource directorytarget/generated-sources/antlr/directory includes include**/*.tokens/include

Re: Error when mvn -P tomcat,min

2008-08-31 Thread Paul Benedict
I don't know if it makes a difference to your problem, but there should be no space between -P and the profile names. On Sun, Aug 31, 2008 at 6:59 AM, Fancing [EMAIL PROTECTED] wrote: When i built the Jetspeed Portal as the tutorial:

Re: Error when mvn -P tomcat,min

2008-08-31 Thread Fancing
It works. Thanks a lot! :) But i think this document should be updated: http://portals.apache.org/tutorials/jetspeed-2/01/build-it.html There is ONE space between -P and the profile name!!! 2008/8/31 Paul Benedict [EMAIL PROTECTED]: I don't know if it makes a difference to your problem, but

Re: Error when mvn -P tomcat,min

2008-08-31 Thread Wayne Fay
You'll need to take this up with the Jetspeed dev team. Obviously the Maven guys have no control over the Jetspeed documentation. Wayne On 8/31/08, Fancing [EMAIL PROTECTED] wrote: It works. Thanks a lot! :) But i think this document should be updated:

Override localRepository at plugin execution using another local repository plexus component implementation

2008-08-31 Thread Dan Tran
Currently, a typical localRepository configuration is declared like this in the mojo. /** * Used to look up Artifacts in the remote repository. * * @parameter expression=${component.org.apache.maven.artifact.factory.ArtifactFactory} * @required * @readonly */

Re: Unable to override the value in pom's project properties in mojo

2008-08-31 Thread Dan Tran
FYI, my problem has been solved in 2.1-RCx ( ie 2.0.10-RC) -D On Fri, Jul 25, 2008 at 9:12 PM, Dan Tran [EMAIL PROTECTED] wrote: I am writing a plugin to set the values of a given set of property key passing in by user. However if the user set the default values int pom.xml's properties, the

Re: Missing: org.jfrog.maven.annomojo:maven-plugin-anno:jar:1.2.4

2008-08-31 Thread Yoav Landman
Yes, we installed a newer version of Artifactory over the weekend. Should be alright now and your artifact is available at http://repo.jfrog.org/artifactory/plugins-releases-local/org/jfrog/maven/annomojo/maven-plugin-anno/1.2.4/maven-plugin-anno-1.2.4.jar Yoav matinh wrote: On Friday 29

Re: Override localRepository at plugin execution using another local repository plexus component implementation

2008-08-31 Thread Brett Porter
You're on the right track, but there's a few problems here. Firstly, I'm a bit confused as you have artifactFactory, but refer to local repository. This is important - if the plugin is using a factory to create a repository then you can replace the factory, but if it's using

Re: Override localRepository at plugin execution using another local repository plexus component implementation

2008-08-31 Thread Dan Tran
Oops, I pasted the wrong declaration, it should be /** * Location of the local repository. * * @parameter expression=${localRepository} * @readonly * @required */ protected org.apache.maven.artifact.repository.ArtifactRepository local; Looks like the

Re: Override localRepository at plugin execution using another local repository plexus component implementation

2008-08-31 Thread Wendy Smoak
On Sun, Aug 31, 2008 at 5:48 PM, Dan Tran [EMAIL PROTECTED] wrote: Is there a way to pass in my own localRepository instead of using the implicit settings.localRepository. This way, there is no need to enhance the plugin. On the off chance this is less complicated than it looks... does

Re: Override localRepository at plugin execution using another local repository plexus component implementation

2008-08-31 Thread Dan Tran
Hi Wendy, that would not work since it switch to a new local repo for the whole maven build lifecycle. What I want is just to temporary change it at a specific plugin's execution time. Thanks -D On Sun, Aug 31, 2008 at 6:12 PM, Wendy Smoak [EMAIL PROTECTED] wrote: On Sun, Aug 31, 2008 at 5:48

Re: Override localRepository at plugin execution using another local repository plexus component implementation

2008-08-31 Thread Dan Tran
On Sun, Aug 31, 2008 at 5:48 PM, Dan Tran [EMAIL PROTECTED] wrote: Oops, I pasted the wrong declaration, it should be /** * Location of the local repository. * * @parameter expression=${localRepository} * @readonly * @required */ protected

my maven plugin .IllegalStateException

2008-08-31 Thread cody zhang
The PluginDescriptor for the plugin Plugin [org.apache.maven.plugins:maven-checksnapshot-plugin] was not found. [INFO] [INFO] Trace java.lang.IllegalStateException: The PluginDescriptor for the plugin Plugin