Suggestions about project structures and related items

2007-04-16 Thread Ian Rowlands




Being relatively new to Maven and not finding much around about how things
are done "in the wild", I have a few questions about the best use of maven
in regard to multi-module projects and generating some of the artifacts:

1.  When you generate the website, an index.html is not generated by
default.  Is it possible to do this?  I know you can generate it by adding
the various site files (index.xml in the site/xml directory) but it would
be good to "tweak" something to do it.  It would also mean I wouldn't have
to have very similar files in each of the subprojects (which is what I have
at the moment).

2.  What is the "suggested" way to structure multi-module projects?  I know
two ways are that you can put the pom.xml in the "parent" directory - which
works if the only file in the parent project is that file (it isn't in my
case, because of the issue mentioned above).  The other is to have all
modules as "peers" (in terms of directory) and have one of the directories
as the "parent".  This works well with an eclipse environment, but I know
it has other issues - one of which is generating the website of the
"parent" so that it points correctly to its children.  I've tried tweaking
the links, but it hasn't really worked.

Any suggestions would be appreciated.


Regards,

Ian



Disclaimer: The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or other use
of, or taking of any action in reliance upon, this information by persons
or entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the material
from your computer.
Privacy: If you are responding to this email or providing personal
information to the SRO for the purposes of one of the Acts it administers,
such information is used only for the purpose for which it was collected
( administration of SRO legislation ) and is protected by the Information
Privacy Act 2000 and secrecy provisions contained in legislation
administered by SRO. It is not disclosed otherwise than in accordance with
the law. If you would like a copy of the SRO Privacy Policy please refer to
SRO website (www.sro.vic.gov.au) or contact SRO on 9628 0556 and request a
copy.


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



I want a project that JUST does reporting and creates a site

2007-04-16 Thread Ken Coveny
Hi, 
Is it possible to have a project that just reports and deploys to a
site? I have three java projects that each require javadoc on
preprocessed source files and using taglets. This is all done in an ant
script, which I would like to run using the antrun plugin, from a
dedicated project that doesnt do any building, just the reporting. The
reason I want to run it under mvn2 is that its easier to satisy the
classpath requirements by the dependency mechanism which is great. 
Hers my pom which in its present form has only one reportSet defined,
I'll add the others when this goes. At present it doesnt even run the
ant task when I do a mvn site:site. What mods need I make and what mvn
command do I issue to get it to work (I find the build lifecycle very
confusing) 
TIA 
Ken Coveny 
pom.xml 
http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";> 
  4.0.0 
   
com.uiactive 
uiactive 
1.2.0-SNAPSHOT 
   
  com.uiactive.jrap 
  uiactive-jrap-doc 
  jar 
  4.3-SNAPSHOT 
  Remote Server javadoc 
  Create the preprocessed javadoc for all jrap server 
projects 

   

scm:perforce://Products/uiActive/Remote/Server/Doc
 
   

 
   
 
   
maven-antrun-plugin 
 
   
midp-source 
 
   
 
 
 
   
 
   
 
   
 
   
   
 
  com.uiactive.jrap 
  uiactive-jrap-common 
  4.3-SNAPSHOT 
 
 
  log4j 
  log4j 
 
   
 

ant build.xml file 

 

 

 
   Create javadoc for all the jrap server projects and post on 
site  

   

   
 
 
 
 
 
 
   
 

   
 
 

 
  

 
 

 
  
  

 
 

 
  
  

  
  

  
  


  
 MIDP JRAP API v${midp.version} 
   Copyright © 2006 uiActive. All Rights Reserved. 


   http://java.sun.com/j2se/1.4.2/docs/api/"; 
packagelistloc="${packlistloc}"/> 
   http://www.bullant.com.au/Downloads/HTML/JRAP/JavaDoc/"; 
packagelistloc="${packlistloc}/jrap"/> 
  




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



RE: Maven 2 : eclipse.dependency ??

2007-04-16 Thread Jörg Schaible
Marouane Amraoui wrote on Tuesday, April 17, 2007 12:05 AM:

> eclipse.dependency
> 
>  is only in Maven1.x what is the equivalent on Maven2.x

To create inter-project dependencies, you must generate the linked eclipse 
projects at once. There's no further property necessary.

- Jörg

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



I want a project that JUST does reporting and creates a site

2007-04-16 Thread KenCoveny

Hi,
Is it possible to have a project that just reports and deploys to a site? I
have three java projects that each require javadoc on preprocessed source
files and using taglets. This is all done in an ant script, which I would
like to run using the antrun plugin, from a dedicated project that doesnt do
any building, just the reporting. The reason I want to run it under mvn2 is
that its easier to satisy the classpath requirements by the dependency
mechanism which is great. 
Hers my pom which in its present form has only one reportSet defined, I'll
add the others when this goes. At present it doesnt even run the ant task
when I do a mvn site:site. What mods need I make and what mvn command do I
issue to get it to work (I find the build lifecycle very confusing)
TIA
Ken Coveny
pom.xml
http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  
com.uiactive
uiactive
1.2.0-SNAPSHOT
  
  com.uiactive.jrap
  uiactive-jrap-doc
  jar
  4.3-SNAPSHOT
  Remote Server javadoc
  Create the preprocessed javadoc for all jrap server
projects

  
   
scm:perforce://Products/uiActive/Remote/Server/Doc
  


  

  
maven-antrun-plugin

  
midp-source

  



  

  

  

  
  

  com.uiactive.jrap
  uiactive-jrap-common
  4.3-SNAPSHOT


  log4j
  log4j

  


ant build.xml file






   Create javadoc for all the jrap server projects and post on
site 

  

  






  


  




 
   
 
   

 
 
   
 
   

 
 
   
 
 
   
 
 
   
   
 
 MIDP JRAP API v${midp.version}
   Copyright © 2006 uiActive. All Rights Reserved.
   
   
   http://java.sun.com/j2se/1.4.2/docs/api/";
packagelistloc="${packlistloc}"/>
   http://www.bullant.com.au/Downloads/HTML/JRAP/JavaDoc/";
packagelistloc="${packlistloc}/jrap"/>
 
   

-- 
View this message in context: 
http://www.nabble.com/I-want-a-project-that-JUST-does-reporting-and-creates-a-site-tf3589037s177.html#a10029886
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: What causes release:prepare to re-download

2007-04-16 Thread Jörg Schaible
Pankaj Tandon wrote on Monday, April 16, 2007 8:33 PM:

> Hi all,
> We've been using mvn release:prepare/perform for several
> months now on our
> build machine. Today, however issuing
> mvn release:prepare caused a LOT of files to be downloaded
> into our local
> repository. What caused this at the command was invoked with
> no explicit
> instructions to look for updates?
> Here is the output of that command.
> I suspect that this download has caused a subsequent mvn site
> command to
> break. But before I fix thatI need to understand what prompts Maven to
> download artifacts without explicitly asking for them?

The update is triggered by the "updatePolicy" element of a pluginRepository 
definition (settings.xml and/or pom.xml).
http://maven.apache.org/pom.html#plugin_repositories. If maven is started it 
takes all defined plugin repositories into account and looks for updates 
according the settings.

Best way to prevent such surprises is the usage of version tags for the plugins.

- Jörg

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



Maven jetty j_security_check

2007-04-16 Thread Mateusz Kaduk
Hi,

How to enable j_security_check, container based authorization in jetty.
I use jetty 6.1 however I am getting error that url j_security_check is
not found. Adding to dependencies servlet-api doesnt help.

This works in tomcat, however I would like to use userRealem in
properties file for fast testing and then switch to database.

Is JAAS dependency in pom enough ? If so, how to configure it and where
to create config files ?

For help thanks in advance,
-- 
Mateusz Kaduk <[EMAIL PROTECTED]>


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



Re: maven-eclipse-plugin has problem with muli-project resources

2007-04-16 Thread Barrie Treloar

On 4/17/07, Davis Ford <[EMAIL PROTECTED]> wrote:

Hi, it appears that in order for eclipse to see relative path links
like this, an entry needs to be made to the .project file with the
linkeResources tag.  If you manually add a src folder in eclipse, this
is the change it makes in .project.

Is there some way to cause the maven-eclipse-plugin to do this via the pom.xml?



conf
2
D:/temp/parent/conf




Looking at 
http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html
I can't see how to do this.

However I do know that eclipse:pde does write linkedResources.

I personally do not use a flat structure, I use the hierarchical one.

You might need to describe in more detail what ../conf contains.
If this is a shared configuration, then the usual way to do this is to
create another module project for "conf" and have your projects depend
on "conf" in the pom.xml file.

Then there is no need for eclipse linked resource trickery, everything
is on the classpath.

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



Re: maven-eclipse-plugin has problem with muli-project resources

2007-04-16 Thread Davis Ford

Hi, it appears that in order for eclipse to see relative path links
like this, an entry needs to be made to the .project file with the
linkeResources tag.  If you manually add a src folder in eclipse, this
is the change it makes in .project.

Is there some way to cause the maven-eclipse-plugin to do this via the pom.xml?



conf
2
D:/temp/parent/conf



On 4/17/07, Davis Ford <[EMAIL PROTECTED]> wrote:

It says: Project child is missing required source folder: 'D:/temp/parent/conf'

Try the steps to reproduce it..easy to reproduce.

I think perhaps it has more to do with the eclipse jdt core.  Can it
handle absolute paths?  I've tried editing the .classpath file
manually to make it a relative path -- I really can't seem to make it
work.  BTW: using eclipse 3.2.2.

Any ideas?

Regards,
davis

On 4/16/07, Haim Ashkenazi <[EMAIL PROTECTED]> wrote:
> Davis Ford wrote:
> [ .. ]
> > The .classpath file for the guide-ide-eclipse-site project contains this:
> >
> >  > excluding="**/*.java"/>
> >
> > This seems completely reasonable, and the directory does exist, but
> > eclipse cannot build the projectwhy?
> Hi
>
> I don't work on eclipse usually but when you open a project in eclipse and
> it can't build it it usually show you what's the problem in the "Problems"
> view (I'm not sure it's called like that). when I imported maven project
> into eclipse for the first time it showed an error that the project could
> not be built because I don't have an environment variables
> called "M2_REPOS". what is the error when you open your project?
>
> Bye
> --
> Haim
>




--
Zeno Consulting, Inc.
http://www.zenoconsulting.biz
248.894.4922 phone
313.884.2977 fax

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



Re: maven-eclipse-plugin has problem with muli-project resources

2007-04-16 Thread Davis Ford

It says: Project child is missing required source folder: 'D:/temp/parent/conf'

Try the steps to reproduce it..easy to reproduce.

I think perhaps it has more to do with the eclipse jdt core.  Can it
handle absolute paths?  I've tried editing the .classpath file
manually to make it a relative path -- I really can't seem to make it
work.  BTW: using eclipse 3.2.2.

Any ideas?

Regards,
davis

On 4/16/07, Haim Ashkenazi <[EMAIL PROTECTED]> wrote:

Davis Ford wrote:
[ .. ]
> The .classpath file for the guide-ide-eclipse-site project contains this:
>
>  excluding="**/*.java"/>
>
> This seems completely reasonable, and the directory does exist, but
> eclipse cannot build the projectwhy?
Hi

I don't work on eclipse usually but when you open a project in eclipse and
it can't build it it usually show you what's the problem in the "Problems"
view (I'm not sure it's called like that). when I imported maven project
into eclipse for the first time it showed an error that the project could
not be built because I don't have an environment variables
called "M2_REPOS". what is the error when you open your project?

Bye
--
Haim



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



Re: maven-eclipse-plugin has problem with muli-project resources

2007-04-16 Thread Haim Ashkenazi
Davis Ford wrote:
[ .. ]
> The .classpath file for the guide-ide-eclipse-site project contains this:
> 
>  excluding="**/*.java"/>
> 
> This seems completely reasonable, and the directory does exist, but
> eclipse cannot build the projectwhy?
Hi

I don't work on eclipse usually but when you open a project in eclipse and
it can't build it it usually show you what's the problem in the "Problems"
view (I'm not sure it's called like that). when I imported maven project
into eclipse for the first time it showed an error that the project could
not be built because I don't have an environment variables
called "M2_REPOS". what is the error when you open your project?

Bye
-- 
Haim


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



Re: Maven 2 : eclipse.dependency ??

2007-04-16 Thread Wayne Fay

I am not terribly familiar with M1, so please let me know what exactly
did you use eclipse.dependency for? That is, what do you want to do in
M2?

Wayne

On 4/16/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote:

eclipse.dependency

 is only in Maven1.x what is the equivalent on Maven2.x

thx



---

Merouane AMRAOUI
Consultant Expert
Division Développement
Email.: [EMAIL PROTECTED]

Gsm  .: 065 19 60 99
Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
OMNIDATA , 74 Bv AbdelMoumen






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



maven-eclipse-plugin has problem with muli-project resources

2007-04-16 Thread Davis Ford

Hi, I posted on this earlier, but it fell on deaf ears, I guess.
Here's a concrete example of the problem I'm experiencing.  I followed
the directions for the maven-eclipse-plugin on generating a multiple
module project, as described here ->
http://maven.apache.org/plugins/maven-eclipse-plugin/reactor.html

[I tried attaching a .zip of this simple example, but it bounced]

This problem is easily reproduced.  I really welcome any clue on how
to workaround it.  How to reproduce:

1. D:\temp>mvn archetype:create -DgroupId=guide.ide.eclipse
-DartifactId=guide-ide-eclipse
2. D:\temp>cd guide-ide-eclipse
3. edit pom.xml, change jar to pom
3. D:\temp\guide-ide-eclipse>mvn archetype:create
-DgroupId=guide.ide.eclipse -DartifactId=guide-ide-eclipse-site
4. If you have the latest maven-eclipse-plugin, this should
auto-magically add the  <->  reference between parent
child projects in each respective pom.xml
5. D:\temp\guide-ide-eclipse>mkdir conf
6. D:\temp\guide-ide-eclipse>cd guide-ide-eclipse-site
7. edit the pom.xml of guide-ide-eclipse-site and add the following
between :
 

   
  ../conf
   

 
8. D:\temp\guide-ide-eclipse>cd guide-ide-eclipse-site
9. D:\temp\guide-ide-eclipse>mvn eclipse:eclipse
10. Try to import either the guide-ide-eclipse or the
guide-ide-eclipse-site project into eclipse.  You will get a build
path error regarding the conf directory.

The .classpath file for the guide-ide-eclipse-site project contains this:



This seems completely reasonable, and the directory does exist, but
eclipse cannot build the projectwhy?

Thanks in advance,

Davis

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



RE: Error in maven-dependency:copy

2007-04-16 Thread Brian E. Fox
You're making progress. The message now says maven-dependency-plugin not 
dependency-maven-plugin like your first error. I suspect that your problem is 
now the same as described in the faq: 
http://maven.apache.org/plugins/maven-dependency-plugin/faq.html

Specifically, you must remove your configuration of the artifactItems from the 
 tag. (the faq has a link to the proper configuration sample)

