You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Da...@posten.se on 2009/03/03 16:46:30 UTC

"mvn site" triggers generate-sources

Hi,

I was wondering if any of you guys encountered the same problem.

I am generating some source code using an ANT Task, the task is
triggered when the Maven lifecycle reaches the "generate-sources" phase.

That works just fine, the problem is, the very same phase is executed
when I do generate the Project Site using "mvn site". Thus, the task
bound to "generate-sources" is triggered several times for every site
thats built.

Any smart ideas, because I don't seem to find the solution to this.

Thanks in advance,
/Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


SV: "mvn site" triggers generate-sources

Posted by Da...@posten.se.
Naturally... I had a hunch that it would be like that... Thanks a bunch for your help.

-----Ursprungligt meddelande-----
Från: Wayne Fay [mailto:waynefay@gmail.com] 
Skickat: den 3 mars 2009 19:46
Till: Maven Users List
Ämne: Re: "mvn site" triggers generate-sources

> That works just fine, the problem is, the very same phase is executed
> when I do generate the Project Site using "mvn site". Thus, the task
> bound to "generate-sources" is triggered several times for every site
> thats built.

My best guess without seeing your poms and knowing more about your
project is that you are probably using some plugins (PMD, etc) that
want to use/analyze the source code to include a report in the
generation of the site, and they are causing generate-sources to be
executed.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: "mvn site" triggers generate-sources

Posted by Wayne Fay <wa...@gmail.com>.
> That works just fine, the problem is, the very same phase is executed
> when I do generate the Project Site using "mvn site". Thus, the task
> bound to "generate-sources" is triggered several times for every site
> thats built.

My best guess without seeing your poms and knowing more about your
project is that you are probably using some plugins (PMD, etc) that
want to use/analyze the source code to include a report in the
generation of the site, and they are causing generate-sources to be
executed.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org