On Wed, 19 Jan 2005 11:55:02 -0500, Randy Xu <[EMAIL PROTECTED]> wrote:
> Anyone have any suggestions/best practices for the follow issues?
> 
> 1) post/preGoals: I have rmic and post-process in a postGoal to
> java:compile.  

[snip]

> Is there a simple way of
> making sure that if java:compile does nothing then none of the postGoals
> are run?  

No, but you can use the <ant:uptodate /> task in the postGoal to test
whether it is necessary. See the JAXB plugin at
http://maven-plugins.sf.net/ for an example.

> 2) SNAPSHOTs:  Can someone describe to me Maven behavior step-by-step

The only real difference is that a SNAPSHOT is downloaded from a
remote repository every time it is newer. You probably should use
SNAPSHOT while in development, even if you are doing it locally, to
indicate it is a work in progress.

> 
> OR - do I have to use SNAPSHOT because Maven doesn't
> even go to the respository when the filename hasn't changed even if the
> file has.

correct, because it doesn't know to check if the remote file has changed.

This all applies to the remote repository - the local repository is
always used because everything in your project's classpath actually
comes from there.

> 3) Downloading artifacts:  I have two remote repostitories set.  How do
> I disable the warning that appears if the first site doesn't contain the
> file?  Or can you let me know where in the code is this?

DependencyVerifier.java

Cheers,
Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to