-Original Message-
From: Herve Chang [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 16, 2007 10:38 AM
To: Maven Users List; Brian E. Fox
Subject: Re: Error in maven-dependency:copy

Hello Brian,

Thanks for helping but the problem still remains...

I've removed:
- all metadata files in /org/codehaus/mojo of my local repository ,
- maven-dependency-plugin and dependency-maven-plugin directories in 
/org/codehaus/mojo
- and also \org\apache\maven\plugins\maven-dependency-plugin

I'm also using maven-dependency-plugin version 2.0-alpha-4 as stated in 
my pom.xml and the error message below.

Do you have any others idea?

PS: I can't find any 2.0.7 version of maven-dependency-plugin, what do 
you mean by 2.0.7 ? Am I misunderstanding sth. about the management of 
this plugin version ?

Thanks,
Hervé



[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] One or more required plugin parameters are invalid/missing for 
'dependency:copy'

[0] inside the definition for plugin: 'maven-dependency-plugin'specify 
the following:


   ...
   VALUE
.

[INFO] 

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error 
configuring: org.apache.maven.plugins:maven-dependency-plugin. Reason: 
Invalid or missing parameters: [Mojo parameter [name: 'artifactItems'; 
alias: 'null']] for mojo: 
org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:copy
 at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:568)
 at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
 at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
 at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
 at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
 at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginParameterException: Error 
configuring: org.apache.maven.plugins:maven-dependency-plugin. Reason: 
Invalid or missing parameters: [Mojo parameter [name: 'artifactItems'; 
alias: 'null']] for mojo: 
org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:copy
 at 
org.apache.maven.plugin.DefaultPluginManager.checkRequiredParameters(DefaultPluginManager.java:907)
 at 
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:612)
 at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:421)
 at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
 ... 16 more
[INFO] 






Brian E. Fox a écrit :
> Somehow you are getting the old dependency-maven-plugin instead of the 
> maven-dependency-plugin. Clear the /org/codehaus/mojo metadata from your 
> local repo (and any internal proxies you have) and try again. This is already 
> fixed for 2.0.7doesn't help you now though ;-)
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Monday, April 16, 2007 4:08 AM
> To: users@maven.apache.org
> Subject: Error in maven-dependency:copy
> 
> Hello,
> 
> I'm trying to copy some specific artifacts using the 
> maven-dependency-plugin (copy goal)

Re: Core Module - Customer spcific Module. How to set up in Maven2?

2007-04-16 Thread Maria Odea Ching

Hi Santonian,

I don't think using project inheritance for the core module and the 
customer specific modules is the right way.
What I suggest is you can have the core module as a separate project and 
have each of the customer-specific modules as separate projects as well. 
Then just set the core module as a dependency of these customer-specific 
projects.


Hope this helps! :-)

Thanks,
Deng

Santonian wrote:

Hello there,

I am working with maven some time now but have not the most experince with
the configuartion of it. 
I have the following problem to solve and I dont know exactly how to do it.

I read about project inheritance, but I am not sure if thats the right thing
for me.

This is what I am trying to achive:

We have an application that mainly uses Spring MVC and Freemarker. Rigth now
for each customer we have a seperate project because the requirements of
each customer are quite diffrent.

Now we want to refactor our application, so that we can have a core module
and an individual module for each customer. The individual modules must be
able to inherith classes of the core module. Changed made to the core module
should be reflected by all customer specific modules.

How can I do that? Is Project Inheritance the right thing for me? Can I have
the core part and the customer parts all in the same project or do I have to
have a seperate project for all customers?

Any tips and links are greatly apreciated.

cheers 
Santo
  



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



Re: How set property from parent pom.xml in child pom.xml

2007-04-16 Thread Maria Odea Ching

Hi,

I don't think you can do that in maven. AFAIK, properties are not 
inherited from the parent pom

and you cannot also do the other way around (child to parent).

Thanks,
Deng

Depthblue wrote:

Hi,

I have one parent.pom with list of properties




4.0.0
pom
WebAd
0.0.1
   .


${project.version}
${basedir}
${rootDirectory}/src
${rootDirectory}/test
${testDirectory}/resources





And I have second child pom.xml. I can read property ${myVersion} in this
pom. But I would want to set this property in this (child) pom.xml and then
I would want to read this changed property in parent pom.xml.

How can i do this?

Thans Tomas
  



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



Re: Team management : How to manage local repository ? best practice ?

2007-04-16 Thread Henry S. Isidro
Hi,

The best is to use a repository proxy. This proxy should be in a machine that 
has access to the internet so that it can pull artifacts from the central 
remote repository or any other repository. Your devs would then use this 
proxy (which should be accessible in your lan) to get their dependencies 
from.  Archiva allows you to set up a proxy repository as well as manage it. 
Check it out.

HTH,
Henry

On Tuesday, April 17, 2007 04:01, Marouane Amraoui wrote:
> Imagine this situation :
>
>
>
> 1.I have developer team .
> 2.the developer's computer dont  have access to internet (so no access to
> remote repository maven) 3.   How can I manage the dependencies in this
> situation ?
>
>   a.  If I use local repository , if developer add a new dependency 
> to the
> project , how can he put this dependency in the local repository ? b. When
> I commit my project into svn, there is a way to verify if all new
> dependencies are in the local repository or not ?  I don't want to commit
> changes in SVN if some dependencies are not
>
> Available in the local repository ...
>
> 4.there are some bests practice in managing local repository.
>
>
>
> Thx for your help .
>
>
>
>
>
> ---
>
> Merouane AMRAOUI
> Consultant Expert
> Division Développement
> Email.: [EMAIL PROTECTED]
>
> Gsm  .: 065 19 60 99
> Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
> OMNIDATA , 74 Bv AbdelMoumen
>
>
>
>
>
> !DSPAM:546,4623d6f1264901222944467!

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



[m2] variable for ${site-home-dir} ???

2007-04-16 Thread Mick Knutson

I am trying to create some menu items that have reference to the root
document location so that when I navigate to sub-modules, those references
are still valid.

--
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---


Re: [m2] converting from intelliJ project to Eclipse project

2007-04-16 Thread Mark Derricutt

On 4/17/07, Dave Levitt <[EMAIL PROTECTED]> wrote:



The Current Idea EAP [7.0M1] is supposed to include upgraded tools for
syncing Eclipse workspaces and Idea projects [or you could just use
POM's for the real project definition, and generate the Idea or
Eclipse IDE files]



When you view the module in IDEA theres a combo selection for using eclipse
modules and your .iml becomes a .classpath.xml file.


Maven 2 : eclipse.dependency ??

2007-04-16 Thread Marouane Amraoui
eclipse.dependency

 is only in Maven1.x what is the equivalent on Maven2.x

thx

 

---

Merouane AMRAOUI
Consultant Expert
Division Développement
Email.: [EMAIL PROTECTED]

Gsm  .: 065 19 60 99   
Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
OMNIDATA , 74 Bv AbdelMoumen

 



Re: M2 enforcer plugin 1.0-alpha-2

2007-04-16 Thread Ian Springer

My bad. Thanks!

Jerome Lacoste wrote:

On 4/16/07, Ian Springer <[EMAIL PROTECTED]> wrote:

Would someone please upload alpha-2 to the snapshots repo?

http://people.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-enforcer-plugin/ 



alpha-2 is a release not a snapshot.

You will find it under:

http://ibiblio.org/maven2/org/apache/maven/plugins/maven-enforcer-plugin/

-
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: Cannot run changelog command

2007-04-16 Thread Pankaj Tandon

Hi,
Actually the scm section looks fine. I've inluded my pom at the bottom.
Another indication that my scm section is good is that mvn release:prepare
works just fine and does produce me a new release in my scm.
I even removed my local repository and then tried a mvn site.. still same
error.
Note, I get: "No such provider '' below.
Even more strange.. I haven't changed a line of code since the time this was
working!
Like I said earlier, I did get a bunch of updates whenI did a mvn
release:prepare earlier today (why that happenned when no updates were
requested is a mystery and posted seperately)
Any pointers will be much appreciated.

Thanks
Pankaj

http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
  4.0.0
  com.mathwiz
  mathwiz
  jar
  1.3-SNAPSHOT
  Mathwiz
  http://some.com
  
file:///D:/reposA/mwmA/trunk 
file:///D:/reposA/mwmA/trunk 
scm:svn:file:///D:/reposA/mwmA/trunk

  
  

  junit
  junit
  3.8.1
  test


  jfreechart
  jfreechart
  0.9.16
  

  jfree
  jcommon
  0.9.6
  
  
  
  
  
  
maven-release-plugin

  
file:///D:/reposA/mwmA/tags
  

  



  
src/main/resources
true
  

  
  
  

  
org.apache.maven.plugins
maven-changelog-plugin
  

  
  
  



dennisl-2 wrote:
> 
>  From the look of things, I'd say that your scm section is either wrong 
> or completely missing from the pom.xml file.
> 
> Pankaj Tandon wrote:
>> Hi,
>> We were running the changelog plugin correctly until last week and this
>> moring, a mvn release:prepare execution caused a bunch of downloads into
>> the
>> maven repository. 
>> 
>> Now a mvn site -e yields the below. (This was working fine till Friday!)
>> Any pointers are appreciated.
>> Thanks
>> Pankaj
>> 
>> 
>> [INFO]task-segment: [site]
>> [INFO]
>> -
>> ---
>> [INFO] Setting property: classpath.resource.loader.class =>
>> 'org.codehaus.plexus
>> .velocity.ContextClassLoaderResourceLoader'.
>> [INFO] Setting property: velocimacro.messages.on => 'false'.
>> [INFO] Setting property: resource.loader => 'classpath'.
>> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
>> [INFO] Setting property: classpath.resource.loader.class =>
>> 'org.codehaus.plexus
>> .velocity.ContextClassLoaderResourceLoader'.
>> [INFO] Setting property: velocimacro.messages.on => 'false'.
>> [INFO] Setting property: resource.loader => 'classpath'.
>> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
>> [INFO] [site:site]
>> [INFO] Generate "Change Log" report.
>> [INFO] Generating changed sets xml to:
>> D:\projects\mwmA\target\changelog.xml
>> [INFO]
>> 
>> [ERROR] BUILD ERROR
>> [INFO]
>> 
>> [INFO] Error during page generation
>> 
>> Embedded error: Error rendering Maven report: Cannot run changelog
>> command :
>> No such provider: ''.
>> [INFO]
>> 
>> [INFO] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: Error during page
>> genera
>> tion
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> ultLifecycleExecutor.java:559)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>> fecycle(DefaultLifecycleExecutor.java:475)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>> ltLifecycleExecutor.java:454)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>> dleFailures(DefaultLifecycleExecutor.java:306)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>> ts(DefaultLifecycleExecutor.java:273)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>> fecycleExecutor.java:140)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>   

Re: Using MavenProjectBuilder from inside of a mojo?

2007-04-16 Thread John Casey

you could leave it null, it should compensate for that.

On 4/16/07, Matthew Beermann <[EMAIL PROTECTED]> wrote:


Hey all, I'm trying to write a mojo that reads in POMs from a remote
location and does some checking on them. To get a MavenProject out of a POM
file, I need to use the MavenProjectBuilder, so far as I can tell. (It seems
silly to use a MavenEmbedder when I'm already in Maven!)

Trouble is, MavenProjectBuilder requires a ProfileManager, and I can't
figure out how to get my hands on one. It's not a @component, nor does it
seem to be a built-in ${parameter}. True, I could construct a
DefaultProfileManager, but I can't do that without a PlexusContainer, and I
can't figure out how to get my hands on one of those, either.

Help! What am I doing wrong here? How do I get my hands on instances of
these classes?

Thanks,
--Matthew

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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




Re: Team management : How to manage local repository ? best practice ?

2007-04-16 Thread Dave Levitt

Taking things out of order

For 3a, mvn:install should suffice to install [tested, approved]
artifacts into the local repository. For control purposes, the normal
sort of filesystem/ftp access controls [or whatever controls are
available on a repository  proxy server]

For 3b, assume a Continuous Integration server, capable of interacting
with svn as a 'pre-commit' hook script. The CI builder will have
access only to a designated set of repository artifacts. [the
'approved' set] If the target cannot be built / fails testing then the
commit is rolled back, and the CI server notifies its designated list
[the commiter, project manager...]

On 4/16/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote:

Imagine this situation :



1.  I have developer team .
2.  the developer's computer dont  have access to internet (so no access to 
remote repository maven)
3.  How can I manage the dependencies in this situation ?

a.  If I use local repository , if developer add a new dependency 
to the project , how can he put this dependency in the local repository ?
b.  When I commit my project into svn, there is a way to verify if 
all new dependencies are in the local repository or not ?  I don't want to 
commit changes in SVN if some dependencies are not

Available in the local repository ...

4.  there are some bests practice in managing local repository.



Thx for your help .





---

Merouane AMRAOUI
Consultant Expert
Division Développement
Email.: [EMAIL PROTECTED]

Gsm  .: 065 19 60 99
Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
OMNIDATA , 74 Bv AbdelMoumen






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



Re: [m2] converting from intelliJ project to Eclipse project

2007-04-16 Thread Dave Levitt

As far as I can tell, the Eclipse 'workspace' is quite flat, and does
not allow nesting of modules/projects [I don't have MyEclipse, so I
don't know if that bypasses that part of Eclipse's fundamental
design].

The Current Idea EAP [7.0M1] is supposed to include upgraded tools for
syncing Eclipse workspaces and Idea projects [or you could just use
POM's for the real project definition, and generate the Idea or
Eclipse IDE files]

On 4/16/07, Mick Knutson <[EMAIL PROTECTED]> wrote:

I am using IntelliJ with several modules as I have in my Maven build. I am
trying to get a project that is similar to that in MyEclipse, but I still
seem to get the flattened src view of all directories that contain src or
tests.

