Accesing var outside plugin

2011-05-30 Thread Pazmiño Mazón , Iván Andrés
Hi everyone, I'm writing a plug-in which is called from an archetype's generate goal. mvn archetype:generate -Dgoals=test:echo I need this plug-in to access the "project-type" variable which is defined for the archetype. archetype-metadata.xml How to achieve

Re: Reusing existing Mojo in a custom Mojo

2011-05-30 Thread Kalpak Gadre
Thanks Stephen and Leonard. due to how maven plugin plugin works, you cannot have a dependency on a maven plugin and extend the mojo's in that plugin. when we switch from javadoc processing to annotation processing, and with the classloader from maven 3 it will be possible, but until then y

Re: connection refused using nexus

2011-05-30 Thread Tommy Chheng
Disregard this message, I found the problem. I accidentally used https when I only setup http on the server. On Mon, May 30, 2011 at 10:54 AM, Tommy Chheng wrote: > I just setup a Nexus maven repo to host thirdparty jar files. I'm able to > deploy to the server using mvn deploy:deploy-file but

connection refused using nexus

2011-05-30 Thread Tommy Chheng
I just setup a Nexus maven repo to host thirdparty jar files. I'm able to deploy to the server using mvn deploy:deploy-file but I get a connection refused when I try to mvn compile my project. Downloading: https:///nexus/content/repositories/thirdparty/org/apache/httpcomponents/httpclient/mave

Re: Issue running mvn deploy using Maven 3.0.3

2011-05-30 Thread Anders Hammar
I don't have the answer for you, but I recall seeing a similar question before. I think it was on the Nexus users list. You can find info about the archive at [1]. /Anders [1] http://nexus.sonatype.org/project-information.html On Mon, May 30, 2011 at 17:35, Henika Tekwani wrote: > Any updates

Re: Reusing existing Mojo in a custom Mojo

2011-05-30 Thread Stephen Connolly
due to how maven plugin plugin works, you cannot have a dependency on a maven plugin and extend the mojo's in that plugin. when we switch from javadoc processing to annotation processing, and with the classloader from maven 3 it will be possible, but until then you need to copy the mojo into your

Re: Reusing existing Mojo in a custom Mojo

2011-05-30 Thread Leonard Ehrenfried
I'm by no means an accomplished Mojo author but I have learned the most by simply copying an existing Mojo and chipping away the existing code until I understood what each part did and how. In your case I would simply take the working StatusMojo.java (?) as a whole and throw out the code you don't

RE: Issue running mvn deploy using Maven 3.0.3

2011-05-30 Thread Henika Tekwani
Any updates on this? From: Henika Tekwani Sent: Monday, May 30, 2011 10:26 AM To: Maven Users List Cc: Henika Tekwani Subject: Issue running mvn deploy using Maven 3.0.3 Hi, I have a maven project that generates a 363 MB jar artifact. I am getting following error while deploying the artifact to

Reusing existing Mojo in a custom Mojo

2011-05-30 Thread Kalpak Gadre
Hi, I am developing a Mojo for manipulation of JIRA while making a release. This mojo is required to manipulate issues and generate release notes. The process is very specific to the client. As part of the process, I need to commit the newly generated release notes to SCM. I also need to ensu

Re: Maven-Doxia-Plugin: Generating LaTeX Code from APT

2011-05-30 Thread Lukas Theussl
Karl Heinz Marbaise wrote: Hi Lukas, Yes, sorry. No need to apologize for that... That's my good education... ;) > The maven-doxia-plugin (and underlying book code) is really just alpha quality IMO... That means it can be done some work on it... We were thinking at one point to dep

Re: Maven-Doxia-Plugin: Generating LaTeX Code from APT

2011-05-30 Thread Karl Heinz Marbaise
Hi Lukas, Yes, sorry. No need to apologize for that... > The maven-doxia-plugin (and underlying book code) is really just alpha quality IMO... That means it can be done some work on it... I was impressed of the quality of the resulting LaTeX code and the resulting PDF, cause it looks much

Maven with IDEA IntelliJ

2011-05-30 Thread wasi_shez
Hi Guys! I have test the following link practically on my machine and found no problem:- http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html Now i want to generate a WAR file using IDEA IntelliJ 8.1 Let me REPHRASE the steps for above link:- 1. I have configure

Re: Maven-Doxia-Plugin: Generating LaTeX Code from APT

2011-05-30 Thread Lukas Theussl
Yes, sorry. The maven-doxia-plugin (and underlying book code) is really just alpha quality IMO... -Lukas Karl Heinz Marbaise wrote: Hi Lukas, The latex sink has a protected constructor that takes a 'String preamble' parameter, the default is [1], so you should be able to adjust that. Firs

Re: Trouble with attached Tests

2011-05-30 Thread Christopher Meyer
Thanks for your quick responses! I tried Karl Heinz solution and it worked for me. Actually i extend an abstract class containing all my tests which are packed as a jar. The jar is added as dependency to my pom.xml. This works perfect! Thanks again for your help guys! Regards from Bochum, German

Re: Maven-Doxia-Plugin: Generating LaTeX Code from APT

2011-05-30 Thread Karl Heinz Marbaise
Hi Lukas, The latex sink has a protected constructor that takes a 'String preamble' parameter, the default is [1], so you should be able to adjust that. First thanks for this answer but that means there is no chance to change that via the maven-doxia-plugin Kind regards Karl Heinz Marbais