Would maven 2 help me with some dependencies evolution issues ?

2007-03-06 Thread Haryon

Hi all,

[Using Maven 1  can maven 2 help me here ?]

I have a common dependency D (jar), used by multiple main modules Ma, Mb
(wars), all bundled into an ear E (the jar is not deployed in the webapp,
but in the ear).

The first version of the ear E is easy to build. D1, Ma1, Mb1, E1.
When only a part of the ear dependencies evolves, making a new version of
the ear is much more complex.
For example, we add features in Ma (so Ma2) , which requires modification
(let's say compatible with D1) of the common dependency D (so D2), but no
change on Mb (Mb1).
When I try to create E2, using D2 in the project.xml, we have the following
issues :
- I have no automated way to check that Mb1 runs with D2 without creating a
new version of Mb (whose only difference would be a single line in
project.xml)
- E2 doesn't work, because Mb1 inside, has a manifest which looks up for
D-1.jar, whereas E2 contains D-2.jar.
I would need to issue a new version of Mb just to declare new versions of
dependencies ?

Now actually our project has a dozen of "common" dependences (the D above)
and 4 ou 5 wars (the Ms above). I fear configuration management will become
a nightmare.

Would Maven 2 help me build a E2 without issuing new versions of every
"unmodified" module ? I find the maven 2 transitive dependency feature quite
confusing on paper.

Thanks in advance for your help.


[m102] Using multiproject with plugin projects ?

2005-07-22 Thread Haryon
Hi,

multiproject:install does TYPE:install on every subprojects, where
TYPE is the project type (jar, war, etc. based on what we input in
projects.properties).

But when TYPE is 'plugin', it will do plugin:install. But if I'm not
mistaken plugin:install doesn't put the plugin jar in the repository
but instantiate and run the plugin on the current maven installation.
I need to use plugin:repository-install.

I could try a multiproject:goal -Dgoal=repository-install, but I have
jar projects there too, that need jar:install not
jar:repository-install.

Help :) any advice on how you would proceed ?

I would create a my-install goal on every project, on jars that would
attainGoal install, and on plugins that would attain
repository-install. But I find that very bad (needs edit maven.xml in
every project I create in the multiproject tree).

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



Re: bundle problem

2005-06-13 Thread Haryon
There is only one inheritence option, that is extend.

If you use it for maintain version value equals across all maven
projects of a same "business" project, but want different dependencies
for each... you are toast :) you have to pick one or the other, can't
have both.

What you can't inherit, you will copy/paste.

I never tried, but : since project.xml is an xml file, maybe it's
possible to use external entities to import some other file (xml
fragment) into project.xml. This way you could share the dependency
part between 2 project.xml. As I said, I never tried.

About your A -> B -> C,D problem, note that maven 1.x doesn't handle
dependencies of dependencies. You would need to declare C and D as
dependency of A too.

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



Re: [maven 1.0.2] [WAR plugin] war:war-resources goal modification request.

2005-06-13 Thread Haryon
yes :). That's what I did and I got answer pretty fast.

On 6/13/05, Raphaël Piéroni <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I would like to have the war plugin modified to add filtering
> in the war:war-resources goal.
> 
> here is the modified goal extracted from the 1.6.1 war plugin
> description="Copy webapp resources to target directory">
> 
>
> 
> value="${maven.war.webapp.dir}/WEB-INF"/>
>
> 
>
>  filtering="on"
>preservelastmodified="true">
>  includes="${maven.war.src.includes}"
>  excludes="${maven.war.src.excludes}">
>
>  
>
> 
>
>  filtering="on"
>tofile="${webapp.build.webinf}/web.xml"
>overwrite="true" />
>
> 
>  
> 
> In advance thank you.
> 
> Do i have to add this request to the jira ?
> 
> Raphaël.
> 
> 
> | Raphaël Piéroni  |
> | 33+ 223 351 354  |
> | mailto:[EMAIL PROTECTED]|
> | http://www.dexem.com |
> | mailing:[EMAIL PROTECTED] |
> 
> 
> 
> 
> 
> 
> 
> ___
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> Téléchargez cette version sur http://fr.messenger.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: [m2] define dependencies between wars

