Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 44074 invoked from network); 4 Oct 2010 21:51:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Oct 2010 21:51:12 -0000 Received: (qmail 43458 invoked by uid 500); 4 Oct 2010 21:51:10 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 43333 invoked by uid 500); 4 Oct 2010 21:51:09 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 43325 invoked by uid 99); 4 Oct 2010 21:51:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Oct 2010 21:51:09 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rosenberg.leon@gmail.com designates 209.85.215.171 as permitted sender) Received: from [209.85.215.171] (HELO mail-ey0-f171.google.com) (209.85.215.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Oct 2010 21:51:03 +0000 Received: by eyg7 with SMTP id 7so4179296eyg.30 for ; Mon, 04 Oct 2010 14:50:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=7jyvtU0OcN+Mgz8PmYamA76wGO/qhvesE13ptV6Tlkc=; b=G4yxgSbdragDt5WGr7lfqWaBlaHQbvdwCcvcQVGrTYnH6KnbX1EIagxzf3ilCBN5hG iaHLbiyjkLnSae6pDdTBjTFoMAqVh4w4rjvSa8m2KV0GKB4iNXEQ+LHKlB9+OTpQRo64 Gn/hKdLLsSC/EKyTfqsnaZwvkqtcw2+EYRLF8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=FVRMgsfaXRxtd9jsPrtN6YDCAmUyfBWsLj7LJT/DH2FumedKzS7EWc7CTTSUFmKImG DhgF76Gzeuw/YyXncDaTWwnuQePY00iF7r9VyNjXkHo08zDiJhEq4ZiNP+qC2Kgymwsu nGs5lBoSyEJQ9ZFdw50id8DWl00UGSwHumvhI= MIME-Version: 1.0 Received: by 10.103.248.7 with SMTP id a7mr3650647mus.44.1286229042051; Mon, 04 Oct 2010 14:50:42 -0700 (PDT) Received: by 10.102.80.35 with HTTP; Mon, 4 Oct 2010 14:50:41 -0700 (PDT) Date: Mon, 4 Oct 2010 23:50:41 +0200 Message-ID: Subject: first plugin From: Leon Rosenberg To: users@maven.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hello, I'm currently writing my first plugin and am struggling with very basics. >From the guide (http://maven.apache.org/guides/plugin/guide-java-plugin-development.html) I understood that if I specify a goal in a javadoc annotation I will able to call it later directly, but I fail to achieve it. In my plugin I'm annotating the code with generate: /** * Generates ano-doc classes. * * @goal generate * @phase generate-sources * @execute phase="generate-sources" * */ public class GeneratorMojo extends AbstractMojo{ public void execute() throws MojoExecutionException, MojoFailureException { getLog().info("YOOOO HEI!!!!"); } } After the packaging, and installing, and running from the directory I want to use it: another@colin:~/projects/aos/ano-site$ mvn ano-doc:generate [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Required goal not found: ano-doc:generate in net.anotheria:maven-ano-doc-plugin:1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Mon Oct 04 23:48:07 CEST 2010 [INFO] Final Memory: 8M/81M My plugin pom looks like this: 4.0.0 net.anotheria maven-ano-doc-plugin maven-plugin 1.0-SNAPSHOT AnoDoc Generator for Maven org.apache.maven maven-plugin-api 2.0 my pom in which I intend to use the new project : net.anotheria maven-ano-doc-plugin 1.0-SNAPSHOT generate-sources generate any help would be greatly appreciated regards Leon --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org