On Fri, 22 Apr 2005, Brett Porter wrote:

About the resource problem: just add your src/main/resources/ directory
to the runtime classpath in the Run->Run.. -> Classpath-tab, then
you should be able to load it using the ClassLoader.getResource();
Though this shouldn't be necessary, since resources are copied to
the target/classes/ directory, which is (should be) in the Runtime
classpath autmatically.

Greetings,

        Kenney Westerhof

> > I'm quite new to Maven. I've decided to directly start using Maven 2.0,
> > I can avoid a migration that way.
>
> Ok, we're happy to help out early adopters, but please keep in mind
> that Maven2 is alpha software, not expected to have a final release
> until August - so you may have to do a little work get things going
> properly.
>
> > But what is the best workflow to use maven (2) ?
> >
> > For example I have an existing software project which I want to develop
> > very incremently.  Suppose I would like to do a release every week.
> >
> > Performing a release means: building and packaging and deploying on my
> > own repository.
>
> We have some tools in Maven 1.0 to help prepare releases that we will
> be adding to 2.0-alpha-2. This manages updating the POM, tagging, etc.
>
> You may also like to use the SNAPSHOT facility to publish incremental
> builds, perhaps even have your continuous integration environment do
> that, then promote builds to be releases.
>
> Though focused on m1, these general principles might help:
> http://maven.apache.org/using/bestpractices.html
> http://maven.apache.org/using/releasing.html
>
> > But I guess I can also use maven to commit my changes to cvs dialy ?
>
> You could, though I think this is really more useful for automated
> changes and releases. Generally, it's better to use your existing IDE
> and tools to review and commit changes.
>
> > Does that already works with maven 2 ?
>
> Not yet, no.
>
> >
> > Question is : can I use maven for everythin except editing code ?
>
> Theoretically, but you should find the balance that best suits you :)
>
> > One little thing I find annoying is this: I have restructured the layout
> > of my sources according to the guidelines :  resulting the logo of my
> > app ending up in the directory : src/main/resources, when I compile my
> > program using maven that is ok ofcourse. But when I want to run it from
> > eclipse it is not.
>
> Usually there is a way to add resources to be copied to the output
> directory in Eclipse - I'm not sure what it is, though, being an IDEA
> user.
>
> Hope this helps.
>
> Cheers,
> Brett
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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

Reply via email to