2005-06-10 Thread Haryon
I refused to merge 2 webapps from 2 projects, because of issues with
incremental compilation and IDE integration (I mean, too hard to make
MyEclipse automatically detect that a file changed in module1 and
should remerge web.xml and redeploy module 1 AND module 2 into a
webapp.

Two days ago, we found an article on Sun site, about sharing a jar
between two webapps in a EAR. They call it... bundled jar
dependencies, or something like this. We didn't test it yet. But I'm
pretty confident it will work.

On 6/6/05, Zachi Hazan <[EMAIL PROTECTED]> wrote:
> I am also in process of "pre development", so I need to recommend/define
> the projects structure.
> 
> Haryon wrote:
> 
> >I have exactly the same problem : multiple application modules on top
> >of some common business layer, each application module handle a set of
> >business functionnalities. One could imagine to deploy only the
> >required application modules depending on what the customer did buy.
> >
> >Development didn't start yet, so I have really no idea whether it will
> >work or not in the long run, but :
> >- I have decided to test that each web module is a different web application.
> >
> >My notes to you :
> >- what do you mean with war dependencies ?
> >If that's only declaring a  item in maven, you can for
> >sure, just add war and false of course :)
> >
> I meant war dependencies in runtime
> 
> >- WHY do you need war dependencies ?
> >If you expect webapp2 to have access to classes in webapp1... no way,
> >won't work. You have to define a jar to share such. Then put those
> >shared class on the common (shared) classpath, or on the application
> >server using a EAR (well I have no idea whether one can share a jar
> >between two webapps without EJBs).
> >
> >
> Exactly what i wanted ;). I had a feeling it won't work..
> 
> >if you expect that some links on pages from webapp2 call actions from
> >webapp1, then generate the correct url in webapp2 (i.e. include the
> >right application context path, which sadly mean that webapp2 can't
> >work if webapp1 isn't deployed under the right name, or you have to
> >defined that name in a property file).
> >
> >if you want to share images and such, you can also work with urls. If
> >you want to share jsps, call the right urls.
> >
> >For me, merging web apps was possible, if I defined some XSLT sheet,
> >and invent some web.xml/struts-config.xml fragments that I would merge
> >all together. But what I couldn't solve was : how to open webapp1 and
> >webapp2 in eclipse, and have Lomboz, MyEclipse, or TomcatSysdeo plugin
> >package the right files at the right place without hand by hand copy
> >from myself. So I had only one option left : one project = one webapp.
> >
> >
> It looks the only solution. I also thought on XSLT , but I think the
> solution is not comprehensive enough.
> Did you tried to create your own war plugin with multiple source paths
> that will copy these files into one place?
> 
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



[maven-eclipse-plugin] Suggestion for improvement

2005-06-10 Thread Haryon
I'm using maven-eclipse-plugin 1.9, but we have a slightly different
way of using jar sources. We use a plugin that packs the src and put
them into the repository under src.jars (artifact type is src.jar).

Could you change plugin.jelly, line 41 from :
  
to :
  

where ${maven.eclipse.src.type} defaults to 'src' to keep backward
compatibility.

I could then change it to : 
${maven.eclipse.src.type} = ${maven.eclipse.src.extension}s
in my project.properties and everything would work fine :)

Thanks in advance if you could.

Ha.Ryon

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



GenApp : Reuse for inputs in next default values.

2005-06-06 Thread Haryon
Due to naming conventions here, an artifact will be called : A-B-C.jar

I have a template that asks for A, B and C. then it asks for the
package, project name, short description etc. In those last questions,
I would like to provide a default value that take A/B/C values as the
user did input them.

For example :
Please, input A : [company]
 >> mycompany
please, input B : [project]
 >> myproject
please, input C : [artifact]
 >> webservices
please, input package : [company.project.artifact]
 !!! I would like default value here to be :
[mycompany.myproject.webservices], so that 90% of the cases, they have
nothing to input in the last questions.

Any idea whether it's possible ?

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



Re: Multiproject & dashboard - dashboard runs "the hard way"