Does eclipse support grouping of modules like IntelliJ does? Or will I
always have each directory under root?
I seem to have the separate directory trees (./common/utilities/src/**) at
the bottom of the Package Explorer, but it is way at the bottom, and
confusing to me why I would see both.


--
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---



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



Re: Is there a "mvn" command to clean the local repo?

2007-04-16 Thread Baz

Yeah thats what i am doing right now :p

Thanks.

A.

On 4/16/07, Davis Ford <[EMAIL PROTECTED]> wrote:

well...you can do it the quick-n-dirty way, and just manually delete
everything under .m2/repository/com/* (or subdirs that you want to refresh)

--davis


On 4/16/07, Baz <[EMAIL PROTECTED]> wrote:
>
> Davis,
>
> Thanks for replying.
>
> After I reviewed the webpage, I wonder how i can delete/refresh one
> single directory... for example, "com" directory under the local repo.
> There is only "exclude" but no "include".
>
> B.
>
> On 4/16/07, Davis Ford <[EMAIL PROTECTED]> wrote:
> > http://maven.apache.org/plugins/maven-dependency-plugin/index.html
> >
> > see purge-local-repository goal
> >
> >
> >
> > On 4/16/07, Baz <[EMAIL PROTECTED]> wrote:
> > >
> > > All,
> > >
> > > Is there a mvn command that clean the local repo?
> > >
> > > Thanks.
> > >
> > > B.
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Zeno Consulting, Inc.
> > http://www.zenoconsulting.biz
> > 248.894.4922 phone
> > 313.884.2977 fax
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Zeno Consulting, Inc.
http://www.zenoconsulting.biz
248.894.4922 phone
313.884.2977 fax



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



Re: Is there a "mvn" command to clean the local repo?

2007-04-16 Thread Tomasz Pik

On 4/16/07, Baz <[EMAIL PROTECTED]> wrote:

Davis,

Thanks for replying.

After I reviewed the webpage, I wonder how i can delete/refresh one
single directory... for example, "com" directory under the local repo.
There is only "exclude" but no "include".


With purge-local-repository goal you may refresh (delete and then
download) dependencies for your project (including transitive
dependencies). With resolutionFuzziness you may also 'expand'
'scope' of deletion (see
http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html#resolutionFuzziness).
But this will work only for dependencies listed in your project (pom.xml).
So - it's not designed for removing 'whole repository' but only for those
parts of repository, which are required for your project.
And that's why there's no 'include' - you're 'including artifacts
for deletion' by adding them as dependencies to your project...
For removing whole 'com' tree in local repo simple filesystem operation
will work better IMHO.

Regards,
Tomek



B.

On 4/16/07, Davis Ford <[EMAIL PROTECTED]> wrote:
> http://maven.apache.org/plugins/maven-dependency-plugin/index.html
>
> see purge-local-repository goal
>
>
>
> On 4/16/07, Baz <[EMAIL PROTECTED]> wrote:
> >
> > All,
> >
> > Is there a mvn command that clean the local repo?
> >
> > Thanks.
> >
> > B.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Zeno Consulting, Inc.
> http://www.zenoconsulting.biz
> 248.894.4922 phone
> 313.884.2977 fax
>

-
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: Maven site-plugin

2007-04-16 Thread Dennis Lundberg
If you want to try the latest unreleased version of a plugin you should 
read this page:


http://maven.apache.org/guides/development/guide-testing-development-plugins.html

[EMAIL PROTECTED] wrote:

Hi,

at the maven repository is still the version 2.0-beta-5 available only.
Where could I get the fixed plugin or when will be the release of
2.0-beta-6 ?

Regards
Andre Sudhoff

[EMAIL PROTECTED] wrote:
I looked at the code of the site plugin and it seems this is a bug in 
maven-site-plugin as published but solved in the trunk of the source 
code [MSITE-91].


Hth,

Nick Stolwijk

[EMAIL PROTECTED] wrote:

Hi,

I've tried to move the "src/site" directory to "site/src/site" using


org.apache.maven.plugins
maven-site-plugin

${basedir}/site/src/site



When I create the site all resources from the subdirectories (apt,

fml, xdoc) except

the "site.xml" (.../site/src/site/site.xml) are used.
If I put the "site.xml" to the src/site directory all works fine.

Could anybody help

me why the site descriptor is not taken from the
configured site directory ".../site/src/site" ?

Regards
Andre Sudhoff



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





--
Dennis Lundberg

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



Re: Applet with maven 2

2007-04-16 Thread Dennis Lundberg
That's how I would do it, but I'd make the applet jar a dependency in 
the war project, because it is a dependency. But you don't want the 
applet jar in the WEB-INF/lib directory of your webapp, because then it 
can't be reached directly by the user's browser. Instead you want it to 
be copied to the directory above WEB-INF. You could probably use the 
antrun-plugin to copy the applet jar from WEB-INF/lib to it's correct place.


Henri Tremblay wrote:

Hello everyone,

I'm trying to do something that I think is quite common but can't find an
easy way to do it. Here's how it goes:

I have a war that basically contains nothing except a jar which contains an
applet. The applet jar is for performance reason an ueber jar.

How would you do something like this?

My current solution is to have a jar project that creates  and ueber jar 
and
then a war project that includes the ueber jar by referencing it 
directly as

a ressource (since I don't think it can be a dependency).

Thanks a lot,
Henri




--
Dennis Lundberg

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



Re: Cannot run changelog command

2007-04-16 Thread Dennis Lundberg
From the look of things, I'd say that your scm section is either wrong 
or completely missing from the pom.xml file.


Pankaj Tandon wrote:

Hi,
We were running the changelog plugin correctly until last week and this
moring, a mvn release:prepare execution caused a bunch of downloads into the
maven repository. 


Now a mvn site -e yields the below. (This was working fine till Friday!)
Any pointers are appreciated.
Thanks
Pankaj


[INFO]task-segment: [site]
[INFO]
-
---
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [site:site]
[INFO] Generate "Change Log" report.
[INFO] Generating changed sets xml to: D:\projects\mwmA\target\changelog.xml
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error during page generation

Embedded error: Error rendering Maven report: Cannot run changelog command :
No such provider: ''.
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error during page
genera
tion
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error during page
gen
eration
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:97)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
... 16 more
Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error
renderin
g Maven report: Cannot run changelog command :
at
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(R
eportDocumentRenderer.java:71)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(
DefaultSiteRenderer.java:239)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(Defaul
tSiteRenderer.java:115)
at
org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124
)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
... 18 more
Caused by: org.apache.maven.reporting.MavenReportException: Cannot run
changelog
 command :
at
org.apache.maven.plugin.changelog.ChangeLogReport.generateChangeSetsF
romSCM(ChangeLogReport.java:500)
at
org.apache.maven.plugin.changelog.ChangeLogReport.getChangedSets(Chan
geLogReport.java:349)
at
org.apache.maven.plugin.changelog.ChangeLogReport.executeReport(Chang
eLogReport.java:296)
at
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMaven
Report.java:98)
at
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(R
eportDocumentRenderer.java:67)
... 22 

RE: Maven : Automate the import of generated eclipse project to the eclipse ?

2007-04-16 Thread Marouane Amraoui
Ok thx.
So i explain my purpose :

1. in my workspace eclipse I don't have any project (no project in my 
workspace).
2. I launche from .bat file as external tools on my current workspace :
   call mvn archetype:create -DgroupId=%1 -DartifactId=%2
   call mvn eclipse:eclipse.
3. when the project is generated in my workspace elcipse
4. I do refresh (without selecting any project, because I don't have any 
project in my eclipse view)
5. the project generated don't appeare on eclipse view.
6. so I must go File--> import. !!! :(


So I think there is no way to do that from maven, I think I must khnow the 
eclipse api in order to do this.




-Message d'origine-
De : Davis Ford [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 16 avril 2007 20:01
À : Maven Users List
Objet : Re: Maven : Automate the import of generated eclipse project to the 
eclipse ?

marouane - try the following:

mvn eclipse:clean eclipse:eclipse

then right-click the project in eclipse and choose refresh (or F5).  running
the mvn commands re-generates the .classpath, .project, and .settings files
in the project dir, but eclipse does not scan for changes, so you have to
force a refresh each time in the IDE.


On 4/16/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote:
>
> Thx for reply.
>
> I generate project in the current workspace but it does'not refresh
> himself.
>
> -Message d'origine-
> De: Phill Moran [mailto:[EMAIL PROTECTED]
> Envoyé: lundi 16 avril 2007 19:09
> À: 'Maven Users List'
> Objet: RE: Maven : Automate the import of generated eclipse project to the
> eclipse ?
>
> You could execute the eclipse:eclipse using external tools but I think
> (not
> sure) you would have to do this in your current workspace to have it
> refresh
>
> -Original Message-
> From: Marouane Amraoui [mailto:[EMAIL PROTECTED]
> Sent: April 16, 2007 3:03 PM
> To: Maven Users List
> Subject: Maven : Automate the import of generated eclipse project to the
> eclipse
> ?
>
>
>
> I generate my structure of eclipse project from maven.
>
>
>
> I make a  .bat file for that purpose. And I used it as an external tools
> in
> eclipse.
>
>
>
> When I execute this bat it generate me in  the workspace of eclipse my
> multiproject structure . after that I must to go to the  File --> Import
> in
> order to make there visible
>
> In the eclipse. So my question there is something that can help me to
> automate
> this step too. ie : I execute my external tools , it generate me my
> structure
> project and  appear immediately
>
> In the eclipse, don't need to import them manually  :-) ???
>
>
>
> Maven can give me this features or I need to explore eclipse api ?
>
>
>
> Thx
>
>
>
> ---
>
> Merouane AMRAOUI
> Consultant Expert
> Division Développement
> Email.: [EMAIL PROTECTED]
>
> Gsm  .: 065 19 60 99
> Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70 OMNIDATA , 74 Bv
> AbdelMoumen
>
>
>
>
>
> -
> 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]
>
>


-- 
Zeno Consulting, Inc.
http://www.zenoconsulting.biz
248.894.4922 phone
313.884.2977 fax

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



Re: Release Notes generation

2007-04-16 Thread Dennis Lundberg
This is the plugin that produces a release notes from JIRA. Not all 
features are fully documented yet, one of the reasons it's still a beta 
release.


There are several configuration options mentioned in the goals page:


http://maven.apache.org/plugins/maven-changes-plugin/jira-report-mojo.html

Perhaps they can be of help...

William Ferguson wrote:

But how do you get issues grouped by released version?
Maven-changes-plugin provides a great list of issues for the projects,
filtered by different criteria.
So it could provide all open issues for instance.

Maybe I'm missing something, but this isn't what you want for release
notes.
ReleaseNotes should contain all the resolved issues, grouped by released
version, ordered from most recent to least recent. It might also contain
a list of open issues.

The maven-changes-plugin change:jira-report looks like it is retrieving
enough information to do this, but I can't see how to configure it to
produce release notes. Can anyone tell me?

Alternatively, is there a plugin that does produce release notes (from
JIRA).

William 


-Original Message-
From: Dennis Lundberg [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 15 April 2007 6:46 AM

To: Maven Users List
Subject: Re: Release Notes generation

That'd be the maven-changes-plugin then:

   http://maven.apache.org/plugins/maven-changes-plugin/

Pankaj Tandon wrote:

Thanks Dennis,
That was really helpful.
However, is there a report plugin that produces "release notes" as 
against a change log.
Actually, I've seen the report such a plugin produces on the site of 
one of the maven projects (maybe one of the plugins). I just can't 
seem to find it now. The report has a bugs, enhancements, wishlist and


a features section, all broken out by release. This changelog plugin 
doesn't seem to produce this kind of report.


Ofcourse, we are using the maven-release-plugin to produce the

releases.

Any suggestions what plugin produces that report?

Thanks,
Pankaj


dennisl-2 wrote:

Pankaj Tandon wrote:

Hello,
I'd like to generate release notes as a part of my mvn site command.
If I annotate the site.xml with the following:


  
  
  
  
  
  


It certainly creates the menu correctly.
However, where is the plugin that will actually create the 
release-notes.html?
I tried project-info-reports:scm but that looks like a dead-end to 
me as far as release note generation goes.


Any help is appreciated.

Thanks
Pankaj

You might be looking for maven-changelog-plugin:

   http://maven.apache.org/plugins/maven-changelog-plugin/


--
Dennis Lundberg

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






--
Dennis Lundberg

-
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]





--
Dennis Lundberg

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



Re: Goal

2007-04-16 Thread Edwin Punzalan

Maybe this is a good chance to set: testFailureIgnore to true.

See
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#testFailureIgnore


On 4/16/07, Mario Roman <[EMAIL PROTECTED]> wrote:


Hi all,
I using Maven2 with Vulcan (http://code.google.com/p/vulcan/). I want
to run my project test and generate the surefire report, so I configured
Vulcan to run de following goals

- test surefire:report

this works fine if no test fail, but if a test fail then the
surefire:report
goal do not execute. So I don´t get the reports.

If I configure the goal just with

- surefire:report

The goal executes ok, so Vulcan puts a big "Pass" (the test fail, but the
reports are generated :P ).
What I want, is to generate my test reports always (no matter if the fail
or
not), but to inform the real state of my test.

Does anyone can help me?

bye.



Re: Release Notes generation

2007-04-16 Thread Dennis Lundberg
OK, the one you want is maven-changelog-plugin. Please see the 
documentation and pictures at this page:


  http://maven.apache.org/plugins/maven-changelog-plugin/usage.html

The changelog:changelog goal shows the commit messages. If all your 
releases are tagged then you should configure the plugin like this:



http://maven.apache.org/plugins/maven-changelog-plugin/examples/configuration-tag-type.html

Pankaj Tandon wrote:

Hi,
Yes.. what I am looking for is a list of all the comments entered (at
checkin time) into my scm (SVN, in my case) broken down by release.
I haven't really tried either of these solutions yet, but looking at the
documentation of these 2 plugins, I think I am looking for something
inbetween:
maven-changelog-plugin
maven-changes-plugin

The first produces a list of file that have changed (albeit by release) but,
atleast as per documentation, does not give me the svn log output. That is,
it does not show me the user comments entered at commit time.
The second goes against JIRA or a manually edited (or programatically
generated) changes.xml.

What I need is the svn log output (nicely formatted, ofcourse ;)) from
release 1.n to 1.m
I would use this for my release notes link and it would be a great feature
if I could email this list to a distribution list.
I'd love to enhance the existing plugin to do this but the article here
scared me !
http://www.oreillynet.com/onjava/blog/2006/03/maven_project_info_reports_con.html

Thanks,
Pankaj

William Ferguson-6 wrote:

But how do you get issues grouped by released version?
Maven-changes-plugin provides a great list of issues for the projects,
filtered by different criteria.
So it could provide all open issues for instance.

Maybe I'm missing something, but this isn't what you want for release
notes.
ReleaseNotes should contain all the resolved issues, grouped by released
version, ordered from most recent to least recent. It might also contain
a list of open issues.

The maven-changes-plugin change:jira-report looks like it is retrieving
enough information to do this, but I can't see how to configure it to
produce release notes. Can anyone tell me?

Alternatively, is there a plugin that does produce release notes (from
JIRA).

William 


-Original Message-
From: Dennis Lundberg [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 15 April 2007 6:46 AM

To: Maven Users List
Subject: Re: Release Notes generation

That'd be the maven-changes-plugin then:

   http://maven.apache.org/plugins/maven-changes-plugin/

Pankaj Tandon wrote:

Thanks Dennis,
That was really helpful.
However, is there a report plugin that produces "release notes" as 
against a change log.
Actually, I've seen the report such a plugin produces on the site of 
one of the maven projects (maybe one of the plugins). I just can't 
seem to find it now. The report has a bugs, enhancements, wishlist and
a features section, all broken out by release. This changelog plugin 
doesn't seem to produce this kind of report.


Ofcourse, we are using the maven-release-plugin to produce the

releases.

Any suggestions what plugin produces that report?

Thanks,
Pankaj


dennisl-2 wrote:

Pankaj Tandon wrote:

Hello,
I'd like to generate release notes as a part of my mvn site command.
If I annotate the site.xml with the following:


  
  
  
  
  
  


It certainly creates the menu correctly.
However, where is the plugin that will actually create the 
release-notes.html?
I tried project-info-reports:scm but that looks like a dead-end to 
me as far as release note generation goes.


Any help is appreciated.

Thanks
Pankaj

You might be looking for maven-changelog-plugin:

   http://maven.apache.org/plugins/maven-changelog-plugin/


--
Dennis Lundberg

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





--
Dennis Lundberg

-
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]








--
Dennis Lundberg

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



Applet with maven 2

2007-04-16 Thread Henri Tremblay

Hello everyone,

I'm trying to do something that I think is quite common but can't find an
easy way to do it. Here's how it goes:

I have a war that basically contains nothing except a jar which contains an
applet. The applet jar is for performance reason an ueber jar.

How would you do something like this?

My current solution is to have a jar project that creates  and ueber jar and
then a war project that includes the ueber jar by referencing it directly as
a ressource (since I don't think it can be a dependency).

Thanks a lot,
Henri


Re: M2 enforcer plugin 1.0-alpha-2

2007-04-16 Thread Jerome Lacoste

On 4/16/07, Ian Springer <[EMAIL PROTECTED]> wrote:

Would someone please upload alpha-2 to the snapshots repo?

http://people.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-enforcer-plugin/


alpha-2 is a release not a snapshot.

You will find it under:

http://ibiblio.org/maven2/org/apache/maven/plugins/maven-enforcer-plugin/

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



Team management : How to manage local repository ? best practice ?

2007-04-16 Thread Marouane Amraoui
Imagine this situation :

 

1.  I have developer team .
2.  the developer's computer dont  have access to internet (so no access to 
remote repository maven)
3.  How can I manage the dependencies in this situation ? 

a.  If I use local repository , if developer add a new dependency 
to the project , how can he put this dependency in the local repository ?
b.  When I commit my project into svn, there is a way to verify if 
all new dependencies are in the local repository or not ?  I don't want to 
commit changes in SVN if some dependencies are not 

Available in the local repository ...

4.  there are some bests practice in managing local repository. 

 

Thx for your help .

 

 

---

Merouane AMRAOUI
Consultant Expert
Division Développement
Email.: [EMAIL PROTECTED]

Gsm  .: 065 19 60 99   
Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
OMNIDATA , 74 Bv AbdelMoumen

 



Re: Maven : Automate the import of generated eclipse project to the eclipse ?

2007-04-16 Thread Davis Ford

marouane - try the following:

mvn eclipse:clean eclipse:eclipse

then right-click the project in eclipse and choose refresh (or F5).  running
the mvn commands re-generates the .classpath, .project, and .settings files
in the project dir, but eclipse does not scan for changes, so you have to
force a refresh each time in the IDE.


On 4/16/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote:


Thx for reply.

I generate project in the current workspace but it does'not refresh
himself.

-Message d'origine-
De: Phill Moran [mailto:[EMAIL PROTECTED]
Envoyé: lundi 16 avril 2007 19:09
À: 'Maven Users List'
Objet: RE: Maven : Automate the import of generated eclipse project to the
eclipse ?

You could execute the eclipse:eclipse using external tools but I think
(not
sure) you would have to do this in your current workspace to have it
refresh

-Original Message-
From: Marouane Amraoui [mailto:[EMAIL PROTECTED]
Sent: April 16, 2007 3:03 PM
To: Maven Users List
Subject: Maven : Automate the import of generated eclipse project to the
eclipse
?



I generate my structure of eclipse project from maven.



I make a  .bat file for that purpose. And I used it as an external tools
in
eclipse.



When I execute this bat it generate me in  the workspace of eclipse my
multiproject structure . after that I must to go to the  File --> Import
in
order to make there visible

In the eclipse. So my question there is something that can help me to
automate
this step too. ie : I execute my external tools , it generate me my
structure
project and  appear immediately

In the eclipse, don't need to import them manually  :-) ???



Maven can give me this features or I need to explore eclipse api ?



Thx



---

Merouane AMRAOUI
Consultant Expert
Division Développement
Email.: [EMAIL PROTECTED]

Gsm  .: 065 19 60 99
Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70 OMNIDATA , 74 Bv
AbdelMoumen





-
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]





--
Zeno Consulting, Inc.
http://www.zenoconsulting.biz
248.894.4922 phone
313.884.2977 fax


Re: Is there a "mvn" command to clean the local repo?

2007-04-16 Thread Davis Ford

well...you can do it the quick-n-dirty way, and just manually delete
everything under .m2/repository/com/* (or subdirs that you want to refresh)

--davis


On 4/16/07, Baz <[EMAIL PROTECTED]> wrote:


Davis,

Thanks for replying.

After I reviewed the webpage, I wonder how i can delete/refresh one
single directory... for example, "com" directory under the local repo.
There is only "exclude" but no "include".

B.

On 4/16/07, Davis Ford <[EMAIL PROTECTED]> wrote:
> http://maven.apache.org/plugins/maven-dependency-plugin/index.html
>
> see purge-local-repository goal
>
>
>
> On 4/16/07, Baz <[EMAIL PROTECTED]> wrote:
> >
> > All,
> >
> > Is there a mvn command that clean the local repo?
> >
> > Thanks.
> >
> > B.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Zeno Consulting, Inc.
> http://www.zenoconsulting.biz
> 248.894.4922 phone
> 313.884.2977 fax
>

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





--
Zeno Consulting, Inc.
http://www.zenoconsulting.biz
248.894.4922 phone
313.884.2977 fax


Goal

2007-04-16 Thread Mario Roman

Hi all,
I using Maven2 with Vulcan (http://code.google.com/p/vulcan/). I want
to run my project test and generate the surefire report, so I configured
Vulcan to run de following goals

- test surefire:report

this works fine if no test fail, but if a test fail then the surefire:report
goal do not execute. So I don´t get the reports.

If I configure the goal just with

- surefire:report

The goal executes ok, so Vulcan puts a big "Pass" (the test fail, but the
reports are generated :P ).
What I want, is to generate my test reports always (no matter if the fail or
not), but to inform the real state of my test.

Does anyone can help me?

bye.


RE: Maven : Automate the import of generated eclipse project to the eclipse ?

2007-04-16 Thread Marouane Amraoui
Thx for reply.

I generate project in the current workspace but it does'not refresh himself. 

-Message d'origine-
De : Phill Moran [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 16 avril 2007 19:09
À : 'Maven Users List'
Objet : RE: Maven : Automate the import of generated eclipse project to the 
eclipse ?

You could execute the eclipse:eclipse using external tools but I think (not
sure) you would have to do this in your current workspace to have it refresh

-Original Message-
From: Marouane Amraoui [mailto:[EMAIL PROTECTED] 
Sent: April 16, 2007 3:03 PM
To: Maven Users List
Subject: Maven : Automate the import of generated eclipse project to the eclipse
?

 

I generate my structure of eclipse project from maven.

 

I make a  .bat file for that purpose. And I used it as an external tools in
eclipse. 

 

When I execute this bat it generate me in  the workspace of eclipse my
multiproject structure . after that I must to go to the  File --> Import in
order to make there visible

In the eclipse. So my question there is something that can help me to automate
this step too. ie : I execute my external tools , it generate me my structure
project and  appear immediately 

In the eclipse, don't need to import them manually  :-) ???

 

Maven can give me this features or I need to explore eclipse api ? 

 

Thx 

 

---

Merouane AMRAOUI
Consultant Expert
Division Développement
Email.: [EMAIL PROTECTED]

Gsm  .: 065 19 60 99   
Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70 OMNIDATA , 74 Bv AbdelMoumen

 



-
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: Is there a "mvn" command to clean the local repo?

2007-04-16 Thread Wayne Fay

This is a fairly new mojo, so it may not have all the functionality
you require/desire. In that case, you are free to edit the code to add
what you need etc, then contribute it back to Maven so it can be
incorporated in a future release.

Wayne

On 4/16/07, Baz <[EMAIL PROTECTED]> wrote:

Davis,

Thanks for replying.

After I reviewed the webpage, I wonder how i can delete/refresh one
single directory... for example, "com" directory under the local repo.
There is only "exclude" but no "include".

B.

On 4/16/07, Davis Ford <[EMAIL PROTECTED]> wrote:
> http://maven.apache.org/plugins/maven-dependency-plugin/index.html
>
> see purge-local-repository goal
>
>
>
> On 4/16/07, Baz <[EMAIL PROTECTED]> wrote:
> >
> > All,
> >
> > Is there a mvn command that clean the local repo?
> >
> > Thanks.
> >
> > B.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Zeno Consulting, Inc.
> http://www.zenoconsulting.biz
> 248.894.4922 phone
> 313.884.2977 fax
>

-
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] exec-maven-plugin fails because path containing spaces

2007-04-16 Thread Adrian Herscu

Added
C:\DOCUME~1\pm\M2639C~1\REPOSI~1

to the M2 install settings.xml.

But, this may require changes in other machines as well :-(

Phill Moran wrote:

Surround them in quotes or use the dos short for. For instance "program files"
== "progra~1" 


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Herscu
Sent: April 16, 2007 3:07 PM
To: users@maven.apache.org
Subject: [m2] exec-maven-plugin fails because path containing spaces

Hi all,

I am trying to run Ant 1.7 from within Maven 2 using the exec-maven-plugin.

   
 org.codehaus.mojo
 exec-maven-plugin
 
   
 process-test-resources
 
   java
 
   
 
 
   org.apache.tools.ant.Main
   ${basedir}
   
 -buildfile
 ${basedir}/mybuild.xml
   
 
   

It seems that there is a problem with Windows paths containing spaces.
Anyone knows about a decent workaround?

Thanks,
Adrian.

P.S. The error log:[[


BUILD FAILED
java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:842)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:162)
at
org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
at org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)
at org.apache.tools.ant.Project.setAntLib(Project.java:313)
at org.apache.tools.ant.Project.initProperties(Project.java:309)
at org.apache.tools.ant.Project.init(Project.java:295)
at org.apache.tools.ant.Main.runBuild(Main.java:663)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.Main.start(Main.java:161)
at org.apache.tools.ant.Main.main(Main.java:250)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:271)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.URISyntaxException: Illegal character in path at index 18:
file:/C:/Documents and
Settings/pm/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar
at java.net.URI$Parser.fail(URI.java:2816)
at java.net.URI$Parser.checkChars(URI.java:2989)
at java.net.URI$Parser.parseHierarchical(URI.java:3073)
at java.net.URI$Parser.parse(URI.java:3021)
at java.net.URI.(URI.java:578)
at java.net.URI.create(URI.java:840)
... 20 more

Total time: 0 seconds
java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:842)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:162)
at
org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
at org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)
at org.apache.tools.ant.Project.setAntLib(Project.java:313)
at org.apache.tools.ant.Project.initProperties(Project.java:309)
at org.apache.tools.ant.Project.init(Project.java:295)
at org.apache.tools.ant.Main.runBuild(Main.java:663)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.Main.start(Main.java:161)
at org.apache.tools.ant.Main.main(Main.java:250)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:271)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.URISyntaxException: Illegal character in path at index 18:
file:/C:/Documents and
Settings/pm/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar
at java.net.URI$Parser.fail(URI.java:2816)
at java.net.URI$Parser.checkChars(URI.java:2989)
at java.net.URI$Parser.parseHierarchical(URI.java:3073)
at java.

Re: Is there a "mvn" command to clean the local repo?

2007-04-16 Thread Baz

Davis,

Thanks for replying.

After I reviewed the webpage, I wonder how i can delete/refresh one
single directory... for example, "com" directory under the local repo.
There is only "exclude" but no "include".

B.

On 4/16/07, Davis Ford <[EMAIL PROTECTED]> wrote:

http://maven.apache.org/plugins/maven-dependency-plugin/index.html

see purge-local-repository goal



On 4/16/07, Baz <[EMAIL PROTECTED]> wrote:
>
> All,
>
> Is there a mvn command that clean the local repo?
>
> Thanks.
>
> B.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Zeno Consulting, Inc.
http://www.zenoconsulting.biz
248.894.4922 phone
313.884.2977 fax



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



Re: How to run multiple "mvn" commands in a windows bat file?

2007-04-16 Thread Baz

A yes, silly me. I know i should have another top level pom.xml :)

Thanks.

A.

On 4/16/07, David Jackman <[EMAIL PROTECTED]> wrote:

Use "call mvn clean" and "call mvn install".
mvn is a batch file, and Windows transfers processing to a batch file
unless you specify the call command (that calls the batch file then
returns processing back to the calling batch file at the location just
after calling the other batch file).


-Original Message-
From: Baz [mailto:[EMAIL PROTECTED]
Sent: Monday, April 16, 2007 1:06 PM
To: Maven Users List
Subject: How to run multiple "mvn" commands in a windows bat file?

All,

How can i run multiple mvn commands in a windows bat file?

I would like to run "mvn clean", then "mvn install" in directory 1 and
"mvn install" in another directory. However, after the first mvn
command, the script quit. Not sure why.

A.

-
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]



Re: How to run multiple "mvn" commands in a windows bat file?

2007-04-16 Thread Joerg Hohwiller
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> All,
Hi,
> 
> How can i run multiple mvn commands in a windows bat file?
> 
> I would like to run "mvn clean", then "mvn install" in directory 1 and
> "mvn install" in another directory. However, after the first mvn
> command, the script quit. Not sure why.
try "call mvn clean" instead of "mvn clean".
> 
> A.
Regards
  Jörg

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFGI87smPuec2Dcv/8RAjp7AJiB3feP8VlSvz+TMzf2FBhWs3YOAKCaHLsZ
gR/itvuUAph5gi8aF0/5GQ==
=9qVg
-END PGP SIGNATURE-

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



RE: How to run multiple "mvn" commands in a windows bat file?

2007-04-16 Thread David Jackman
Use "call mvn clean" and "call mvn install".
mvn is a batch file, and Windows transfers processing to a batch file
unless you specify the call command (that calls the batch file then
returns processing back to the calling batch file at the location just
after calling the other batch file).


-Original Message-
From: Baz [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 16, 2007 1:06 PM
To: Maven Users List
Subject: How to run multiple "mvn" commands in a windows bat file?

All,

How can i run multiple mvn commands in a windows bat file?

I would like to run "mvn clean", then "mvn install" in directory 1 and
"mvn install" in another directory. However, after the first mvn
command, the script quit. Not sure why.

A.

-
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] exec-maven-plugin fails because path containing spaces

2007-04-16 Thread Phill Moran
Surround them in quotes or use the dos short for. For instance "program files"
== "progra~1" 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Herscu
Sent: April 16, 2007 3:07 PM
To: users@maven.apache.org
Subject: [m2] exec-maven-plugin fails because path containing spaces

Hi all,

I am trying to run Ant 1.7 from within Maven 2 using the exec-maven-plugin.

   
 org.codehaus.mojo
 exec-maven-plugin
 
   
 process-test-resources
 
   java
 
   
 
 
   org.apache.tools.ant.Main
   ${basedir}
   
 -buildfile
 ${basedir}/mybuild.xml
   
 
   

It seems that there is a problem with Windows paths containing spaces.
Anyone knows about a decent workaround?

Thanks,
Adrian.

P.S. The error log:[[


BUILD FAILED
java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:842)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:162)
at
org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
at org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)
at org.apache.tools.ant.Project.setAntLib(Project.java:313)
at org.apache.tools.ant.Project.initProperties(Project.java:309)
at org.apache.tools.ant.Project.init(Project.java:295)
at org.apache.tools.ant.Main.runBuild(Main.java:663)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.Main.start(Main.java:161)
at org.apache.tools.ant.Main.main(Main.java:250)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:271)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.URISyntaxException: Illegal character in path at index 18:
file:/C:/Documents and
Settings/pm/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar
at java.net.URI$Parser.fail(URI.java:2816)
at java.net.URI$Parser.checkChars(URI.java:2989)
at java.net.URI$Parser.parseHierarchical(URI.java:3073)
at java.net.URI$Parser.parse(URI.java:3021)
at java.net.URI.(URI.java:578)
at java.net.URI.create(URI.java:840)
... 20 more

Total time: 0 seconds
java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:842)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:162)
at
org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
at org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)
at org.apache.tools.ant.Project.setAntLib(Project.java:313)
at org.apache.tools.ant.Project.initProperties(Project.java:309)
at org.apache.tools.ant.Project.init(Project.java:295)
at org.apache.tools.ant.Main.runBuild(Main.java:663)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.Main.start(Main.java:161)
at org.apache.tools.ant.Main.main(Main.java:250)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:271)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.URISyntaxException: Illegal character in path at index 18:
file:/C:/Documents and
Settings/pm/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar
at java.net.URI$Parser.fail(URI.java:2816)
at java.net.URI$Parser.checkChars(URI.java:2989)
at java.net.URI$Parser.parseHierarchical(URI.java:3073)
at java.net.URI$Parser.parse(URI.java:3021)
at java.net.URI.(URI.java:578)
at java.net.URI.create(URI.java:840)
... 20 more


--

RE: Maven : Automate the import of generated eclipse project to the eclipse ?

2007-04-16 Thread Phill Moran
You could execute the eclipse:eclipse using external tools but I think (not
sure) you would have to do this in your current workspace to have it refresh

-Original Message-
From: Marouane Amraoui [mailto:[EMAIL PROTECTED] 
Sent: April 16, 2007 3:03 PM
To: Maven Users List
Subject: Maven : Automate the import of generated eclipse project to the eclipse
?

 

I generate my structure of eclipse project from maven.

 

I make a  .bat file for that purpose. And I used it as an external tools in
eclipse. 

 

When I execute this bat it generate me in  the workspace of eclipse my
multiproject structure . after that I must to go to the  File --> Import in
order to make there visible

In the eclipse. So my question there is something that can help me to automate
this step too. ie : I execute my external tools , it generate me my structure
project and  appear immediately 

In the eclipse, don't need to import them manually  :-) ???

 

Maven can give me this features or I need to explore eclipse api ? 

 

Thx 

 

---

Merouane AMRAOUI
Consultant Expert
Division Développement
Email.: [EMAIL PROTECTED]

Gsm  .: 065 19 60 99   
Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70 OMNIDATA , 74 Bv AbdelMoumen

 



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



[m2] exec-maven-plugin fails because path containing spaces

2007-04-16 Thread Adrian Herscu

Hi all,

I am trying to run Ant 1.7 from within Maven 2 using the exec-maven-plugin.

  
org.codehaus.mojo
exec-maven-plugin

  
process-test-resources

  java

  


  org.apache.tools.ant.Main
  ${basedir}
  
-buildfile
${basedir}/mybuild.xml
  

  

It seems that there is a problem with Windows paths containing spaces.
Anyone knows about a decent workaround?

Thanks,
Adrian.

P.S. The error log:[[


BUILD FAILED
java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:842)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:162)
at 
org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
at org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)
at org.apache.tools.ant.Project.setAntLib(Project.java:313)
at org.apache.tools.ant.Project.initProperties(Project.java:309)
at org.apache.tools.ant.Project.init(Project.java:295)
at org.apache.tools.ant.Main.runBuild(Main.java:663)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.Main.start(Main.java:161)
at org.apache.tools.ant.Main.main(Main.java:250)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:271)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.URISyntaxException: Illegal character in path at 
index 18: file:/C:/Documents and 
Settings/pm/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar

at java.net.URI$Parser.fail(URI.java:2816)
at java.net.URI$Parser.checkChars(URI.java:2989)
at java.net.URI$Parser.parseHierarchical(URI.java:3073)
at java.net.URI$Parser.parse(URI.java:3021)
at java.net.URI.(URI.java:578)
at java.net.URI.create(URI.java:840)
... 20 more

Total time: 0 seconds
java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:842)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:162)
at 
org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
at org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)
at org.apache.tools.ant.Project.setAntLib(Project.java:313)
at org.apache.tools.ant.Project.initProperties(Project.java:309)
at org.apache.tools.ant.Project.init(Project.java:295)
at org.apache.tools.ant.Main.runBuild(Main.java:663)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.Main.start(Main.java:161)
at org.apache.tools.ant.Main.main(Main.java:250)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:271)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.URISyntaxException: Illegal character in path at 
index 18: file:/C:/Documents and 
Settings/pm/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar

at java.net.URI$Parser.fail(URI.java:2816)
at java.net.URI$Parser.checkChars(URI.java:2989)
at java.net.URI$Parser.parseHierarchical(URI.java:3073)
at java.net.URI$Parser.parse(URI.java:3021)
at java.net.URI.(URI.java:578)
at java.net.URI.create(URI.java:840)
... 20 more


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



How to run multiple "mvn" commands in a windows bat file?

2007-04-16 Thread Baz

All,

How can i run multiple mvn commands in a windows bat file?

I would like to run "mvn clean", then "mvn install" in directory 1 and
"mvn install" in another directory. However, after the first mvn
command, the script quit. Not sure why.

A.

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



Maven : Automate the import of generated eclipse project to the eclipse ?

2007-04-16 Thread Marouane Amraoui
 

I generate my structure of eclipse project from maven.

 

I make a  .bat file for that purpose. And I used it as an external tools in 
eclipse. 

 

When I execute this bat it generate me in  the workspace of eclipse my 
multiproject structure . after that I must to go to the  File --> Import in 
order to make there visible

In the eclipse. So my question there is something that can help me to automate 
this step too. ie : I execute my external tools , it generate me my structure 
project and  appear immediately 

In the eclipse, don't need to import them manually  :-) ???

 

Maven can give me this features or I need to explore eclipse api ? 

 

Thx 

 

---

Merouane AMRAOUI
Consultant Expert
Division Développement
Email.: [EMAIL PROTECTED]

Gsm  .: 065 19 60 99   
Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
OMNIDATA , 74 Bv AbdelMoumen

 



[m2] converting from intelliJ project to Eclipse project

2007-04-16 Thread Mick Knutson

I am using IntelliJ with several modules as I have in my Maven build. I am
trying to get a project that is similar to that in MyEclipse, but I still
seem to get the flattened src view of all directories that contain src or
tests.

Does eclipse support grouping of modules like IntelliJ does? Or will I
always have each directory under root?
I seem to have the separate directory trees (./common/utilities/src/**) at
the bottom of the Package Explorer, but it is way at the bottom, and
confusing to me why I would see both.


--
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---


What causes release:prepare to re-download

2007-04-16 Thread Pankaj Tandon

Hi all,
We've been using mvn release:prepare/perform for several months now on our
build machine. Today, however issuing 
mvn release:prepare caused a LOT of files to be downloaded into our local
repository. What caused this at the command was invoked with no explicit
instructions to look for updates?
Here is the output of that command.
I suspect that this download has caused a subsequent mvn site command to
break. But before I fix thatI need to understand what prompts Maven to
download artifacts without explicitly asking for them?

Any help is appreciated.
Thanks
Pankaj

--
D:\projects\mwmA>mvn release:prepare
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'release'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-release-plugin: checking for
upda
tes from central
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-releas
e-plugin/2.0-beta-4/maven-release-plugin-2.0-beta-4.pom
5K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin
s/1/maven-plugins-1.pom
3K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-parent/1/maven
-parent-1.pom
6K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/apache/1/apache-1.pom
3K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-releas
e-plugin/2.0-beta-4/maven-release-plugin-2.0-beta-4.jar
77K downloaded
[INFO]
-
---
[INFO] Building Mathwiz
[INFO]task-segment: [release:prepare] (aggregator-style)
[INFO]
-
---
Downloading:
http://repo1.maven.org/maven2/jfree/jcommon/0.9.6/jcommon-0.9.6.pom

169b downloaded
Downloading:
http://repo1.maven.org/maven2/jfreechart/jfreechart/0.9.16/jfreecha
rt-0.9.16.pom
155b downloaded
Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom
145b downloaded
Downloading:
http://repo1.maven.org/maven2/jfreechart/jfreechart/0.9.16/jfreecha
rt-0.9.16.jar
570K downloaded
Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar
118K downloaded
Downloading:
http://repo1.maven.org/maven2/jfree/jcommon/0.9.6/jcommon-0.9.6.jar

346K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-cvsexe/1.0-beta-3/maven-scm-provider-cvsexe-1.0-beta-3.pom
895b downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
ers-cvs/1.0-beta-3/maven-scm-providers-cvs-1.0-beta-3.pom
784b downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
ers/1.0-beta-3/maven-scm-providers-1.0-beta-3.pom
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm/1.0-be
ta-3/maven-scm-1.0-beta-3.pom
3K downloaded
Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.1/
plexus-utils-1.1.pom
767b downloaded
Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.4/plex
us-1.0.4.pom
5K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-api/1.
0-beta-3/maven-scm-api-1.0-beta-3.pom
591b downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-cvs-commons/1.0-beta-3/maven-scm-provider-cvs-commons-1.0-beta-3.pom
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-perforce/1.0-beta-3/maven-scm-provider-perforce-1.0-beta-3.pom
629b downloaded
Downloading: http://repo1.maven.org/maven2/regexp/regexp/1.3/regexp-1.3.pom
145b downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-starteam/1.0-beta-3/maven-scm-provider-starteam-1.0-beta-3.pom
460b downloaded
Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interactiv
ity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.pom
6K downloaded
Downloading:
http://repo1.maven.org/maven2/classworlds/classworlds/1.1-alpha-2/c
lassworlds-1.1-alpha-2.pom
3K downloaded
Downloading:
http://repo1.maven.org/maven2/jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta
-8.pom
6K downloaded
Downloading: http://repo1.maven.org/maven2/jdom/jdom/1.0/jdom-1.0.pom
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-artifact-manag
er/2.0/maven-artifact-manager-2.0.pom
1K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven/2.0/maven-2.0.
pom
8K downloaded
Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.
4/plexus-utils-1.0.4.pom
6K downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-artifact/2.0/m
aven-artifact-2.0.pom
723b downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/maven-repository-met
adata/2.0/maven-repos

Re: [M2] Newbie Problem with Snapshot Dependencies

2007-04-16 Thread Kevin Moran
Thank you, Jo, for the quick response.  Unfortunately,
the problem persists even with snapshots and releases
enabled.

After you responded, I found someone with the same
problem:

http://mail-archives.apache.org/mod_mbox/maven-users/200606.mbox/[EMAIL 
PROTECTED]

The problem is that Maven is generating the wrong
classpath when snapshots are involved.

Unless I am mistaken, this is still broken in Maven. 
But there is a suggested patch.  If I can figure out
how to build the maven-artifact-ant Jar using it, I
will see if it fixes the problem.

Thanks for your help.  Wish me luck!
Kevin Moran

--- Jo Vandermeeren <[EMAIL PROTECTED]> wrote:

> Kevin,
> 
> You have to enable snapshots for your repository.
> I haven't tried it myself using the ant lib, but you
> could try to set the
> 'releases' and 'snapshots' attributes both to
> 'true'.
> 
> Cheers
> Jo
> 
> On 4/16/07, Kevin Moran <[EMAIL PROTECTED]> wrote:
> >
> > Hello all,
> > I've set up a Maven 2 repository and followed
> the
> > directions at
> http://maven.apache.org/ant-tasks.html
> > to retrofit my project's build.xml's so they pull
> in
> > dependencies from my repository.
> >
> > I set up each build file's classpath along the
> > lines of
> >
> >  > pathId="dependency.classpath"
> > filesetId="dependency.fileset">
> >
> > 
> > 
> > 
> >
> > and then referenced the classpath
> > ("dependency.classpath") in my build files'
> 
> > tasks.
> >
> > What I'm seeing is that my compilations work
> fine
> > as long as my build files don't depend on snapshot
> > jars.  If I specify a dependency on a snapshot, it
> > downloads the latest Jar from the repository, but
> does
> > not specify the correct path to it in the
> classpath.
> >
> > What I end up with under $HOME/.m2/repository
> is
> > the Jar being installed under, say, 1.0-SNAPSHOT:
> >
> >
>
$HOME/.m2/repository/myGroup/myJar/1.0-SNAPSHOT/myJar-1.0-SNAPSHOT.jar
> >
>
$HOME/.m2/repository/myGroup/myJar/1.0-SNAPSHOT/myJar-
> > 1.0-20070416.064415-1.jar
> > ...
> >
> > But if I echo dependency.classpath in my
> build.xml, I
> > see it's not looking for myJar under 1.0-SNAPSHOT.
> > It's looking for it under, say,
> 1.0-20070416.064415-1:
> >
> >
>
$HOME/.m2/repository/myGroup/myJar/1.0-20070416.064415-1/myJar-
> > 1.0-20070416.064415-1.jar
> >
> > Because there is no 1.0-20070416.064415-1
> directory
> > (just a 1.0-SNAPSHOT directory),  fails.
> >
> > Is this a known bug or am I doing something wrong?
>  If
> > it's a known bug, is there a workaround?  I'm
> > desperate to get snapshots working.
> >
> > Thanks in advance,
> > Kevin Moran
> >
> > P.S. I am using Maven 2.0.5 and
> maven-artifact-ant-2.0.4-dep.jar.
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



M2 enforcer plugin 1.0-alpha-2

2007-04-16 Thread Ian Springer

Would someone please upload alpha-2 to the snapshots repo?

http://people.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-enforcer-plugin/

Thanks.
Ian


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



Re: Archetype : $ a predefined character

2007-04-16 Thread Gregory Kick

I think that you want to take a look at
http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html#escapingvalidvtlreferences

On 4/16/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote:

Good news :

I do the test on this line :




Two good news :

1. ${root} maven try to parse it but only show a wrning message , so don't exit 
with error :)

2. what you assumed don't work (\$) work very fine :). Because it generate me 
this line :
 
 .

You look in the second line maven delete only the character \ without 
interpreting ${artifactId} :)


Thx

-Message d'origine-
De: Marouane Amraoui [mailto:[EMAIL PROTECTED]
Envoyé: lundi 16 avril 2007 15:42
À: Maven Users List
Objet: RE: Archetype : $ a predefined character

If you can explain me more your solution ?

What I need is :



${root} to be ignored. (is ant variable)

And ${artifactId} to be parsed.

Thx


-Message d'origine-
De: Kathryn Huxtable [mailto:[EMAIL PROTECTED]
Envoyé: lundi 16 avril 2007 15:37
À: Maven Users List
Objet: Re: Archetype : $ a predefined character

I defined a symbol called "dollar" equal to a dollar sign and used ${dollar}
throughout. It worked. I think you're supposed to be able to use \$, but I
couldn't get it to work.

-K


On 4/16/07 10:19 AM, "Marouane Amraoui" <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I create my own archetype :
>
>
>
> This archetype generate me a project that contain some file that contain in
> there body the character $. This character
>
> Is normaly interpreted by velocity.
>
> There is some solution for that ?
>
>
>
>
>
> ---
>
> Merouane AMRAOUI
> Consultant Expert
> Division Développement
> Email.: [EMAIL PROTECTED]
>
> Gsm  .: 065 19 60 99
> Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
> OMNIDATA , 74 Bv AbdelMoumen
>
>
>


-
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]





--
Gregory Kick
http://kickstyle.net/


Re: Error in maven-dependency:copy

2007-04-16 Thread Herve Chang

Hello Brian,

Thanks for helping but the problem still remains...

I've removed:
- all metadata files in /org/codehaus/mojo of my local repository ,
- maven-dependency-plugin and dependency-maven-plugin directories in 
/org/codehaus/mojo

- and also \org\apache\maven\plugins\maven-dependency-plugin

I'm also using maven-dependency-plugin version 2.0-alpha-4 as stated in 
my pom.xml and the error message below.


Do you have any others idea?

PS: I can't find any 2.0.7 version of maven-dependency-plugin, what do 
you mean by 2.0.7 ? Am I misunderstanding sth. about the management of 
this plugin version ?


Thanks,
Hervé



[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] One or more required plugin parameters are invalid/missing for 
'dependency:copy'


[0] inside the definition for plugin: 'maven-dependency-plugin'specify 
the following:



  ...
  VALUE
.

[INFO] 


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error 
configuring: org.apache.maven.plugins:maven-dependency-plugin. Reason: 
Invalid or missing parameters: [Mojo parameter [name: 'artifactItems'; 
alias: 'null']] for mojo: 
org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:copy
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:568)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginParameterException: Error 
configuring: org.apache.maven.plugins:maven-dependency-plugin. Reason: 
Invalid or missing parameters: [Mojo parameter [name: 'artifactItems'; 
alias: 'null']] for mojo: 
org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:copy
at 
org.apache.maven.plugin.DefaultPluginManager.checkRequiredParameters(DefaultPluginManager.java:907)
at 
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:612)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:421)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)

... 16 more
[INFO] 







Brian E. Fox a écrit :

Somehow you are getting the old dependency-maven-plugin instead of the 
maven-dependency-plugin. Clear the /org/codehaus/mojo metadata from your local 
repo (and any internal proxies you have) and try again. This is already fixed 
for 2.0.7doesn't help you now though ;-)

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 16, 2007 4:08 AM

To: users@maven.apache.org
Subject: Error in maven-dependency:copy

Hello,

I'm trying to copy some specific artifacts using the 
maven-dependency-plugin (copy goal). However, it seems that the plugin 
does not to find some required parameters.


I'm doing sth very simple and straightforward from what I've read from 
http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-artifacts.html

but it simply does not work...

Error log & plugin usage are just below,
Am I missing something or are there any bugs in the plugin ?

Thanks,
Hervé

=> Error log:

[INFO]task-segment: [dependency:copy]
[INFO] 

[INFO] 


[ERROR] BUIL

RE: Newbie Question: How do I represent my current Ant builds with Maven?

2007-04-16 Thread Lacoste, Dana
(extra info deleted to save space)

Once again, I'm far from the right person to provide "should" answers to
this,
but as I understand it, maven really wants
one-pom:one-target:one-build-result-file
ratios.  As in a single directory should build exactly one thing.

BUT

I do this kind of thing in several areas: build a .jar and a .zip that
packages
everything up in the same directory.

So it _can_ be done, but as I understand it, it's not "best practice".

The only catch (that I can see) is that the various published elements
have to have
different extensions (or different "" tags) so that there's
no naming
conflict.

So it should definitely be possible to do what you want: make your pom
build the .jar,
then add the assembly code and package that up as a .zip and you'd have
both published
to your repository.  It will work fine and reliable.  But it's not "the
way you're
supposed to do it" if that makes sense

Dana Lacoste

-Original Message-
From: Danny MacMillan
[mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 3:43 PM
To: Maven Users List
Subject: Re: Newbie Question: How do I represent my current Ant builds
with Maven?

> Something like:
> 
> Parent\pom.xml <- placeholder, effectively
>jar1\pom.xml<- generates your .jar
>war1\pom.xml<- generates your .war
>dist1\pom.xml   <- generates an assembly putting all the pieces
> together
>dist1\dist.xml  <- descriptor
> (http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html)
>dist1\resources <- "flat" files needed in your assembly, 
> referred to in the pom
> 

Would it be 'wrong' to merge the jar1 and dist1 folders (in your
example) and their corresponding poms together?  The rationale for this
question is that the jar being produced is nothing on its own.  It's not
a library or a shared component of any kind.  Its reason for being is to
provide an executable, which by its nature requires the contents of the
resources directory.  My prejudicial response to what you outline is
that it seems kind of complicated, but I'm open minded and happy to
revise my opinion if I understand the value in the split.

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



Re: Is there a "mvn" command to clean the local repo?

2007-04-16 Thread Davis Ford

http://maven.apache.org/plugins/maven-dependency-plugin/index.html

see purge-local-repository goal



On 4/16/07, Baz <[EMAIL PROTECTED]> wrote:


All,

Is there a mvn command that clean the local repo?

Thanks.

B.

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





--
Zeno Consulting, Inc.
http://www.zenoconsulting.biz
248.894.4922 phone
313.884.2977 fax


Is there a "mvn" command to clean the local repo?

2007-04-16 Thread Baz

All,

Is there a mvn command that clean the local repo?

Thanks.

B.

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



RE: Archetype : $ a predefined character

2007-04-16 Thread Marouane Amraoui
Good news :

I do the test on this line :




Two good news :

1. ${root} maven try to parse it but only show a wrning message , so don't exit 
with error :)

2. what you assumed don't work (\$) work very fine :). Because it generate me 
this line :
 
 .

You look in the second line maven delete only the character \ without 
interpreting ${artifactId} :)


Thx

-Message d'origine-
De : Marouane Amraoui [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 16 avril 2007 15:42
À : Maven Users List
Objet : RE: Archetype : $ a predefined character 

If you can explain me more your solution ?

What I need is : 
  


${root} to be ignored. (is ant variable)

And ${artifactId} to be parsed.

Thx


-Message d'origine-
De : Kathryn Huxtable [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 16 avril 2007 15:37
À : Maven Users List
Objet : Re: Archetype : $ a predefined character 

I defined a symbol called "dollar" equal to a dollar sign and used ${dollar}
throughout. It worked. I think you're supposed to be able to use \$, but I
couldn't get it to work.

-K


On 4/16/07 10:19 AM, "Marouane Amraoui" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I create my own archetype :
> 
>  
> 
> This archetype generate me a project that contain some file that contain in
> there body the character $. This character
> 
> Is normaly interpreted by velocity.
> 
> There is some solution for that ?
> 
>  
> 
>  
> 
> ---
> 
> Merouane AMRAOUI
> Consultant Expert
> Division Développement
> Email.: [EMAIL PROTECTED]
> 
> Gsm  .: 065 19 60 99
> Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
> OMNIDATA , 74 Bv AbdelMoumen
> 
>  
> 


-
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]



RE: Archetype : $ a predefined character

2007-04-16 Thread Marouane Amraoui
If you can explain me more your solution ?

What I need is : 
  


${root} to be ignored. (is ant variable)

And ${artifactId} to be parsed.

Thx


-Message d'origine-
De : Kathryn Huxtable [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 16 avril 2007 15:37
À : Maven Users List
Objet : Re: Archetype : $ a predefined character 

I defined a symbol called "dollar" equal to a dollar sign and used ${dollar}
throughout. It worked. I think you're supposed to be able to use \$, but I
couldn't get it to work.

-K


On 4/16/07 10:19 AM, "Marouane Amraoui" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I create my own archetype :
> 
>  
> 
> This archetype generate me a project that contain some file that contain in
> there body the character $. This character
> 
> Is normaly interpreted by velocity.
> 
> There is some solution for that ?
> 
>  
> 
>  
> 
> ---
> 
> Merouane AMRAOUI
> Consultant Expert
> Division Développement
> Email.: [EMAIL PROTECTED]
> 
> Gsm  .: 065 19 60 99
> Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
> OMNIDATA , 74 Bv AbdelMoumen
> 
>  
> 


-
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: Archetype : $ a predefined character

2007-04-16 Thread Kathryn Huxtable
I defined a symbol called "dollar" equal to a dollar sign and used ${dollar}
throughout. It worked. I think you're supposed to be able to use \$, but I
couldn't get it to work.

-K


On 4/16/07 10:19 AM, "Marouane Amraoui" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I create my own archetype :
> 
>  
> 
> This archetype generate me a project that contain some file that contain in
> there body the character $. This character
> 
> Is normaly interpreted by velocity.
> 
> There is some solution for that ?
> 
>  
> 
>  
> 
> ---
> 
> Merouane AMRAOUI
> Consultant Expert
> Division Développement
> Email.: [EMAIL PROTECTED]
> 
> Gsm  .: 065 19 60 99
> Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
> OMNIDATA , 74 Bv AbdelMoumen
> 
>  
> 


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



Custom properties in POM file

2007-04-16 Thread Senden Kris
Hi,
 
Is there a way to access custom properties in the POM in an Ant file
which is called during the build life cycle?
 
Suppose I have the following items defined in the POM file:
 

TestValue

 

...

...

maven-antrun-plugin


package










...

...

 
The build.xml uses the Maven Ant Tasks to reference the POM, but I can't
find anywhere how to access custom defined properties...
 
Thanks in advance!
 
Kris Senden
Software Engineer

 
Centric Retail Solutions NV
Siemenslaan 12
8020 Oostkamp
Belgium
* +32 (0) 50.833.333
* +32 (0) 50.833.399
* [EMAIL PROTECTED]
 
Visit our website : www.centric.be  
 
The information included in this message is personal and/or confidential
and intended exclusively for the addressees as stated. This message
and/or the accompanying documents may contain confidential information
and should be handled accordingly. If you are not the intended reader of
this message, we urgently request that you notify Centric immediately
and that you delete this e-mail and any copies of it from your system
and destroy any printouts immediately. It is forbidden to distribute,
reproduce, use or disclose the information in this e-mail to third
parties without obtaining prior permission from Centric. We expressly
point out that there are risks associated with the use of e-mail.
Centric and the companies within the group shall not accept any
liability whatsoever for damage resulting from the use of e-mail.
Legally binding obligations can only arise for Centric by means of a
written instrument, signed by an authorized representative of Centric. 

P Please consider your environmental responsibility before printing this
e-mail
 


RE: Release Notes generation

2007-04-16 Thread Pankaj Tandon

Hi,
Yes.. what I am looking for is a list of all the comments entered (at
checkin time) into my scm (SVN, in my case) broken down by release.
I haven't really tried either of these solutions yet, but looking at the
documentation of these 2 plugins, I think I am looking for something
inbetween:
maven-changelog-plugin
maven-changes-plugin

The first produces a list of file that have changed (albeit by release) but,
atleast as per documentation, does not give me the svn log output. That is,
it does not show me the user comments entered at commit time.
The second goes against JIRA or a manually edited (or programatically
generated) changes.xml.

What I need is the svn log output (nicely formatted, ofcourse ;)) from
release 1.n to 1.m
I would use this for my release notes link and it would be a great feature
if I could email this list to a distribution list.
I'd love to enhance the existing plugin to do this but the article here
scared me !
http://www.oreillynet.com/onjava/blog/2006/03/maven_project_info_reports_con.html

Thanks,
Pankaj

William Ferguson-6 wrote:
> 
> But how do you get issues grouped by released version?
> Maven-changes-plugin provides a great list of issues for the projects,
> filtered by different criteria.
> So it could provide all open issues for instance.
> 
> Maybe I'm missing something, but this isn't what you want for release
> notes.
> ReleaseNotes should contain all the resolved issues, grouped by released
> version, ordered from most recent to least recent. It might also contain
> a list of open issues.
> 
> The maven-changes-plugin change:jira-report looks like it is retrieving
> enough information to do this, but I can't see how to configure it to
> produce release notes. Can anyone tell me?
> 
> Alternatively, is there a plugin that does produce release notes (from
> JIRA).
> 
> William 
> 
> -Original Message-
> From: Dennis Lundberg [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, 15 April 2007 6:46 AM
> To: Maven Users List
> Subject: Re: Release Notes generation
> 
> That'd be the maven-changes-plugin then:
> 
>http://maven.apache.org/plugins/maven-changes-plugin/
> 
> Pankaj Tandon wrote:
>> Thanks Dennis,
>> That was really helpful.
>> However, is there a report plugin that produces "release notes" as 
>> against a change log.
>> Actually, I've seen the report such a plugin produces on the site of 
>> one of the maven projects (maybe one of the plugins). I just can't 
>> seem to find it now. The report has a bugs, enhancements, wishlist and
> 
>> a features section, all broken out by release. This changelog plugin 
>> doesn't seem to produce this kind of report.
>> 
>> Ofcourse, we are using the maven-release-plugin to produce the
> releases.
>> 
>> Any suggestions what plugin produces that report?
>> 
>> Thanks,
>> Pankaj
>> 
>> 
>> dennisl-2 wrote:
>>> Pankaj Tandon wrote:
 Hello,
 I'd like to generate release notes as a part of my mvn site command.
 If I annotate the site.xml with the following:

 
   
   
   
   
   
   
 

 It certainly creates the menu correctly.
 However, where is the plugin that will actually create the 
 release-notes.html?
 I tried project-info-reports:scm but that looks like a dead-end to 
 me as far as release note generation goes.

 Any help is appreciated.

 Thanks
 Pankaj
>>> You might be looking for maven-changelog-plugin:
>>>
>>>http://maven.apache.org/plugins/maven-changelog-plugin/
>>>
>>>
>>> --
>>> Dennis Lundberg
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>> 
> 
> 
> --
> Dennis Lundberg
> 
> -
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Release-Notes-generation-tf3573934s177.html#a10018476
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Archetype : $ a predefined character

2007-04-16 Thread Marouane Amraoui
Hi,

I create my own archetype :

 

This archetype generate me a project that contain some file that contain in 
there body the character $. This character

Is normaly interpreted by velocity. 

There is some solution for that ?

 

 

---

Merouane AMRAOUI
Consultant Expert
Division Développement
Email.: [EMAIL PROTECTED]

Gsm  .: 065 19 60 99   
Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70
OMNIDATA , 74 Bv AbdelMoumen

 



RE: Specifying repository in the install goal

2007-04-16 Thread mateamargo


Graham Leggett wrote:
> 
> On Mon, April 16, 2007 4:56 pm, David Jackman wrote:
> 
>> You can't deploy to an http url.  It has to be something that can accept
>> files, like scp, ftp, or file.
> 
> DAV can accept files from an http url, but you need to specify it as
> dav:http://etc for it to work.
> 
> Regards,
> Graham
> --
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
I have finally used file://

Thank you both.
-- 
View this message in context: 
http://www.nabble.com/Specifying-repository-in-the-install-goal-tf3584741s177.html#a10017992
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Cannot run changelog command

2007-04-16 Thread Pankaj Tandon

Hi,
We were running the changelog plugin correctly until last week and this
moring, a mvn release:prepare execution caused a bunch of downloads into the
maven repository. 

Now a mvn site -e yields the below. (This was working fine till Friday!)
Any pointers are appreciated.
Thanks
Pankaj


[INFO]task-segment: [site]
[INFO]
-
---
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [site:site]
[INFO] Generate "Change Log" report.
[INFO] Generating changed sets xml to: D:\projects\mwmA\target\changelog.xml
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error during page generation

Embedded error: Error rendering Maven report: Cannot run changelog command :
No such provider: ''.
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error during page
genera
tion
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error during page
gen
eration
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:97)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
... 16 more
Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error
renderin
g Maven report: Cannot run changelog command :
at
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(R
eportDocumentRenderer.java:71)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(
DefaultSiteRenderer.java:239)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(Defaul
tSiteRenderer.java:115)
at
org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124
)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
... 18 more
Caused by: org.apache.maven.reporting.MavenReportException: Cannot run
changelog
 command :
at
org.apache.maven.plugin.changelog.ChangeLogReport.generateChangeSetsF
romSCM(ChangeLogReport.java:500)
at
org.apache.maven.plugin.changelog.ChangeLogReport.getChangedSets(Chan
geLogReport.java:349)
at
org.apache.maven.plugin.changelog.ChangeLogReport.executeReport(Chang
eLogReport.java:296)
at
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMaven
Report.java:98)
at
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(R
eportDocumentRenderer.java:67)
... 22 more
Caused by: org.apache.maven.scm.ScmException: Can't load the scm provider.
at
org.apache.maven.plugin.changelog.ChangeLogReport.

Core Module - Customer spcific Module. How to set up in Maven2?

2007-04-16 Thread Santonian

Hello there,

I am working with maven some time now but have not the most experince with
the configuartion of it. 
I have the following problem to solve and I dont know exactly how to do it.
I read about project inheritance, but I am not sure if thats the right thing
for me.

This is what I am trying to achive:

We have an application that mainly uses Spring MVC and Freemarker. Rigth now
for each customer we have a seperate project because the requirements of
each customer are quite diffrent.

Now we want to refactor our application, so that we can have a core module
and an individual module for each customer. The individual modules must be
able to inherith classes of the core module. Changed made to the core module
should be reflected by all customer specific modules.

How can I do that? Is Project Inheritance the right thing for me? Can I have
the core part and the customer parts all in the same project or do I have to
have a seperate project for all customers?

Any tips and links are greatly apreciated.

cheers 
Santo
-- 
View this message in context: 
http://www.nabble.com/Core-Module---Customer-spcific-Module.-How-to-set-up-in-Maven2--tf3585040s177.html#a10017987
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Specifying repository in the install goal

2007-04-16 Thread Graham Leggett
On Mon, April 16, 2007 4:56 pm, David Jackman wrote:

> You can't deploy to an http url.  It has to be something that can accept
> files, like scp, ftp, or file.

DAV can accept files from an http url, but you need to specify it as
dav:http://etc for it to work.

Regards,
Graham
--



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



RE: Specifying repository in the install goal

2007-04-16 Thread David Jackman
You can't deploy to an http url.  It has to be something that can accept
files, like scp, ftp, or file.
 

-Original Message-
From: mateamargo [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 16, 2007 8:45 AM
To: users@maven.apache.org
Subject: Re: Specifying repository in the install goal



Jo Vandermeeren wrote:
> 
> Hi,
> 
> "mvn install" will always install to your local repository..
> "mvn deploy" however, will install your artifact in a remote
repository..
> 
> Cheers
> Jo
> 

Thanks, that is what I was looking for.
But I'm getting a BUILD ERROR with a message saying: "Return codei is:
405".
Where can I find an explanation about the return codes?
--
View this message in context:
http://www.nabble.com/Specifying-repository-in-the-install-goal-tf358474
1s177.html#a10017555
Sent from the Maven - Users mailing list archive at Nabble.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: Specifying repository in the install goal

2007-04-16 Thread mateamargo


Jo Vandermeeren wrote:
> 
> Hi,
> 
> "mvn install" will always install to your local repository..
> "mvn deploy" however, will install your artifact in a remote repository..
> 
> Cheers
> Jo
> 

Thanks, that is what I was looking for.
But I'm getting a BUILD ERROR with a message saying: "Return codei is: 405".
Where can I find an explanation about the return codes?
-- 
View this message in context: 
http://www.nabble.com/Specifying-repository-in-the-install-goal-tf3584741s177.html#a10017555
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Using MavenProjectBuilder from inside of a mojo?

2007-04-16 Thread Matthew Beermann
Hey all, I'm trying to write a mojo that reads in POMs from a remote location 
and does some checking on them. To get a MavenProject out of a POM file, I need 
to use the MavenProjectBuilder, so far as I can tell. (It seems silly to use a 
MavenEmbedder when I'm already in Maven!)

Trouble is, MavenProjectBuilder requires a ProfileManager, and I can't figure 
out how to get my hands on one. It's not a @component, nor does it seem to be a 
built-in ${parameter}. True, I could construct a DefaultProfileManager, but I 
can't do that without a PlexusContainer, and I can't figure out how to get my 
hands on one of those, either.

Help! What am I doing wrong here? How do I get my hands on instances of these 
classes?

Thanks,
--Matthew

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Specifying repository in the install goal

2007-04-16 Thread Jo Vandermeeren

Hi,

"mvn install" will always install to your local repository..
"mvn deploy" however, will install your artifact in a remote repository..

Cheers
Jo

On 4/16/07, mateamargo <[EMAIL PROTECTED]> wrote:



I need to install a program in a repository, but not in my local one.
Everytime I run "mvn install" it installs into my
"/home/user/.m2/repository" directory, but I need it somewhere else.
I have tryied moving the files manually, but it doesn't seems to work.

Any ideas?

Thanks.
--
View this message in context:
http://www.nabble.com/Specifying-repository-in-the-install-goal-tf3584741s177.html#a10017033
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: Maven 2 ear plugin doesn't pick up resources

2007-04-16 Thread Stephane Nicoll

Indeed.

Note that resourcesDir is supported but you have to declare it
explicitly in the ear plugin configuration.

Resourcesdir is deprecated.

Regards,
Stéphane



On 4/16/07, Marcel Schutte <[EMAIL PROTECTED]> wrote:

Hi,

You shouldn't use the resources section in the pom for this. Instead take a 
look at the docs for the ear plugin, especially the earSourceDirectory. Combine 
this with earSourceIncludes /-Excludes to do what you want.

Regards,
Marcel

- Original Message 
From: Johan Eltes <[EMAIL PROTECTED]>
To: Maven Users List 
Sent: Friday, April 13, 2007 8:09:56 PM
Subject: Re: Maven 2 ear plugin doesn't pick up resources

Thanks for the suggestion. I did try it (using the default layout,
omitting META-INF). Unfortunately, the xmi file still doesn't make it
into the ear. Any other suggestions are appreciated.

Johan Eltes
Callista Enterprise AB
Mobil: +46 (0)708-22 41 86
[EMAIL PROTECTED]
http://www.callistaenterprise.se


On 12 apr 2007, at 19.23, franz see wrote:

>
> Good day,
>
> If you're saying you have something like
>
> target/-/classes/ibm-application-bnd.xmi
>
> Then I guess your resources are configured as follows
>
> 
>   ...
>   
> ...
> 
>   ...
>   
> src/main/resources/META-INF/
>   
> 
>   
> 
>
> If so, remove it or use the default
>
> 
>   ...
>   
> ...
> 
>   ...
>   
> src/main/resources/
>   
> 
>   
> 
>
> So that you will have something like
>
> target/-/classes/META-INF/ibm-application-
> bnd.xmi
>
> But im just guessing here since I haven't tried that before with
> the ear
> plugin :-)
>
> Cheers,
> Franz
>
>
> Johan Eltes-3 wrote:
>>
>> I need to build an ear that - in addition to the generated
>> application.xml - adds an existing vendor-specific deployment
>> descriptor to the META-INF directory of the ear.
>>
>> I've tried the standard set-up:
>>
>> /scr/main/resources/META-INF/ibm-application-bnd.xmi
>>
>> When I invoke mvn install, the application.xml is generated and
>> copied to /META-INF/ while ibm-application-bnd.xmi isn't. When
>> looking into the target folder, I see the ibm-application-bnd.xmi has
>> been copied into target/-/classes/, but never
>> made its way into the ear (or exploded ear). I see the same behavior
>> on windows and Mac OS.
>>
>> Johan Eltes
>> Callista Enterprise AB
>> Mobil: +46 (0)708-22 41 86
>> [EMAIL PROTECTED]
>> http://www.callistaenterprise.se
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Maven-2-ear-
> plugin-doesn%27t-pick-up-resources-tf3565230s177.html#a9964276
> Sent from the Maven - Users mailing list archive at Nabble.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]





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.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]



Specifying repository in the install goal

2007-04-16 Thread mateamargo

I need to install a program in a repository, but not in my local one.
Everytime I run "mvn install" it installs into my
"/home/user/.m2/repository" directory, but I need it somewhere else.
I have tryied moving the files manually, but it doesn't seems to work.

Any ideas?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Specifying-repository-in-the-install-goal-tf3584741s177.html#a10017033
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Using custom properties with Maven site

2007-04-16 Thread octalpus

Hi all!

Does anyone know of a way to allow the Maven 2 Site Plugin
(http://maven.apache.org/plugins/maven-site-plugin/) to use defined custom
properties within a pom.xml?  For example, 


  ...
  
0.0.4
  

  aGroupID
  anArtifactID
  ${parentVersion}
  ...


If I try to run "mvn site" against this pom, the site build fails.  I can
see from the error logs that Maven site:site is trying to resolve artifacts
without properly replacing the custom property:

[INFO] [site:site]
Downloading:
http://host/repository/aGroupID/anArtifactID/${parentVersion}/anArtifactID-${parentVersion}.pom

I know I can make this work by passing the custom property on the command
line ("mvn site -DparentVersion=0.0.4"), but I would like to re-use the
already defined property from the pom file.  From my digging, it looks like
custom properties are resolved during the "process-sources" and
"process-resources" phases, of the default build lifecycle.  Since the site
plugin is handled in a different build lifecycle, I'm assuming these phases
are not called.  Does anyone know of another way around this?

Thanks very much!
octalpus.
-- 
View this message in context: 
http://www.nabble.com/Using-custom-properties-with-Maven-site-tf3584647s177.html#a10016734
Sent from the Maven - Users mailing list archive at Nabble.com.


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



mvn eclipse plugin missing required source folder

2007-04-16 Thread Davis Ford

Hello, I have a problem getting the mvn eclipse plugin recognizing a
relative path resource directory.   Using mvn 2.0.6.  The project structure
looks like this:

editor
 subprojecta
  -pom.xml
  -src
-subprojectb
  -pom.xml
  -src
-conf
 -some.config.xml
-pom.xml

editor is a pom only project that has:


  subprojecta
  subprojectb


The pom in each subproject has this:



   
   ../conf
   
   **/*
   
   
   


This actually seems to work fine at runtime, b/c the code can load the xml
files it needs in each sub-project.  However, if I execute mvn
eclipse:eclipse, I get the build path error "Project subprojecta is missing
required source folder: 'D:\svn\editor\conf'.

Any idea on what I'm doing wrong here?

Regards,
Davis


maven site question, use of menu ref="parent"

2007-04-16 Thread Eric Miles
I am trying to create a site for my project that has modules.  The
creation of the modules menu in the parent's site page seems to work
fine and it includes all my parent's modules' links.  However I can not
get the link back to the parent's site into my modules' sites.  I have
no other information for my site other than the site descriptors (no
included apt files, etc).  Here is my parent descriptor and a module
descriptor:

parent:



MyCompany
http://www.mycompany.com/img/logo.gif
http://www.mycompany.com/



http://maven.apache.org/"; />








module:



MyCompany
http://www.mycompany.com/img/logo.gif
http://www.mycompany.com/



http://maven.apache.org/"; />








Am I missing something here?  I know my module descriptor is working
appropriately; when I make alterations to its site.xml the changes are
represented in the site that is generated.  Thanks for any help.

Eric


How set property from parent pom.xml in child pom.xml

2007-04-16 Thread Depthblue

Hi,

I have one parent.pom with list of properties




4.0.0
pom
WebAd
0.0.1
   .


${project.version}
${basedir}
${rootDirectory}/src
${rootDirectory}/test
${testDirectory}/resources





And I have second child pom.xml. I can read property ${myVersion} in this
pom. But I would want to set this property in this (child) pom.xml and then
I would want to read this changed property in parent pom.xml.

How can i do this?

Thans Tomas
-- 
View this message in context: 
http://www.nabble.com/How-set-property-from-parent-pom.xml-in-child-pom.xml-tf3584519s177.html#a10016314
Sent from the Maven - Users mailing list archive at Nabble.com.


RE: Re: Analyze dependency tree without compiling

2007-04-16 Thread Brian E. Fox
If you grab the latest help plugin (2.0.2-SNAPSHOT), you can use
help:dependencies. This will be moved to the dependency plugin in the
near future (likely before help is released with it).

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey De Smet
Sent: Monday, April 16, 2007 5:37 AM
To: users@maven.apache.org
Subject: Re: Analyze dependency tree without compiling

A direct call on that contains a bug with skin resolving:
http://jira.codehaus.org/browse/MPIR-65

Once that's fixed, it would be the solution: a quick, nicely formatted 
dependency report without compiling.

With kind regards,
Geoffrey De Smet

franz see schreef:
> Good day,
> 
> Try project-info-reports:dependencies to generate the dependency
report (
> which you can only see from mvn site ). The generated report would be
in
> target\site\dependencies.html
> 
> Cheers,
> Franz
> 
> 
> Jerome Lacoste-2 wrote:
>> On 4/13/07, Geoffrey De Smet <[EMAIL PROTECTED]> wrote:
>>> Hi all,
>>>
>>> Is it possible to analyze the dependency tree without compiling?
>>>
>>> Compiling gives a build failure, so the following commands don't
work:
>>> mvn dependency:analyze
>>> mvn site
>> I think the analyzer uses the class files to identify unused
>> dependencies...
>>
>> It is build on top of asm (http://asm.objectweb.org/).
>>
http://maven.apache.org/plugins/maven-dependency-plugin/dependencies.htm
l
>>
>> Not sure how this works with reflection though... But i guess the
>> relevant libs should be marked as runtime anyway.
>>
>> Jerome
>>
>> -
>> 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]



surefire and junit 4 website out-of-date

2007-04-16 Thread Adam Hardy

To whoever maintains the maven website:

there's an out-of-date page on the FAQ for surefire 
http://maven.apache.org/plugins/maven-surefire-plugin/faq.html


which should direct people to surefire-junit4.

I misleadingly states that there is no junit4 support.


Regards
Adam



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



Re: ERROR "The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist"

2007-04-16 Thread Mekonium

thanks a lot wendy. iIthinks that its works now.
thanks for all and to everybody.
By Mekonium

-- 
View this message in context: 
http://www.nabble.com/ERROR-%22The-plugin-%27org.apache.maven.plugins%3Amaven-resources-plugin%27-does-not-exist%22-tf3564721s177.html#a10015206
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Maven 2 ear plugin doesn't pick up resources

2007-04-16 Thread Marcel Schutte
Hi,

You shouldn't use the resources section in the pom for this. Instead take a 
look at the docs for the ear plugin, especially the earSourceDirectory. Combine 
this with earSourceIncludes /-Excludes to do what you want.

Regards,
Marcel

- Original Message 
From: Johan Eltes <[EMAIL PROTECTED]>
To: Maven Users List 
Sent: Friday, April 13, 2007 8:09:56 PM
Subject: Re: Maven 2 ear plugin doesn't pick up resources

Thanks for the suggestion. I did try it (using the default layout,  
omitting META-INF). Unfortunately, the xmi file still doesn't make it  
into the ear. Any other suggestions are appreciated.

Johan Eltes
Callista Enterprise AB
Mobil: +46 (0)708-22 41 86
[EMAIL PROTECTED]
http://www.callistaenterprise.se


On 12 apr 2007, at 19.23, franz see wrote:

>
> Good day,
>
> If you're saying you have something like
>
> target/-/classes/ibm-application-bnd.xmi
>
> Then I guess your resources are configured as follows
>
> 
>   ...
>   
> ...
> 
>   ...
>   
> src/main/resources/META-INF/
>   
> 
>   
> 
>
> If so, remove it or use the default
>
> 
>   ...
>   
> ...
> 
>   ...
>   
> src/main/resources/
>   
> 
>   
> 
>
> So that you will have something like
>
> target/-/classes/META-INF/ibm-application- 
> bnd.xmi
>
> But im just guessing here since I haven't tried that before with  
> the ear
> plugin :-)
>
> Cheers,
> Franz
>
>
> Johan Eltes-3 wrote:
>>
>> I need to build an ear that - in addition to the generated
>> application.xml - adds an existing vendor-specific deployment
>> descriptor to the META-INF directory of the ear.
>>
>> I've tried the standard set-up:
>>
>> /scr/main/resources/META-INF/ibm-application-bnd.xmi
>>
>> When I invoke mvn install, the application.xml is generated and
>> copied to /META-INF/ while ibm-application-bnd.xmi isn't. When
>> looking into the target folder, I see the ibm-application-bnd.xmi has
>> been copied into target/-/classes/, but never
>> made its way into the ear (or exploded ear). I see the same behavior
>> on windows and Mac OS.
>>
>> Johan Eltes
>> Callista Enterprise AB
>> Mobil: +46 (0)708-22 41 86
>> [EMAIL PROTECTED]
>> http://www.callistaenterprise.se
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/Maven-2-ear- 
> plugin-doesn%27t-pick-up-resources-tf3565230s177.html#a9964276
> Sent from the Maven - Users mailing list archive at Nabble.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]





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: Adding JARs and DLLs to a repository (RXTX)...

