maven/maven-site/ideas.txt

140 lines
3.4 KiB
Plaintext
Raw Normal View History

----
Guides
-----
Jason van Zyl
-----
12 October 2005
-----
* Guide to using project properties
Actually, no. It's *like* the properties defined in profiles in syntax,
but this is a properties section that is specified as a direct child of
the <project> element. So:
+----+
<project>
...
<properties>
<name>value</name>
</properties>
</project>
+----+
* Guide to system properties
System vars are accessed implicitly in m2...try:
+----+
<configuration>
<debug>${build.debug}</debug>
<source>${build.jdk}</source>
<target>${build.jdk}</target>
</configuration>
+----+
==
How do I get the list of artifacts within my plugin?
You must use the @requiresDependencyResolution tag in your plugin.
==
How to best setup a multi-module build and make versions easiest to manage
==
Integrate Jesse's archetype work.
And how do I make archetypes for use in my organization?
==
==
How to get started behind an NTLM proxy.
use the fat http client and add it as an extension to the POM. Do we
support ntmlv2:
http://www.mail-archive.com/httpclient-dev@jakarta.apache.org/msg01861.html
How to use Ant constructs from m2.
How artifact resolution works, this would be a long one more advanced in
scope.
==
How snapshots works
==
How do i use the lifecycle provided by a plugin:
make sure you turn on the extension option
<packaging>nbm</packaging>, <build><plugins><plugin><groupId/><artifactId/><extensions>true</extensions></plugin></plugins></build>
==
What expressions are available for use in the mojos?
<jason> maybe i can generate doco from @tags in the expression evaluator or something
<jason> that's where it's localized right?
<jdcasey> um, sort of
<jdcasey> we have the roots there, but we're using the ReflectionValueExtractor from there
<jdcasey> it can easily get pretty ugly
<jason> i'll make a list of those
<jdcasey> I'm thinking of making a mapping resource for expressions, for use in the error diagnoser...maybe we can reuse that?
<jason> of the ones that are not referenced in the plugin expression evaluator where can i find them?
<jason> sure
<jason> a single place would be nice
<jdcasey> they're (a) listed in the expression evaluator, (b) available as POM properties, (c) available as system properties, or (d) available reflectively from the api rooted in one of the four or five data objects
<jdcasey> yup, I think we need that
note from andy
Jason,
Follow up to our irc chat about suggesting that windows m2 users move their
repos to a location without embedded spaces. I think it would be helpful to
people if we were to place a notification about this in a prominent place
on the M2 site and in the getting started guide. Parting of the marketing
chat could be "Windows M2 Users Prepare for surefire and Java compiler
forking by moving your M2 repository to a file system location that doesn't
contain embedded spaces!"
The default user.home on windows is c:\documents and settings\<username>\
The repo location can be changed in the settings.xml file located at
${user.home}/.m2/settings.xml
I've pasted an example of a trivial modified settings.xml file below.
<settings>
<localRepository>F:\m2-repository\repository</localRepository>
</settings>
==
example of generating sources
==
How to modify the manifest.
~~ * How do I deal with a dependency that is already supplied by my runtime?
+-----+
~~ How to do a test release and deployment. Trying to work through this with raphael at the moment.