2005-06-06 Thread Haryon
on mine I have something like this :
maven.multiproject.basedir=${basedir}/..
maven.multiproject.ignoreFailures=true
maven.multiproject.excludes=*-build/project.xml 
maven.multiproject.includes=*-*/project.xml

build is from where I run the multiproject stuff, and it's at the same
level as the others :
/projects/xx-build/project.xml
/projects/xx-srv/project.xml
/projects/xx-web/project.xml
etc.

both site and dashboard works, when run from xx-build directory.
Don't know whether it helps.


On 6/3/05, Michael Niemaz <[EMAIL PROTECTED]> wrote:
> For my project, I run the multiproject twice, fist on my sub-projects
> seconddly on the root project excluding my sub projects such as:
> 
>goals="multiproject:site" banner="multiproject:site"
>ignoreFailures="true" />
>value="subs/project.xml,*/*/project.xml" />
>
> 
> --mike
> 
> Jeff Jensen wrote:
> 
> >That is a thought - I will try to get it working without dashboard first.
> >Thanks.
> >
> >
> >On the out of memory, in case it helps - when running Maven on just one
> >subproject, I would get out of memory (I believe due to our very large code
> >base).  To fix, I set the max heap - on the plugins that launched their own
> >JVMs, I set their memory property (e.g. for Javadoc), and for the rest, I
> >set "MAVEN_OPTS=-Xmx1024m".  This prevented OOM for me.  This may allow you
> >to run all the reports you want.
> >
> >
> >-Original Message-
> >From: Michael Niemaz [mailto:[EMAIL PROTECTED]
> >Sent: Friday, June 03, 2005 1:59 AM
> >To: Maven Users List
> >Subject: Re: Multiproject & dashboard - dashboard runs "the hard way"
> >
> >Well, it works for me although I'm not using the dashboard plugin.
> >Still, I had to remove the generation of some reports to prevent an
> >outofmemory exception.
> >And it looks like it does go through the same goals several times.
> >But I can't spend to much time on that so ...
> >Try to play with the excludes parameters ...
> >
> >--mike
> >
> >Jeff Jensen wrote:
> >
> >
> >
> >>Thanks for the reply Mike.  I will gladly try anything at this point!!
> >>:-|
> >>
> >>That change causes some type of recursion!  Before it crashes, there
> >>are 7 nested "multiproject" dirs under the subproject build dir.  And
> >>now nothing is under the multiproject build dir.
> >>
> >>Hmm, either using multiproject:site is not correct or this continues to
> >>point to something configured incorrectly...
> >>
> >>Any further thoughts very welcome!  Thanks!
> >>
> >>
> >>Quoting Michael Niemaz <[EMAIL PROTECTED]>:
> >>
> >>
> >>
> >>
> >>
> >>>Try to replace
> >>>
> >>>maven.multiproject.site.goals=site,dashboard:report-single
> >>>
> >>>with
> >>>
> >>>maven.multiproject.site.goals=multiproject:site,dashboard:report-singl
> >>>e
> >>>
> >>>
> >>>Hope this helps,
> >>>
> >>>--mike
> >>>
> >>>Jeff Jensen wrote:
> >>>
> >>>
> >>>
> >>>
> >>>
> I finally have dashboard report running by contradicting (per my
> 
> 
> 
> 
> >>>interpretation)
> >>>
> >>>
> >>>
> >>>
> the documentation.  All 3 of these settings must be this way to get
> it to
> 
> 
> 
> 
> >>>run:
> >>>
> >>>
> >>>
> >>>
> maven.multiproject.site.goals=site,dashboard:report-single
> 
> maven.dashboard.runreactor=true
> maven.dashboard.rungoals=true
> 
> 
> As expected and per the docs, dashboard runs all the Junit tests,
> etc. for
> 
> 
> 
> 
> >>>its
> >>>
> >>>
> >>>
> >>>
> report.  While this accomplishes getting dashboard run, the
> underlying
> 
> 
> 
> 
> >>>problem
> >>>
> >>>
> >>>
> >>>
> is still not solved.
> 
> 
> For some reason, the "site" goal is not run on each subproject.  So
> the subproject output (the html files in the end) needed for the
> multiproject results to link to do not exist.
> 
> 
> Can anyone explain this?  Does this point to a config error on my
> part, or possibly a bug?
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> 
> 
> >>>-
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [E

GenApp : share code between templates

2005-06-06 Thread Haryon
Is it possible to share files between templates, so that I have to
keep them up-to-date only once in my CVS ?

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



Re: [m2] define dependencies between wars

2005-06-06 Thread Haryon
I have exactly the same problem : multiple application modules on top
of some common business layer, each application module handle a set of
business functionnalities. One could imagine to deploy only the
required application modules depending on what the customer did buy.

Development didn't start yet, so I have really no idea whether it will
work or not in the long run, but :
- I have decided to test that each web module is a different web application.

My notes to you :
- what do you mean with war dependencies ? 
If that's only declaring a  item in maven, you can for
sure, just add war and false of course :).

- WHY do you need war dependencies ?
If you expect webapp2 to have access to classes in webapp1... no way,
won't work. You have to define a jar to share such. Then put those
shared class on the common (shared) classpath, or on the application
server using a EAR (well I have no idea whether one can share a jar
between two webapps without EJBs).

if you expect that some links on pages from webapp2 call actions from
webapp1, then generate the correct url in webapp2 (i.e. include the
right application context path, which sadly mean that webapp2 can't
work if webapp1 isn't deployed under the right name, or you have to
defined that name in a property file).

if you want to share images and such, you can also work with urls. If
you want to share jsps, call the right urls.

For me, merging web apps was possible, if I defined some XSLT sheet,
and invent some web.xml/struts-config.xml fragments that I would merge
all together. But what I couldn't solve was : how to open webapp1 and
webapp2 in eclipse, and have Lomboz, MyEclipse, or TomcatSysdeo plugin
package the right files at the right place without hand by hand copy
from myself. So I had only one option left : one project = one webapp.

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



[M1] variables in Url of Dependencies

2005-05-19 Thread Haryon
Hi,

most of my project depends on other of my company jars. For example, I
could have something like that :

  sales
  sales-srv
  SNAPSHOT
  jar
  http://intranet.mycompany/sales/sales-srv/SNAPSHOT


As you can see, we organised all our site generation to url
http://intranet.mycompany/groupId/artifactId/version.

I would gladly use variables to fill in the url from the
groupId/artifactId/version defined on the dependency. Do you know
whether it's possible ?

http://intranet.mycompany/${dep.groupId}/${dep.artifactId}/${dep.version}

Would be awesome :)

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



