2003-10-14 12:00:01 -04:00
|
|
|
Trying to get a large set of use cases that we can use to help drive
|
|
|
|
development in the right direction. I would like to collect some here and then
|
|
|
|
post them to the wiki as examples users can template to express what their
|
|
|
|
use cases are. So my first example is something I chatted about with Aslak
|
|
|
|
this morning. So they are brief and possibly naive but a huge collection
|
|
|
|
of these would help I think.
|
|
|
|
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
- Being able to write artifact handler that would operate to install an
|
2003-10-14 12:08:12 -04:00
|
|
|
xdoclet plugin correctly when an xdoclet plugin is stated as a dependency.
|
2003-10-16 23:56:41 -04:00
|
|
|
* Maybe this pattern could be generalized so you could register arbitrary
|
|
|
|
ArtifactInterceptors (possibly a DAG of them) that will be called to handle
|
|
|
|
events and operations on artifacts. They could even be used to actually
|
|
|
|
implement the operation (ie have a interceptor actually fetch the artifact
|
|
|
|
on request). This is basically an expansion of handler system as it stands
|
|
|
|
so you can add more context and generalize how artifact operations are
|
|
|
|
handled. (PD)
|
2003-10-14 13:19:55 -04:00
|
|
|
|
|
|
|
- With Maven installed it should be a simple command that allows you to
|
|
|
|
checkout the sources for a project.
|
2003-10-16 23:56:41 -04:00
|
|
|
* Maybe this could be generalized so that if you reference a remote
|
|
|
|
descriptor it will download the project. Something like
|
|
|
|
|
|
|
|
$ maven --project http://www.realityforge.org/daedalus-project.xml
|
|
|
|
|
|
|
|
would result in download of project either from remote location or
|
|
|
|
maybe from scm declarations in project descriptor.
|
|
|
|
|
|
|
|
As part of this remote downloading though the user may be asked for
|
|
|
|
input of particular configuration data (ie username etc). (PD)
|
2003-10-14 13:19:55 -04:00
|
|
|
|
|
|
|
- Unified source directory structure that is analagous to the repository
|
|
|
|
itself. This way locations of intermediary artifacts of a build would be
|
|
|
|
in a known location. This would also help with developer setup i.e. getting
|
|
|
|
new developers up and running. They could run a maven command and have all
|
|
|
|
their source trees set up in the same way as their collegues.
|
2003-10-15 15:36:51 -04:00
|
|
|
|
2003-10-16 23:56:41 -04:00
|
|
|
- I would like to be able to execute some goals (like 'clean') even when
|
|
|
|
not all dependencies are satisfied.
|
|
|
|
* hell yes!!!! Maybe dependency resolution could be a plugin that
|
|
|
|
other plugins depend upon (PD)
|
2003-10-15 15:36:51 -04:00
|
|
|
|
2003-10-17 00:38:09 -04:00
|
|
|
- Support for "specification" dependencies. I would like to be able to
|
|
|
|
say that I depend on a "specification" dependency such as
|
|
|
|
"javax.jaxp.parser" with specific version. It is possible that multiple
|
|
|
|
artifacts exist that satisfy this specification. ie Several versions
|
|
|
|
of Crimson and Xerces may implement the "specification" and I want maven
|
|
|
|
to select one and just use it. I dont care which does it but preferrably
|
|
|
|
the one with the latest version. (PD)
|
|
|
|
|
|
|
|
- Support for retrieval of compatible versions for objects. For example I may
|
|
|
|
say that I want version 1.1 of Crimson but Maven may return 1.1.1, 1.1.4 etc
|
|
|
|
as it knows that these are compatible. This means aadding in some versioning
|
|
|
|
specification or different strategies for resolution. (PD)
|
|
|
|
|
2003-10-15 15:36:51 -04:00
|
|
|
- Support for transitive and group dependencies
|
2003-10-17 00:03:16 -04:00
|
|
|
* I would like to see this dependency information either encoded directly
|
|
|
|
into the artifacts where possible (ie META-INF/maven/dependencies.xml in
|
|
|
|
jar files) or accessible from repository at peer level for each artifact
|
|
|
|
much like signature data is accessible for each artifact. (PD)
|
2003-10-15 15:36:51 -04:00
|
|
|
|
|
|
|
- It should be easy to create a single report without a need to (call like it has place now)
|
|
|
|
maven:site. It will be nice if report generators can produce docs in few diffrent formats
|
|
|
|
(e.g pdf, html, rtf) and this format can be also choosen for group of reports.
|
2003-10-16 23:56:41 -04:00
|
|
|
|
2003-10-15 15:36:51 -04:00
|
|
|
- groupId
|
2003-10-16 23:56:41 -04:00
|
|
|
- Let's assume that there exists an artifact type "web-component"
|
2003-10-15 15:44:42 -04:00
|
|
|
which is a zip file containg css/js/gifs/jpegs etc
|
2003-10-15 15:36:51 -04:00
|
|
|
Example of such artifact is for example distribution of tigris style.
|
2003-10-16 23:56:41 -04:00
|
|
|
|
2003-10-15 15:36:51 -04:00
|
|
|
Say an user has declared the following dependency:
|
|
|
|
|
|
|
|
<depenedency>
|
|
|
|
<groupId>org.tigris</groupId>
|
|
|
|
<artifactId>style</artifactId>
|
|
|
|
<type>web-component</type>
|
|
|
|
<version>2.0</version>
|
|
|
|
</depenedency>
|
2003-10-16 23:56:41 -04:00
|
|
|
|
2003-10-15 15:36:51 -04:00
|
|
|
A dependency of this type should be processed only when users assembles the web application
|
|
|
|
(war:webapp goal in maven-old)
|
2003-10-16 23:56:41 -04:00
|
|
|
|
|
|
|
In short: user can be able to declare goal decorators and goals should be fine-grained
|
2003-10-17 00:03:16 -04:00
|
|
|
* This very similar to only resolving some dependencies depending on what goals
|
|
|
|
are running as specified above. (PD)
|
2003-10-15 15:36:51 -04:00
|
|
|
|
|
|
|
- Maven is Java Build Tool. It should be well defined what does it mean to "build java project".
|
2003-10-15 15:44:42 -04:00
|
|
|
It means that stages of the process should be well defined.
|
2003-10-16 23:56:41 -04:00
|
|
|
|
2003-10-15 15:36:51 -04:00
|
|
|
pre-compile (this is when tools like JAXB, XDoclet)
|
|
|
|
compile (javac, aspectj)
|
2003-10-16 23:56:41 -04:00
|
|
|
post-compile (aspectj? )
|
2003-10-15 15:36:51 -04:00
|
|
|
pre-jar
|
|
|
|
...
|
|
|
|
etc
|
2003-10-16 23:56:41 -04:00
|
|
|
|
|
|
|
It should e.g be possible to use Castor, JAXB plugin, XDoclet plugin without writing a single line
|
|
|
|
of build script. In the ideal case it should be just enough to plug-in XDoclet into process simply
|
|
|
|
by "checking the checkbox in IDE".
|
|
|
|
This is someting what Vincent Massol started in maven-caller plugin. It will be nice to explore this idea.
|
|
|
|
|
2003-10-15 15:44:42 -04:00
|
|
|
- Reorganization of repository layout - are we going to map groupId : "a.b.c.d" to path "a/b/c/d"?
|
2003-10-15 15:36:51 -04:00
|
|
|
Are there some better alternatives?
|
2003-10-17 00:03:16 -04:00
|
|
|
* I am not sure that is such a good idea - how can you tell when a
|
|
|
|
directory is an artifact container (ie jar, sar, distribution etc) and when
|
|
|
|
it is a group container (ie a/b/c/d). (PD)
|
2003-10-16 23:56:41 -04:00
|
|
|
|
2003-10-15 15:36:51 -04:00
|
|
|
- (Michal) I have tried to implement "platform dependend dependecies".
|
2003-10-16 23:56:41 -04:00
|
|
|
|
2003-10-15 15:36:51 -04:00
|
|
|
<depenedency>
|
|
|
|
<groupId>a</groupId>
|
|
|
|
<artifactId>b</artifactId>
|
|
|
|
<type>native</type>
|
|
|
|
<version>2.0</version>
|
2003-10-16 23:56:41 -04:00
|
|
|
</depenedency>
|
|
|
|
|
|
|
|
is resolved as
|
|
|
|
|
2003-10-15 15:36:51 -04:00
|
|
|
a/b-2.0.dll (on windows) or a/b-2.0.so (unix)
|
2003-10-16 23:56:41 -04:00
|
|
|
|
|
|
|
|
|
|
|
Maybe it can/should be done differently?
|
2003-10-15 15:36:51 -04:00
|
|
|
What other "platform depended" artifact type do we have?
|
|
|
|
exe? shell-script?
|
2003-10-16 23:56:41 -04:00
|
|
|
|
2003-10-17 00:03:16 -04:00
|
|
|
* the problem with this approach is that most things that load native libs
|
|
|
|
expect the name of the lib to follow a very specific name which usually will
|
|
|
|
not conform to maven naming conventions (ie probably wont have -version on
|
|
|
|
end). No idea how to fix this. (PD)
|
2003-10-16 23:56:41 -04:00
|
|
|
|
2003-10-15 15:36:51 -04:00
|
|
|
- how to declare a dependency on JDK and what are possible implications of such dependency
|
|
|
|
(e.g javac/javadoc target jdk)
|
2003-10-16 23:56:41 -04:00
|
|
|
|
2003-10-20 20:47:16 -04:00
|
|
|
- I don't know if this will add too much complexity, but being able to generate multiple
|
|
|
|
and compound artifacts from a single project would be nice. If we want to have a
|
|
|
|
"Ant Compatibility Layer", then this would be required.
|
|
|
|
|
|
|
|
Think of a project for a web application, it will have java code as well as web resources.
|
|
|
|
The java code is collected into a JAR file, and then that is packaged with the web
|
|
|
|
resources into a WAR.
|
|
|
|
|
|
|
|
Of course, none of this is really required, as it can all be accomplished by breaking the
|
|
|
|
project out into multiple projects with a reactor, per the Maven 1 guidelines. But if this
|
|
|
|
limitation was removed, it might help Marvin adoption. (PR)
|
2003-10-16 23:56:41 -04:00
|
|
|
|