2007-04-16 Thread Arne Styve
Hi Damien,

Thanks for your answer. It works fine !

Arne

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Damien Lecan
Sent: 12. april 2007 18:27
To: Maven Users List
Subject: Re: Adding JARs and DLLs to a repository (RXTX)...

Hello,

Add your dll in repository without pom, as "dll" type

Then, use maven-dependency-plugin to get and copy dll were you want.

Exemple :


-maven-dependency-plugin

  
copy
process-resources

  copy


  

  company
  jni-portcomm-wince
  1.0
  dll
  
${project.build.outputDirectory}
  
  JNI_PortComm.dll


  company
  jni-portcommsimu-wince
  1.0
  dll
  
${project.build.outputDirectory}
  
  JNI_PortCommSimu.dll

  

  

  

Damien

2007/4/12, Arne Styve <[EMAIL PROTECTED]>:
> Hi,
>
> I'm relativly new to maven2, but have set up a company repository to 
> store 3rd party JARs not found (or that I haven't been able to find) 
> in the central repository, as well as our own JAR-files that w use 
> accross projects.
>
> This works fine for any 100% Pure Java JARs, but I have some problems 
> figuring out how to store JARs that comes with a DLL or two, like the 
> RxTx-library for serial communication (RS232). Anyone got any good 
> suggestions on how to store both the JAR-file (rxtx-2.1.jar) and it's 
> two DLLs (rxtxSerial.dll and rxtxParallell.dll) in a maven2 repository 
> ? Also how do I get Maven to fetch the DLLs in addition to the JAR 
> file from the repository ? And finally, when deploying the final 
> application, how do I get the DLLs to end up in the correct place ? 
> (Is it possible to pack the DLLs into my JAR file ?
>
> Any input would be of great help!
>
> Thanks!
>
> Regards
> Arne Styve
>
>
>
> -
> 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]



Re: [M2] Newbie Problem with Snapshot Dependencies

2007-04-16 Thread Jo Vandermeeren

Kevin,

You have to enable snapshots for your repository.
I haven't tried it myself using the ant lib, but you could try to set the
'releases' and 'snapshots' attributes both to 'true'.

Cheers
Jo

On 4/16/07, Kevin Moran <[EMAIL PROTECTED]> wrote:


Hello all,
I've set up a Maven 2 repository and followed the
directions at http://maven.apache.org/ant-tasks.html
to retrofit my project's build.xml's so they pull in
dependencies from my repository.

I set up each build file's classpath along the
lines of







and then referenced the classpath
("dependency.classpath") in my build files' 
tasks.

What I'm seeing is that my compilations work fine
as long as my build files don't depend on snapshot
jars.  If I specify a dependency on a snapshot, it
downloads the latest Jar from the repository, but does
not specify the correct path to it in the classpath.

What I end up with under $HOME/.m2/repository is
the Jar being installed under, say, 1.0-SNAPSHOT:

$HOME/.m2/repository/myGroup/myJar/1.0-SNAPSHOT/myJar-1.0-SNAPSHOT.jar
$HOME/.m2/repository/myGroup/myJar/1.0-SNAPSHOT/myJar-
1.0-20070416.064415-1.jar
...

But if I echo dependency.classpath in my build.xml, I
see it's not looking for myJar under 1.0-SNAPSHOT.
It's looking for it under, say, 1.0-20070416.064415-1:

$HOME/.m2/repository/myGroup/myJar/1.0-20070416.064415-1/myJar-
1.0-20070416.064415-1.jar

Because there is no 1.0-20070416.064415-1 directory
(just a 1.0-SNAPSHOT directory),  fails.

Is this a known bug or am I doing something wrong?  If
it's a known bug, is there a workaround?  I'm
desperate to get snapshots working.

Thanks in advance,
Kevin Moran

P.S. I am using Maven 2.0.5 and maven-artifact-ant-2.0.4-dep.jar.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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




[M2] Newbie Problem with Snapshot Dependencies

2007-04-16 Thread Kevin Moran
Hello all,
I've set up a Maven 2 repository and followed the
directions at http://maven.apache.org/ant-tasks.html
to retrofit my project's build.xml's so they pull in
dependencies from my repository.

I set up each build file's classpath along the
lines of







and then referenced the classpath
("dependency.classpath") in my build files' 
tasks.

What I'm seeing is that my compilations work fine
as long as my build files don't depend on snapshot
jars.  If I specify a dependency on a snapshot, it
downloads the latest Jar from the repository, but does
not specify the correct path to it in the classpath.

What I end up with under $HOME/.m2/repository is
the Jar being installed under, say, 1.0-SNAPSHOT:

$HOME/.m2/repository/myGroup/myJar/1.0-SNAPSHOT/myJar-1.0-SNAPSHOT.jar
$HOME/.m2/repository/myGroup/myJar/1.0-SNAPSHOT/myJar-1.0-20070416.064415-1.jar
...

But if I echo dependency.classpath in my build.xml, I
see it's not looking for myJar under 1.0-SNAPSHOT. 
It's looking for it under, say, 1.0-20070416.064415-1:

$HOME/.m2/repository/myGroup/myJar/1.0-20070416.064415-1/myJar-1.0-20070416.064415-1.jar

Because there is no 1.0-20070416.064415-1 directory
(just a 1.0-SNAPSHOT directory),  fails.

Is this a known bug or am I doing something wrong?  If
it's a known bug, is there a workaround?  I'm
desperate to get snapshots working.

Thanks in advance,
Kevin Moran

P.S. I am using Maven 2.0.5 and maven-artifact-ant-2.0.4-dep.jar.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Analyze dependency tree without compiling

2007-04-16 Thread Geoffrey De Smet

A direct call on that contains a bug with skin resolving:
http://jira.codehaus.org/browse/MPIR-65

Once that's fixed, it would be the solution: a quick, nicely formatted 
dependency report without compiling.


With kind regards,
Geoffrey De Smet

franz see schreef:

Good day,

Try project-info-reports:dependencies to generate the dependency report (
which you can only see from mvn site ). The generated report would be in
target\site\dependencies.html

Cheers,
Franz


Jerome Lacoste-2 wrote:

On 4/13/07, Geoffrey De Smet <[EMAIL PROTECTED]> wrote:

Hi all,

Is it possible to analyze the dependency tree without compiling?

Compiling gives a build failure, so the following commands don't work:
mvn dependency:analyze
mvn site

I think the analyzer uses the class files to identify unused
dependencies...

It is build on top of asm (http://asm.objectweb.org/).
http://maven.apache.org/plugins/maven-dependency-plugin/dependencies.html

Not sure how this works with reflection though... But i guess the
relevant libs should be marked as runtime anyway.

Jerome

-
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: Error in maven-dependency:copy

2007-04-16 Thread Brian E. Fox
Somehow you are getting the old dependency-maven-plugin instead of the 
maven-dependency-plugin. Clear the /org/codehaus/mojo metadata from your local 
repo (and any internal proxies you have) and try again. This is already fixed 
for 2.0.7doesn't help you now though ;-)

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 16, 2007 4:08 AM
To: users@maven.apache.org
Subject: Error in maven-dependency:copy

Hello,

I'm trying to copy some specific artifacts using the 
maven-dependency-plugin (copy goal). However, it seems that the plugin 
does not to find some required parameters.

I'm doing sth very simple and straightforward from what I've read from 
http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-artifacts.html
but it simply does not work...

Error log & plugin usage are just below,
Am I missing something or are there any bugs in the plugin ?

Thanks,
Hervé

=> Error log:

[INFO]task-segment: [dependency:copy]
[INFO] 

[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] One or more required plugin parameters are invalid/missing for 
'dependency:copy'

[0] inside the definition for plugin: 'dependency-maven-plugin'specify 
the following:


   ...
   VALUE
.

[INFO] 


=> Usage of this plugin in my pom.xml:


  org.apache.maven.plugins
  maven-dependency-plugin
  2.0-alpha-4
  
   

 junit
 junit
 3.8.1
 jar

   
${project.build.directory}/dependencies



-
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]



Error in maven-dependency:copy

2007-04-16 Thread Herve . CHANG

Hello,

I'm trying to copy some specific artifacts using the 
maven-dependency-plugin (copy goal). However, it seems that the plugin 
does not to find some required parameters.


I'm doing sth very simple and straightforward from what I've read from 
http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-artifacts.html

but it simply does not work...

Error log & plugin usage are just below,
Am I missing something or are there any bugs in the plugin ?

Thanks,
Hervé

=> Error log:

[INFO]task-segment: [dependency:copy]
[INFO] 

[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] One or more required plugin parameters are invalid/missing for 
'dependency:copy'


[0] inside the definition for plugin: 'dependency-maven-plugin'specify 
the following:



  ...
  VALUE
.

[INFO] 



=> Usage of this plugin in my pom.xml:


 org.apache.maven.plugins
 maven-dependency-plugin
 2.0-alpha-4
 
  
   
junit
junit
3.8.1
jar
   
  
${project.build.directory}/dependencies



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



Migrating to Maven2: interface to old build system

2007-04-16 Thread Mirko Leschikar
Hi,

finally I transfered most of our old build system to maven, but there's
still one open task. The installation team needs the created jar files
in one and the external dependencies in another directory. Our projects
contains several sub- and subsubprojects and a few assemblies.

Is there a way to do that in maven? Like creating  a meta-assembly
zip-file, containing all these files?

Thanks in advance

Mirko


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



RE: Release Notes generation

2007-04-16 Thread William Ferguson
But how do you get issues grouped by released version?
Maven-changes-plugin provides a great list of issues for the projects,
filtered by different criteria.
So it could provide all open issues for instance.

Maybe I'm missing something, but this isn't what you want for release
notes.
ReleaseNotes should contain all the resolved issues, grouped by released
version, ordered from most recent to least recent. It might also contain
a list of open issues.

The maven-changes-plugin change:jira-report looks like it is retrieving
enough information to do this, but I can't see how to configure it to
produce release notes. Can anyone tell me?

Alternatively, is there a plugin that does produce release notes (from
JIRA).

William 

-Original Message-
From: Dennis Lundberg [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 15 April 2007 6:46 AM
To: Maven Users List
Subject: Re: Release Notes generation

That'd be the maven-changes-plugin then:

   http://maven.apache.org/plugins/maven-changes-plugin/

Pankaj Tandon wrote:
> Thanks Dennis,
> That was really helpful.
> However, is there a report plugin that produces "release notes" as 
> against a change log.
> Actually, I've seen the report such a plugin produces on the site of 
> one of the maven projects (maybe one of the plugins). I just can't 
> seem to find it now. The report has a bugs, enhancements, wishlist and

> a features section, all broken out by release. This changelog plugin 
> doesn't seem to produce this kind of report.
> 
> Ofcourse, we are using the maven-release-plugin to produce the
releases.
> 
> Any suggestions what plugin produces that report?
> 
> Thanks,
> Pankaj
> 
> 
> dennisl-2 wrote:
>> Pankaj Tandon wrote:
>>> Hello,
>>> I'd like to generate release notes as a part of my mvn site command.
>>> If I annotate the site.xml with the following:
>>>
>>> 
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>> 
>>>
>>> It certainly creates the menu correctly.
>>> However, where is the plugin that will actually create the 
>>> release-notes.html?
>>> I tried project-info-reports:scm but that looks like a dead-end to 
>>> me as far as release note generation goes.
>>>
>>> Any help is appreciated.
>>>
>>> Thanks
>>> Pankaj
>> You might be looking for maven-changelog-plugin:
>>
>>http://maven.apache.org/plugins/maven-changelog-plugin/
>>
>>
>> --
>> Dennis Lundberg
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
> 


--
Dennis Lundberg

-
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]