Flex and Maven ?

2005-05-17 Thread Haryon
Has anyone worked on Macromedia Flex WebApps with Maven ?

For what I see, flex comes with some jars to put in web-inf/lib (no
problem, that's natural behaviour, so maven handle it perfectly), some
jars in some specific flex directory (should be able to handle via
) but also some .as file (that I think should not be
modified by the project, and are a kind of core library for action
scripts)... so those as files should be managed separately and if
possible via dependencies.

I was thinking creating a webressource artifact type, and put some
 as pregoal
of war:webapp.

Any existing thing like that ? or anyone has experience with such behaviour ?
I saw other libraries than Flex that requires some files (e.g. images
and css) to be copied to a specific webapp directory (f.e.
Common-Controls taglib).

  tia.

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



Single Web App from Multiple Modules... ?

2005-05-17 Thread Haryon
Working on a large project, where multiple teams will work on a single
web application (single War), each team designing some business
module, some teams designing business layers modules, and some leaders
to watch over the coherency of the whole.

We use Eclipse, MyEclipse (for auto-deployment to local server), and
Mevenide. With Maven, how can I best structure my web modules (that
are part of a webapp) so that they are easy to develop and test by
each web module team. (each web module is similar to a Struts module,
in that there is very few things to define in each module that goes
into the web.xml).

Anyone has experience with such project cutting ?


We have thought of making one webapp per web module, but that would
mean the business layers jars would be copied over each webapp and
since we use Spring and Hibernate, that would mean that cache and
singletons exists once per webapp, which is not good at all.

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



Re: account for ibiblio?

2005-04-24 Thread Haryon
well, it's not like ibiblio is your site, it's not like you can
install anything you want on their server : they want to keep control
on what's there. A Jira is a nice way to track down requests.

"many times" isn't that many. You will only deploy there the stable
releases. So maybe one per month, a bit more with quick bug fixes just
after an important release.

The other options would be to set up your own maven repository on your
own website :). or to go with other servers than ibiblio. You could
also join an existing group like maven-plugins, you would be published
by their repository (well maven-plugins handles only maven plugins, so
your war would go probably).

I fear there is no quickest way to publish to ibiblio than to send a
formal request to them :)

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



Re: Where to find Maven-xmlbeans-plugin and documentation ?

2005-04-24 Thread Haryon
thanks a lot.

I never used XMLBeans before, and I was too lazy to install it for
manual usage (I saw you need to set up env variables and such, I don't
like much when you have to do so, it's a pain to reinstall on new
environment, you always forget what you exactly did so that it worked
in the first install). But with the plugin it worked perfectly.

I'm using JDK 1.5 and when compiling the generated classes I got :
Note: * uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
all seems to work despite this.

I like the look of the generated classes. When I tried to run source
generation with Castor, I ended up with one class per element and one
class per complex type, ignoring all naming collisions ! (so I was
ending up using a mapping file and writing my own classes). With
XmlBeans I only have classes for complexTypes (and maybe simpletypes I
didn't check), which is exactly what I expected. Now I have to
convince XMLBeans to generate me Lists or Sets and not arrays, and all
should be good :)


On 4/23/05, David Jencks <[EMAIL PROTECTED]> wrote:
> 
> On Apr 23, 2005, at 9:18 AM, Haryon wrote:
> 
> > And who exactly is developping it right now ?
> I am
> 
> I more or less recommend using xmlbeans 2.  The plugin is here:
> http://issues.apache.org/jira/browse/XMLBEANS-124
> 
> and there are some instructions in the src jar.
> 
> You might have to build xmlbeans from source -- I found an additional
> bug after the v1 release but I don't recall if it broke the maven build
> or the use of xmlbeans v2 in geronimo.
> 
> If you want to use xmlbeans 1, the plugin is part of geronimo,
> plugins/geronimo-xmlbeans-plugin.  The instructions are similar or
> identical.
> 
> If you like the v2 plugin you might encourage xmlbeans to adopt and
> publish it.
> 
> thanks
> david jencks
> 
> > I found a geronimo maven xmlbeans plugin "maven site" but there is no
> > documentation at all, no goal list, no properties, so I'm clueless at
> > how I could download and use it for my personnal use.
> >
> > thanks in advance if you can guide me to a safe haven :)
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Where to find Maven-xmlbeans-plugin and documentation ?

2005-04-23 Thread Haryon
And who exactly is developping it right now ?
I found a geronimo maven xmlbeans plugin "maven site" but there is no
documentation at all, no goal list, no properties, so I'm clueless at
how I could download and use it for my personnal use.

thanks in advance if you can guide me to a safe haven :)

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



[M1] Eclipse, J2EE Plugins, Maven and TLD/Applets issues

2005-04-18 Thread Haryon
Hi,

J2EE plugins (like MyEclipse, Sysdeo Tomcat, Lomboz) have their way to
deploy the webapp to the target server.
Usually they copy all from src/webapp to the target server (that's how
MyEclipse work) or they make the server point to the source directory
(that's how sysdeo tomcat works).

Maven Eclipse Plugin generate a .classpath so that all jars in
project.xml are seen by Eclipse, and so those jars are being
considered and copied over by J2EE Eclipse Plugins.

How do you guy handle TLD and Applets this way ? In my project.xml, i
have dependencies with tld and some applets with
applets. Those dependencies aren't about
classpath, so maven eclipse plugin can't generate them into .classpath
and hope the application will work.

Somehow I must copy tld and applet files to the
src/webapp/WEB-INF/tld/ and src/webapp/applets/ (using some .cvsignore
to make sure nobody put my dependencies back into my cvs of course). I
have written a specific maven.xml goal for this, but I'm looking for a
generic way, a best practice. How do you do it ?


Instead of copying them to the source directory, one could declare
target/webapp/ (or whatever is the directory generated by war:webapp)
as where the J2EE Eclipse Plugin should pick the web app. Since
war:webapp put the applets and tld correctly in there, it sounds the
way to go. Unfortunatly, how do I tell eclipse that src/webapp must be
copied to target/webapp so that each time I change a JSP (or other web
resource) I see the result directly in the browser without having to
manually call maven war:webapp goal ?

HELP !!! Thanks in advance :)

  Haryon.

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



[M2] Too many things in the POM ?

2005-04-11 Thread Haryon
I have the feeling the POM will carry too many things. After all, POM
is in SCM, so it is versionned, it is source related, it can't provide
deployment infos, or development platform context, which can change
after the release has been done.

At the first reading of the POM documentation, I see :
 : Remote Repository. (I guess the one where the packaged
artifact will be deployed)
Does it mean that my project sources must know where my remote
repository is installed ? What happen if my company change computer
names (for example she got bought by another company who already have
a maven repository and we want merge them) ?

This problem was already an issue in Maven 1 too, and still is on
those : issue management, site:deploy target, etc.

I have slightly the same conceptual difficulties with some site
reports. For me there are different kind of reports. Some I want to
execute during Continuous integration (on SNAPSHOT) and some I want to
execute on stable releases (versions). Some reports can be attached to
both : javadoc, tests, xref, faq, install guide, user guide, pmd,
findbugs, checkstyle, ... they apply to ONE configuration. Some
reports are NOT version related, they apply to the whole configuration
management : last 30 days changelogs, Developper activity, ... If the
changelog was : every change log since last version, it would become a
configuration report and I would be ok with it, but the fact it will
deal with a period of time based on when I run it, breaks this (I
should be able to check out a specific VERSION, whenever I want, even
years ahead in the future, generate the site and obtain the exact same
result than when i did the first time).

I have the feeling Maven doesn't clearly separated between a
configuration and the whole project lifespan. For me there should be a
tool for configuration-based tasks, and a tool for project-based
tasks. A versionned POM, that follow the configuration lifecycle, and
some other project-settings separated from the POM. I think this
second item should be handled by CruiseControl-like tools, and could
integrate other tools that track the project evolution like some code
review tools with history (e.g. Hammurapi).


Or ?

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



[M2] Support for non-java sources ?

2005-04-11 Thread Haryon
In Maven 2 POM documentation, it seems that I will only be able to
create Java project with Maven.





sourceDirectory points by default to src/main/java.
Does it mean that if I want to create non-java project I can't
indicate sources in the pom ?

Or does it mean that I can declare a new artifact type in maven (let's
say for C++ stuffs), place the c++ sources in the POM sourceDirectory,
and have my C++ files compiled as part of the normal maven life cycle
? What happen if the source type can't be guessed from the artifact
type (I think DLL can be created in more than one language, same I
guess a maven plugin can be Java or Marmelade or ...).

And if I need to mix different languages in my sources, I'll do :
src/main/lang1, src/main/lang2, ... but how will the compile tasks do
the right thing ?

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



Re: muliproject

2005-04-08 Thread Haryon
Well what do you mean with running maven.xml and project.xml files ?

maven.xml just declare new 'commands' (goals).

Do you mean that building A requires that you first did build B with a
specific goal of yours, and build C requires another specific goal of
yours not the same as for B ?

I guess you could add to each project maven.xml a new goal (called
homemade:buildme for example) that would . Then you could multiproject run the
homemade:buildme goal on all your projects ?

Else you can write your own build-all goal in maven.xml of your A
project, that would use the Reactor to run goals on the other projects
(not sure exactly how to do it, but multiproject is just simplified
calls to  power).

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



Q : Handling default property values

2005-04-02 Thread Haryon
I am creating a plugin, I would like to use some properties pointing
to some directories (just like maven.build.dir, or maven.src.dir). I
would like those directories to have a default, but if the user wants
to override them, he can.

I have done a prepare-src goal which is prereq of everything that
needs those properties (it also creates the directories if not
existing). It looks like this :

   


This doesn't allow for user override. I think I'm looking for something like :

  

I'll be adding something like , but I was wondering whether there where a much better way of
declaring properties required by a plugin and their default value ?

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