Re: Disable artifact install or deploy to the repository.

2008-10-14 Thread Stephen Connolly

don't run mvn install ;-)

just run mvn package

mvn install means install into local repository

Sent from my iPod

On 15 Oct 2008, at 06:18, "sean chen(陈思淼)" <[EMAIL PROTECTED]>  
wrote:


I have some project such as war, it is a intermediate project which  
a ear

project depends on . and when I run mvn install. I don't want it to be
install to local repository, or deploy to remote repository.how can  
I to

disable it?


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



Disable artifact install or deploy to the repository.

2008-10-14 Thread sean chen(陈思淼)
I have some project such as war, it is a intermediate project which a ear
project depends on . and when I run mvn install. I don't want it to be
install to local repository, or deploy to remote repository.how can I to
disable it?


Re: How to subproject dependency including test-class?

2008-10-14 Thread sean chen(陈思淼)
OK ,have move the BaseTestCase to the src/main/java 's test package .Thanks
Wayne.

2008/10/15 Wayne Fay <[EMAIL PROTECTED]>

> Either move the base test class out of src/test/java and into
> src/main/java, or use the test-jar approach:
> http://maven.apache.org/guides/mini/guide-attached-tests.html
>
> Wayne
>
> On Tue, Oct 14, 2008 at 6:34 PM, sean chen(陈思淼) <[EMAIL PROTECTED]>
> wrote:
> > I have 3 sub-projects, the structure is like this:MyProject-all
> > -common
> > --client
> > --server
> >
> > the client and server depend on the common project, the src/main/java
> depend
> > on common is Good. but when I have some base test class in the
> > common-project. when I try to extend it in the client-project, the mvn
> pops
> > compile exception but it's good in the eclipse project.
> > I think the maven project dependence just exclude the test-class,
> >
> > I know I can make a common-test-project which depends on all the other
> > project to solve this problem, but that not good to be. Is there other
> > resolutions? please tell me.
> >
>


Re: How to subproject dependency including test-class?

2008-10-14 Thread Wayne Fay
Either move the base test class out of src/test/java and into
src/main/java, or use the test-jar approach:
http://maven.apache.org/guides/mini/guide-attached-tests.html

Wayne

On Tue, Oct 14, 2008 at 6:34 PM, sean chen(陈思淼) <[EMAIL PROTECTED]> wrote:
> I have 3 sub-projects, the structure is like this:MyProject-all
> -common
> --client
> --server
>
> the client and server depend on the common project, the src/main/java depend
> on common is Good. but when I have some base test class in the
> common-project. when I try to extend it in the client-project, the mvn pops
> compile exception but it's good in the eclipse project.
> I think the maven project dependence just exclude the test-class,
>
> I know I can make a common-test-project which depends on all the other
> project to solve this problem, but that not good to be. Is there other
> resolutions? please tell me.
>


How to subproject dependency including test-class?

2008-10-14 Thread sean chen(陈思淼)
I have 3 sub-projects, the structure is like this:MyProject-all
-common
--client
--server

the client and server depend on the common project, the src/main/java depend
on common is Good. but when I have some base test class in the
common-project. when I try to extend it in the client-project, the mvn pops
compile exception but it's good in the eclipse project.
I think the maven project dependence just exclude the test-class,

I know I can make a common-test-project which depends on all the other
project to solve this problem, but that not good to be. Is there other
resolutions? please tell me.


Re: must I bind antrun:run to a phase?

2008-10-14 Thread Brett Porter

remove the / wrapper and it should work.

This looks like something that would be potentially confusing, however.

- Brett

On 15/10/2008, at 11:31 AM, Andy Schlaikjer wrote:


Hi all,

I'm interested in running the maven-antrun-plugin by listing  
"antrun:run" as a default goal in a custom Profile, but this seems  
not to be working. Am I doing something wrong, or am I forced to  
bind the execution to a phase for antrun to actually execute its  
tasks?


###pom.xml###

...

 
  echo
  
   
command
echo
   
  
  
   antrun:run
   

 org.apache.maven.plugins
 maven-antrun-plugin
 1.3
 
  
   

 

   
  
 

   
  
 

 ...

###pom.xml###

When I try to run Maven using this profile, the echo doesn't come  
through:


$ mvn -Dcommand=echo
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'antrun'.
[INFO]  


[INFO] Building Example Project
[INFO]task-segment: [antrun:run]
[INFO]  


[INFO] [antrun:run]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO]  


[INFO] BUILD SUCCESSFUL
[INFO]  


[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Oct 14 20:00:31 EDT 2008
[INFO] Final Memory: 3M/7M
[INFO]  



If I add to the profile above an explicit phase to the execution,  
the echo happens normally.


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



--
Brett Porter
[EMAIL PROTECTED]
http://blogs.exist.com/bporter/


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



must I bind antrun:run to a phase?

2008-10-14 Thread Andy Schlaikjer

Hi all,

I'm interested in running the maven-antrun-plugin by listing 
"antrun:run" as a default goal in a custom Profile, but this seems not 
to be working. Am I doing something wrong, or am I forced to bind the 
execution to a phase for antrun to actually execute its tasks?


###pom.xml###

 ...
 
  
   echo
   

 command
 echo

   
   
antrun:run

 
  org.apache.maven.plugins
  maven-antrun-plugin
  1.3
  
   

 
  
 

   
  
 

   
  
 
  ...

###pom.xml###

When I try to run Maven using this profile, the echo doesn't come through:

$ mvn -Dcommand=echo
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'antrun'.
[INFO] 


[INFO] Building Example Project
[INFO]task-segment: [antrun:run]
[INFO] 


[INFO] [antrun:run]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] 


[INFO] BUILD SUCCESSFUL
[INFO] 


[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Oct 14 20:00:31 EDT 2008
[INFO] Final Memory: 3M/7M
[INFO] 



If I add to the profile above an explicit phase to the execution, the 
echo happens normally.


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



Re: RESOLVED: Default env.property values.

2008-10-14 Thread David C. Hicks
Yes, I suppose that would be one way of activating it. In my case, I 
know that the environment variable is set by Hudson, so I just added 
"-Pspecial" to my build command.


Good tip for general purposes, though!


Stevo Slavic' wrote:

Shouldn't your profile with id=special also contain:


  
special

  
env.BUILD_NUMBER
  

...
  


to have profile active only when environment variable BUILD_NUMBER is
present?

Regards,
Stevo.

On Tue, Oct 14, 2008 at 9:55 PM, David C. Hicks <[EMAIL PROTECTED]> wrote:

  

I solved this using a profile for my "special" build environment.  Pretty
straightforward.  For those who are interested, here is my solution...

Example:

  defaultValue



  
 special
 
${env.BUILD_NUMBER}
 
  



David C. Hicks wrote:



Is there a way to have Maven use a default value if the environment
variable referenced by an env.VAR property is not set?

Example:

${env.BUILD_NUMBER}  

-
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: RESOLVED: Default env.property values.

2008-10-14 Thread Stevo Slavić
Shouldn't your profile with id=special also contain:


  
special

  
env.BUILD_NUMBER
  

...
  


to have profile active only when environment variable BUILD_NUMBER is
present?

Regards,
Stevo.

On Tue, Oct 14, 2008 at 9:55 PM, David C. Hicks <[EMAIL PROTECTED]> wrote:

> I solved this using a profile for my "special" build environment.  Pretty
> straightforward.  For those who are interested, here is my solution...
>
> Example:
> 
>   defaultValue
> 
>
> 
>   
>  special
>  
> ${env.BUILD_NUMBER}
>  
>   
> 
>
>
> David C. Hicks wrote:
>
>> Is there a way to have Maven use a default value if the environment
>> variable referenced by an env.VAR property is not set?
>>
>> Example:
>>
>> ${env.BUILD_NUMBER}>
>> This is how you might capture the build number from a Hudson CI server.
>>  For a developer, though, the value would end up blank.  I'd rather it say
>> "DEVELOPMENT".  Can that be done?
>>
>> Thanks,
>> Dave
>>
>>
>> -
>> 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 and gwt problem

2008-10-14 Thread Wayne Fay
Try declaring the dependency fully yourself manually, without the
${...} stuff. If that works, it tells you something. If it still
doesn't, it tells you something else.

Alternatively, try debugging the code around the error:
> com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescri
> ptors(GwtWebInfProcessor.java:151)

Wayne

On Tue, Oct 14, 2008 at 1:48 PM, Lam, Hayward <[EMAIL PROTECTED]> wrote:
>
>> Hi there,
>>
>> I am using maven 2.0.8 and gwt 1.5.2 with maven plugin:
>>

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



Check ranges on managed dependencies

2008-10-14 Thread sverhagen

We have ranges defined on dependencies between our own components. Thus e.g.
module A can tell that it can (only) work with versions 3 through 5 of its
dependency B.

At the top level it's up to the release manager to tell which component
versions are being shipped. We use  for this. However,
this dependency management allows for the release manager to overrule the
entire ranges set-up. Thus e.g. the release manager can combine the
abovementioned A with a version 2 of its dependency B.

Is there a way to either:
- Only allow managed dependencies that comply with the ranges?
- Alert our release manager automatically if his managed dependencies
violate the ranges?


(After reviewing the code of it, I believe that dependency:analyze-dep-mgt
is unfortunately not meant for this use case.)
-- 
View this message in context: 
http://www.nabble.com/Check-ranges-on-managed-dependencies-tp19982069p19982069.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



maven and gwt problem

2008-10-14 Thread Lam, Hayward

> Hi there,
> 
> I am using maven 2.0.8 and gwt 1.5.2 with maven plugin:
> 
> com.totsp.gwt
> maven-googlewebtoolkit2-plugin
> 2.0-beta24
> 
I have a parent maven pom.xml that contains 2 children modules: base and
ui.

When there is  a dependency defined from the "ui" module's pom.xml to
reference the "base" module:



${parent.groupId}
${baseName}
${parent.version}





I get the following error when running "mvn install":

   Unable to parse module
java.lang.NullPointerException
at
com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescri
ptors(GwtWebInfProcessor.java:151)
at
com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.(GwtWebInfPro
cessor.java:106)
at
com.totsp.mavenplugin.gwt.MergeWebXmlMojo.execute(MergeWebXmlMojo.java:9
1)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:447)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278).


When I remove the dependency, this parsing error is gone.

Any idea??

Hayward

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



maven and gwt problem

2008-10-14 Thread Lam, Hayward
Hi there,

I am using maven 2.0.8 and gwt 1.5.2 with maven plugin:

com.totsp.gwt
maven-googlewebtoolkit2-plugin
2.0-beta24



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



RESOLVED: Default env.property values.

2008-10-14 Thread David C. Hicks
I solved this using a profile for my "special" build environment.  
Pretty straightforward.  For those who are interested, here is my 
solution...


Example:

   defaultValue



   
  special
  
 ${env.BUILD_NUMBER}
  
   



David C. Hicks wrote:
Is there a way to have Maven use a default value if the environment 
variable referenced by an env.VAR property is not set?


Example:

${env.BUILD_NUMBER}This is how you might capture the build number from a Hudson CI 
server.  For a developer, though, the value would end up blank.  I'd 
rather it say "DEVELOPMENT".  Can that be done?


Thanks,
Dave


-
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: Would really appreciate some feedback on this Maven2-EJB3/JPA example that I've posted, to make it better

2008-10-14 Thread Rick
I
On Tue, Oct 14, 2008 at 2:35 PM, Martin Gainty <[EMAIL PROTECTED]> wrote:

> would be nice if we could start at the top of Pikes Peak to look down on the 
> Spring vs EJB debate
> Spring promotes the use of Factories and EJB doesnt

Well, the both use DI to inject things, so maybe I'm missing that
value of the Factories to which you speak.

> Spring works well with all ORM methodologies including Hibernate and iBatis

Yes, that is Spring's awesome strength... super flexible. +1 for
Spring there, and I've been the biggest supporter of iBATIS for years
(still am.) However, if your company is decided on using ORM and you
are going to use JPA, whatever is underneath doesn't matter 'too' much
- hibernate/toplink,etc. I don't see it a big deal using JBoss or
Glassfish in that case and just 'go'.

> EJB supports implementation of Local vs Remote access for stateful and 
> stateless beans
> latest version of EJB supports Annotations to implement interfaces
> more salient points?

Yea, that's what is nice now, is setting up any kind of EJB is super
easy. Also, if you are using a JEE container you get some other things
out of the box like JMS as well without having to use third party jars
to handle things.

>
> with regards to MVC who wins and for what reasons?

Not sure what you mean there.. you mean MVC in regard to web apps? In
that case, you can use anything you want. (I haven't used Seam and it
seems overly complicated. I prefer simple Stripes for my web front
ends. )

> is this as simple as EJB is good ?
> and Spring is bad ?

I don't think it's an either/or. I think they are BOTH good. However,
here's my personal preference at this stage... (and this can change
next week:) - if I need a simple CRUD app that is all self contained
and isn't going to be a corporate behemoth...I'd use Rails. If it's
going to be a large corporate application I currently lean towards JEE
(EJB3).

In my short endeavor with Spring/JPA/Tomcat, I  found setting up
Spring to work with JPA and Tomcat to be a pain. .. .had issues with
the load time weaving and looking at the docs and googling on the
setup for Tomcat was confusing. Plus I had to start looking over a
Spring book - all for what gain? The only main benefit I found was
that it was easier to test my Spring pojos. With Spring/Tomcat, I also
had to start importing all kinds of different jars into my application
lib and tomcat lib (aspectj jars, spring jars, etc.) Overall it was
just more of a pain to me getting started. Again, I'm by no means
against a Spring/JPA/Tomcat or Resin solution. I just disagree that
things are now easier' with Spring vs using JEE5 (granted this used to
not be the case.

For those bashing JEE and EJB3 (not saying you are) do take a look at
even the simple example I posted. Look at how little configuration
there is. I'm not saying learning the spring setup is super hard...
but I (and others) have had issues trying to get it to work with
Tomcat. Sure it can work, but I was up and running in less time with
EJB3 on JBoss (and I had the same experience with Glassfish also.) And
yes, I am aware there will be some container specific files I'll need
to modify (ie pool sizes, etc. But I don't find that too big a deal..
even on Tomcat or Resin there are files you could tweak.)

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



RE: Excluding a runtime dependency during testing

2008-10-14 Thread Brian E. Fox
Hi Ryan,
To get web.xml on your test classpath, you should copy it to
/src/test/resources/web.xml. 

-Original Message-
From: Ryan Cuprak [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 13, 2008 8:23 PM
To: Maven Users List
Subject: Re: Excluding a runtime dependency during testing


Thanks,
  Below is the exception - I have come across two solutions on the web:
  1. remove RichFaces from the test classpath (from what you have said  
and my own research this isn't possible - also not a good long term  
solution)
  2. add web.xml to the test classpath

  I am not sure about how to add web.xml to the test classpath - right  
now it resides under the src/main/webapp/WEB-INF.

  I have cross posted on the Seam discussion board. It baffles me why  
adding a new jar to my project would suddenly cause this problem. The  
test case prints "Hello World" and doesn't invoke any RichFaces  
classes. Digging into the source now.

Exception:
  javax.servlet.ServletException: ServletContext not allow to  
getResourceAsStream for /WEB-INF/web.xml
at org.ajax4jsf.webapp.WebXml.init(WebXml.java:131) at  
org 
.ajax4jsf 
.resource.InternetResourceService.init(InternetResourceService.java: 
130) at org.ajax4jsf.webapp.BaseFilter.init(BaseFilter.java:181) at  
org.jboss.seam.web.Ajax4jsfFilter.init(Ajax4jsfFilter.java:82) at  
org.jboss.seam.servlet.SeamFilter.init(SeamFilter.java:97) at  
org 
.jboss 
.seam.mock.AbstractSeamTest.createSeamFilter(AbstractSeamTest.java: 
976) at  
org.jboss.seam.mock.AbstractSeamTest.setupClass(AbstractSeamTest.java: 
953) at org.jboss.seam.mock.SeamTest.setupClass(SeamTest.java:44) at  
org 
.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java: 
62) at  
org 
.apache 
.maven 
.surefire 
.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java: 
141) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at  
org 
.apache 
.maven 
.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java: 
345) at  
org 
.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java: 
1009)

On Oct 13, 2008, at 4:02 AM, Baptiste MATHUS wrote:

> Hi Ryan,
>
> I don't think it's possible. Maybe you could manually try removing the
> dependency to understand what's the cause of your problem.
> If RichFaces is doing something under the cover that causes the test  
> to
> fail, it seems to be a bad strategy not to try to tackle it  
> directltly.
> Trying to workaround it by excluding it when testing could backfire  
> when in
> prod, imo.
>
> Just a thought : couldn't your problem come from a dependency coming  
> from
> TestNg or RichFaces that makes running themselves together
> problematic/incompatible?
>
> Cheers.
>
> 2008/10/13 Ryan Cuprak <[EMAIL PROTECTED]>
>
>> Hello,
>> Does anyone know how to exclude a runtime dependency from the test
>> classpath? I am using RichFaces and TestNG. When I run my Seam  
>> TestNG tests
>> RichFaces tries to perform some operations which causes a test to  
>> fail. I
>> want RichFaces dependencies in my war file but I don't want them  
>> added to
>> the classpath when running tests.
>>
>> Thanks!
>> -Ryan
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> -- 
> Baptiste  MATHUS - http://batmat.net
> Sauvez un arbre,
> Mangez un castor !


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



Default env.property values.

2008-10-14 Thread David C. Hicks
Is there a way to have Maven use a default value if the environment 
variable referenced by an env.VAR property is not set?


Example:

${env.BUILD_NUMBER}This is how you might capture the build number from a Hudson CI server.  
For a developer, though, the value would end up blank.  I'd rather it 
say "DEVELOPMENT".  Can that be done?


Thanks,
Dave


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



RE: Would really appreciate some feedback on this Maven2-EJB3/JPA example that I've posted, to make it better

2008-10-14 Thread Martin Gainty

Hi Rick

would be nice if we could start at the top of Pikes Peak to look down on the 
Spring vs EJB debate
Spring promotes the use of Factories and EJB doesnt
Spring works well with all ORM methodologies including Hibernate and iBatis
EJB supports implementation of Local vs Remote access for stateful and 
stateless beans
latest version of EJB supports Annotations to implement interfaces
more salient points?

with regards to MVC who wins and for what reasons?
is this as simple as EJB is good ?
and Spring is bad ?
or vice-versa?

thanks/
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Tue, 14 Oct 2008 13:58:38 -0400
> From: [EMAIL PROTECTED]
> To: users@maven.apache.org
> Subject: Re: Would really appreciate some feedback on this Maven2-EJB3/JPA 
> example that I've posted, to make it better
> 
> On Tue, Oct 14, 2008 at 1:00 PM, Rusty Wright <[EMAIL PROTECTED]> wrote:
> > I guess what I'm asking is, what's the difference between EJB3 and JPA?  For
> > example, if I want to use JPA I could use Hibernate and Tomcat and use only
> > the JPA annotations.  When you say EJB3 does that mean that you're using JPA
> > in a J2EE app server, or is there more to it than that?
> 
> You are correct. However if you are going to do like you say and "Use
> JPA with Hibernate and Tomcat" you will also STILL need some sort of
> container to manage things which is where Spring comes in. You'll also
> want Spring to manage transactions (which you get for free with EJB3,
> etc) I don't want to start a whole Spring vs EJB3 war, but suffice it
> to say I found the setup much easier with EJB3. You can follow some of
> the 'war' so to speak if you look at some of the comments in this blog
> post
> http://java.dzone.com/articles/the-cost-springsource-enterpri  Both a
> Spring/JPA/Hibernate solution and an EJB3/JPA/Hibernate solution will
> work and they both have some pros and cons.
> 
> 
> (For those catching this post out of context  it started with some
> comments I was requesting in the maven setup for this tutorial I
> posted: http://www.learntechnology.net/content/ejb/maven-ejb3.jsp Any
> helpful changes are welcome, thanks.)
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/

Re: Would really appreciate some feedback on this Maven2-EJB3/JPA example that I've posted, to make it better

2008-10-14 Thread Rick
On Tue, Oct 14, 2008 at 1:00 PM, Rusty Wright <[EMAIL PROTECTED]> wrote:
> I guess what I'm asking is, what's the difference between EJB3 and JPA?  For
> example, if I want to use JPA I could use Hibernate and Tomcat and use only
> the JPA annotations.  When you say EJB3 does that mean that you're using JPA
> in a J2EE app server, or is there more to it than that?

You are correct. However if you are going to do like you say and "Use
JPA with Hibernate and Tomcat" you will also STILL need some sort of
container to manage things which is where Spring comes in. You'll also
want Spring to manage transactions (which you get for free with EJB3,
etc) I don't want to start a whole Spring vs EJB3 war, but suffice it
to say I found the setup much easier with EJB3. You can follow some of
the 'war' so to speak if you look at some of the comments in this blog
post
http://java.dzone.com/articles/the-cost-springsource-enterpri  Both a
Spring/JPA/Hibernate solution and an EJB3/JPA/Hibernate solution will
work and they both have some pros and cons.


(For those catching this post out of context  it started with some
comments I was requesting in the maven setup for this tutorial I
posted: http://www.learntechnology.net/content/ejb/maven-ejb3.jsp Any
helpful changes are welcome, thanks.)

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



maven rewriting resources question

2008-10-14 Thread Rusty Wright

With Spring the typical setup would be to have properties files, like the 
following jdbc.properties file (from the appfuse example):

   jdbc.driverClassName=${jdbc.driverClassName}
   jdbc.url=${jdbc.url}
   jdbc.username=${jdbc.username}
   jdbc.password=${jdbc.password}

Then in your applicationContext.xml refer to those properties with ${} place 
holders and Spring's PropertyPlaceholderConfigurer will do the ${} 
substitutions:

   
   
   
   classpath:jdbc.properties
   
   
   

   
   
   
   
   
   

Before I started using Maven my jdbc.properties files had the final values, no 
${} place holders.  But now with Maven the final values are in the profiles.xml 
file in a properties section in profiles.  It seems to me that since the 
applicationContext.xml file is in the resources folder that Maven can rewrite 
it just as well as it can the jdbc.properties file so I tossed my 
jdbc.properties file.

Is there any advantage to keeping the jdbc.properties file with its ${} place 
holders?  It just seems to me to be an extra and unnecessary layer.


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



Re: Would really appreciate some feedback on this Maven2-EJB3/JPA example that I've posted, to make it better

2008-10-14 Thread Rusty Wright

(Sorry to be noising up the list with my non-Maven questions.)

Rusty Wright wrote:
I guess what I'm asking is, what's the difference between EJB3 and JPA?  
For example, if I want to use JPA I could use Hibernate and Tomcat and 
use only the JPA annotations.  When you say EJB3 does that mean that 
you're using JPA in a J2EE app server, or is there more to it than that?



Rick wrote:
On Mon, Oct 13, 2008 at 6:26 PM, Rusty Wright <[EMAIL PROTECTED]> 
wrote:

I was wondering if you need to use JBoss?  Couldn't you do it as a war
instead of an ear?


Mine is an EJB3 example.  (For a decent spring/jpa example, look at 
appfuse)


-
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: Would really appreciate some feedback on this Maven2-EJB3/JPA example that I've posted, to make it better

2008-10-14 Thread Rusty Wright

I guess what I'm asking is, what's the difference between EJB3 and JPA?  For 
example, if I want to use JPA I could use Hibernate and Tomcat and use only the 
JPA annotations.  When you say EJB3 does that mean that you're using JPA in a 
J2EE app server, or is there more to it than that?


Rick wrote:

On Mon, Oct 13, 2008 at 6:26 PM, Rusty Wright <[EMAIL PROTECTED]> wrote:

I was wondering if you need to use JBoss?  Couldn't you do it as a war
instead of an ear?


Mine is an EJB3 example.  (For a decent spring/jpa example, look at appfuse)

-
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: Run a single plugin execution

2008-10-14 Thread Blake Martin
So, to paraphrase, "no, it can't be done"

Maven 1 and Ant have flexibility that Maven 2 lacks, particularly in the
form of goal-writing.

On Mon, Oct 13, 2008 at 2:54 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:

> Profiles are probably part of (or the entire) the answer.
>
> Wayne
>
> On Mon, Oct 13, 2008 at 8:39 AM, Blake Martin <[EMAIL PROTECTED]>
> wrote:
> >
> > Is it possible to run a single execution of a plugin by passing its id in
> > somehow? For example, I'd like to run some SQL scripts as a goal, rather
> > than as part of my lifecycle, but there are many executions and I only
> want
> > to run the scripts associated with a particular execution.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Excluding certain file types using the maven-war-plugin

2008-10-14 Thread Alex Coles
On Mon, Oct 13, 2008 at 11:39 PM, Alex Coles <[EMAIL PROTECTED]> wrote:
>
> Thanks for your suggestion. I can create a JIRA ticket (or even
> attempt to create a patch for the NPE -- the code looks reasonably
> straightforward).
>
> However, there still is the discrepancy with the documentation.
>
> Which syntax should I be using to exclude various file patterns from
> the resultant WAR?
>
>
> [1]
>
>   
>   maven-war-plugin
>   2.0.2
>   
>
> **/jdbc.properties,**/hibernate.cfg.xml,**/sql-map-config.xml,**/web.xml,WEB-INF/classes/META-INF/**
>
>   
>   **/.git
>   **/.gitignore
>   **/*.psd
>   assets/src-images/**
>   
>   
>   
>
>
> [2]
>
>   
>   maven-war-plugin
>   2.0.2
>   
>
> **/jdbc.properties,**/hibernate.cfg.xml,**/sql-map-config.xml,**/web.xml,WEB-INF/classes/META-INF/**
>
>   
>
>   
>   
>   
>   **/.git
>   **/.gitignore
>   **/*.psd
>   assets/src-images/**
>   
>  
>   
>   
>   
>
> Cheers
>
> Alex
>

I worked out that I should be using the following:

   
   maven-war-plugin
   2.0.2
   

**/jdbc.properties,**/hibernate.cfg.xml,**/sql-map-config.xml,**/web.xml,WEB-INF/classes/META-INF/**


**/.git/**,**/*.gitignore,assets/src-images/**,**/*.psd,**/*.fla
   
   

 should take a pattern, not a series of  elements.

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



What's the META-INF/maven/pom.xml useful in the jar or war file ?

2008-10-14 Thread sean chen(陈思淼)
I guess the Repository server can use the META-INF to generate pom when just
upload the jar to the Repository server.Is there other scenario use the
META-INF/pom.xml?


maven, eclipse, wtp 1.5.5 and deep project structures

2008-10-14 Thread Nicolas Dordet
Hi,

I read that maven-eclipse-plugin accept the deep project structures provided
by maven.
I'm using wtp 1.5.5 and I want to know if I can organize my folder that way
?
( the exemple
http://maven.apache.org/plugins/maven-eclipse-plugin/examples/multi-module-projects.htmlsay
it using
WTP 2.0 but I can't find information on the 1.5.5 version)

Regards,
Nico


Local repository config prob.. got stuck.. Qucikly reply

2008-10-14 Thread rohan chauhan


Thanks for ur reply

I just make change in Repositories tag.

Add one more
repository and make it default. now maven going to check there first but as it 
not found it goes to maven public repository. and download to my pc (Not the pc 
where archiva is running)

My New edited POM..XML is



andromda
AndroMDA Repository
http://team.andromda.org/maven2

  
maven2-repository.dev.java.net
Java.net Repository for Maven 2
https://maven2-repository.dev.java.net/nonav/repository


  
  Mycompnay internal
   http://10.10.134.60:8080/archiva/repository/C2Internal/   
   
default
   



My Complete settings.xml is




  Repository Proxy
  
true
  
  

  internal.releases
  http://C2Vaibhav:8080/archiva/repository/C2Internal/

  

  


  archiva.default
  
http://10.10.134.60:8080/archiva/repository/C2Internal/
  *

  


10.10.136.60 is PC where Archiva is running. but maven is not downloading to 
that pc instead it just check there for files and download to my local pc(Not 
Where Archiva install)
What else i need to set for


- Original Message 
From: rohan chauhan <[EMAIL PROTECTED]>
To: Maven Users List 
Sent: Tuesday, 14 October, 2008 5:28:50 PM
Subject: Re: Local repository config prob

Thanks for ur quick reply..

But i want to know then what should i include i settings.xml file
i read somewhere that u need to create server and give password there and in 
pom add dependency management tag to refer that server.. but its still not 
working

Then i try for setting virtual repositories but still same thing happaning that 
its download directly from remote public maven repository only.

can u help me to set my setting.xml file. can u give what are change needed for 
accessing pc where Archiva insttalled.



- Original Message 
From: Brett Porter <[EMAIL PROTECTED]>
To: Maven Users List 
Sent: Tuesday, 14 October, 2008 5:13:39 PM
Subject: Re: Local repository config prob

You are correct - you can remove the proxy settings in this scenario.

Cheers,
Brett

On 14/10/2008, at 10:09 PM, rohan chauhan wrote:

> Hi all
>
> I installl Apache Archiva and configure it as they menstion. and try  
> to check on local PC for mvn install command and its working well.
>
> Now thing is when i'm reffering from other PC(within intranet ip is  
> 10.20.30.40) it communicate to Maven public repository not to Apache  
> Archiva install on ip 10.20.30.40
>
> I want my maven check from ip 10.20.30.40 first. if file is not  
> there then it is download and store on ip 10.20.30.40(where Archiva  
> running) and then i access it. Do i need Proxy setting for that(as  
> i'm always communicate with ip 10.20.30.40 only)?
>
> for that i made changes in settings.xml file
>
> 
> 
>   
>  true
>  http
>  10...10.136.103
>  8080
>  solusoftindia\vtrivedi
>  pass123
>  www.google.com|*.somewhere.com
>
>  
>  
>
>  archiva.default
>  
>http://10.20.30.40:8080/archiva/repository/internal/
>  *
>
>  
> 
>
> Is there any more things needed to do my task.
>
>
> 
> Do not follow where the path may lead. Go instead where there is no  
> path and leave a trail ! ! !
>
> 
>
> 
> * Learn to enjoy every minute of your life.  Be happy now.  Don't  
> wait for
> something outside of yourself to make you happy in the future.  
> Think how
> really precious is the time you have to spend, whether it's at work  
> or with
> your family.  Every minute should be enjoyed and savored
> by forgetting problems. * - My Thought
>
> 
>
>
>  Add more friends to your messenger and enjoy! Go to 
> http://messenger.yahoo.com/invite/

--
Brett Porter
[EMAIL PROTECTED]
http://blogs.exist.com/bporter/


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


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: Phase property?

2008-10-14 Thread Jon Strayer
I solved my problem by witting my own plugin that I can add to the maven
command line in exactly the places I need it to run.  It was much easier
than I thought it would be.

On Mon, Oct 13, 2008 at 7:31 PM, Brett Porter <[EMAIL PROTECTED]>wrote:

> Using a well known project property is probably the best alternative.
> This has the advantage of also being able to be used in the project
> itself to temporarily disable the functions, but has the drawback that
> if anything persists the project the property will be visible.
>
> However, antrun doesn't have access to the project properties itself
> so that logic would need to be in plugins of their own.
>
> - Brett
>
> 2008/10/14 Jon Strayer <[EMAIL PROTECTED]>:
> > I was going to attach a fourth run to pre-site that would set the
> property
> > to block the others.
> >
> > On Sun, Oct 12, 2008 at 7:43 PM, Brett Porter <[EMAIL PROTECTED]
> >wrote:
> >
> >> I don't quite understand your use case. Wouldn't it always run in
> >> validate and block the others?
> >>
> >> 2008/10/12 Jon Strayer <[EMAIL PROTECTED]>:
> >> > I have some executions attached to three phases (validate,
> >> process-resources
> >> > & process-classes) that it would like to execute only once per build.
> >> > What's the best way to achieve that?
> >> >
> >> > I tried using the ant-run plugin to set a property but that doesn't
> seem
> >> to
> >> > be working (I haven't figured out why yet).
> >> >
> >> > --
> >> > Esse Quam Videre
> >> > To Be, rather than to Seem
> >> >
> >>
> >>
> >>
> >> --
> >> Brett Porter
> >> Blog: http://blogs.exist.com/bporter/
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > Esse Quam Videre
> > To Be, rather than to Seem
> >
>
>
>
> --
> Brett Porter
> Blog: http://blogs.exist.com/bporter/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Esse Quam Videre
To Be, rather than to Seem


Re: Strange Maven error... [Semi-solved]

2008-10-14 Thread Julien Stern
We believe we have found the source of the issue (altough we no dot 
fully understand why it happens and when).


The source of the issue is probably one of our (homemade) plugin which 
_depends_ (in the dependency sense) on maven-javadoc-plugin 2.3.


What I assume is happening is that in some configurations, a more recent 
version of the maven-javadoc-plugin is used, and that somehow when our 
plugin attemps to find the 2.3 version, it cannot because both are in 
the same classloader (well, something like that). This is why we saw 
seemingly inconsistent results depending on the version of the plugin 
that was used (or even possibly depending on the order, as I believe the 
first plugin that is loaded sets the version for the whole build).


Does that make any sense ? :)

If that is so, we will attempt to simply remove the dependency (at the 
price of a minor code duplication) to solve the issue.


--
Julien

Julien Stern wrote:

Brett Porter wrote:

This is usually because of a bad POM or other corrupted download. Are you
all using a repository manager that might have an incorrect version of 
the

javadoc plugin?


It does not appear so.
I checked the maven-javadoc-plugin in my local repo (which works) with 
the maven-javadoc-plugin in our central repo (archiva) and they are the 
same.


Actually, I have to slightly correct what I said before: on my machine, 
it works with Maven 2.0.7, but fails with 2.0.8, 2.0.9 and 2.10-M1.


On an other machine (same central repo), it works with 2.0.7 and 2.0.8 
but fails with 2.0.9 and 2.10-M1...


Really weird...

--
Julien


2008/10/14 Julien Stern <[EMAIL PROTECTED]>


Hi list,

on a few development machines (but not all), we are starting to see the
error below. It seems that it happens mostly to "new" developpers, e.g.
those starting with an empty ${HOME}/.m2 directory.

The error happens with 2.0.7, 2.0.8 and 2.0.9.

If anyone has an hint on where to look at, that would be appreciated.

Thanks.

--
Julien

Error:

[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar': Unable to 
find the
mojo 'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar' in the 
plugin

'org.apache.maven.plugins:maven-javadoc-plugin'
Component descriptor cannot be found in the component repository:
org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-javadoc-plugin:2.3:jar. 



Stack Trace:

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal 
error in

the plugin manager executing goal
'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar': Unable to 
find the
mojo 'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar' in the 
plugin

'org.apache.maven.plugins:maven-javadoc-plugin'
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543) 


   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:333)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
   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:597)
   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.PluginManagerException: Unable to 
find

the mojo 'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar' in the
plugin 'org.apache.maven.plugins:maven-javadoc-plugin'
   at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:575) 


   at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:425) 


   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) 


   ... 16 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException: 


Component descriptor cannot be found in the component repository:
org.apache.maven.plug

Local repository config prob

2008-10-14 Thread rohan chauhan

Thanks for ur reply

I just make change in Repositories tag.

Add one more
repository and make it default. now maven going to check there first but as it 
not found it goes to maven public repository. and download to my pc (Not the pc 
where archiva is running)

My New edited POM.XML is



andromda
AndroMDA Repository
http://team.andromda.org/maven2

  
maven2-repository.dev.java.net
Java.net Repository for Maven 2
https://maven2-repository.dev.java.net/nonav/repository


  
  Mycompnay internal
   http://10.10.134.60:8080/archiva/repository/C2Internal/   
   
default
   



My Complete settings.xml is




  Repository Proxy
  
true
  
  

  internal.releases
  http://C2Vaibhav:8080/archiva/repository/C2Internal/

  

  


  archiva.default
  
http://10.10.134.60:8080/archiva/repository/C2Internal/
  *

  


10.10.136.60 is PC where Archiva is running. but maven is not downloading to 
that pc instead it just check there for files and download to my local pc(Not 
Where Archiva install)
What else i need to set for


- Original Message 
From: rohan chauhan <[EMAIL PROTECTED]>
To: Maven Users List 
Sent: Tuesday, 14 October, 2008 5:28:50 PM
Subject: Re: Local repository config prob

Thanks for ur quick reply..

But i want to know then what should i include i settings.xml file
i read somewhere that u need to create server and give password there and in 
pom add dependency management tag to refer that server.. but its still not 
working

Then i try for setting virtual repositories but still same thing happaning that 
its download directly from remote public maven repository only.

can u help me to set my setting.xml file. can u give what are change needed for 
accessing pc where Archiva insttalled.



- Original Message 
From: Brett Porter <[EMAIL PROTECTED]>
To: Maven Users List 
Sent: Tuesday, 14 October, 2008 5:13:39 PM
Subject: Re: Local repository config prob

You are correct - you can remove the proxy settings in this scenario.

Cheers,
Brett

On 14/10/2008, at 10:09 PM, rohan chauhan wrote:

> Hi all
>
> I installl Apache Archiva and configure it as they menstion. and try  
> to check on local PC for mvn install command and its working well.
>
> Now thing is when i'm reffering from other PC(within intranet ip is  
> 10.20.30.40) it communicate to Maven public repository not to Apache  
> Archiva install on ip 10.20.30.40
>
> I want my maven check from ip 10.20.30.40 first. if file is not  
> there then it is download and store on ip 10.20.30.40(where Archiva  
> running) and then i access it. Do i need Proxy setting for that(as  
> i'm always communicate with ip 10.20.30.40 only)?
>
> for that i made changes in settings.xml file
>
> 
> 
>   
>  true
>  http
>  10..10.136.103
>  8080
>  solusoftindia\vtrivedi
>  pass123
>  www.google.com|*.somewhere.com
>
>  
>  
>
>  archiva.default
>  
>http://10.20.30.40:8080/archiva/repository/internal/
>  *
>
>  
> 
>
> Is there any more things needed to do my task.
>
>
> 
> Do not follow where the path may lead. Go instead where there is no  
> path and leave a trail ! ! !
>
> 
>
> 
> * Learn to enjoy every minute of your life.  Be happy now.  Don't  
> wait for
> something outside of yourself to make you happy in the future.  
> Think how
> really precious is the time you have to spend, whether it's at work  
> or with
> your family.  Every minute should be enjoyed and savored
> by forgetting problems. * - My Thought
>
> 
>
>
>  Add more friends to your messenger and enjoy! Go to 
> http://messenger.yahoo.com/invite/

--
Brett Porter
[EMAIL PROTECTED]
http://blogs.exist.com/bporter/


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


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: uses for config directory?

2008-10-14 Thread bshepherd

Stephen, We use the config directory in the same way as you. We have not
found a way to run the application with maven (Netbeans) as the config
directory is not seen by maven on the classpath. So we go through a hoky
modification of moving the needed config files in resources so they end up
int he jar for testing. You need to make sure that you remove them from
resources before you check in. Makes prone for error.

There needs to be a way that you can add config directory and/or all
configuration files needed for the application to the classpath so you can
run in the ide (or maven command line).

If some one has another idea, I would love to hear it.

Brian


Stefan Hübner wrote:
> 
> Hi all,
> 
> 
> just some thoughts:
> 
> I think maven doesn't make use of it, because the art of configuration
> management is not a simple thing to implement and one can find nearly
> in every project a different approach to it. the "config"-directory
> appears to me to be a first idea of where configuration data could be
> stored - for simple cases anyways.
> 
> so, how to use it is completely up to you. I'm using it for files
> which are only usefull in the assembly to be delivered to clients.
> i.e. files which could end up in a "/etc"-dir inside the installation
> directory of a deployed application. So I use the assembly-plugin to
> store those files in the right place in the assembly to be created.
> 
> 
> maybe, this makes some sense to you.
> 
> 
> Stefan
> 
> 2006/6/8, Wayne Fay <[EMAIL PROTECTED]>:
>> This is all theory... Perhaps while writing the docs, someone involved
>> with Maven development thought it might be useful to have a
>> src/main/config directory and so it was included in docs, but since it
>> was never implemented in the code, it is not being used today.
>>
>> Perhaps file a JIRA bug and request that references to this config
>> directory be removed if it is not actually being used, or ask for
>> clarification on the proper usage of the directory, etc.
>>
>> Wayne
>>
>> On 6/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>> wrote:
>> > I've seen all the reference information on it as well however Maven 2.X
>> > appears to completely ignore that directory...so I really don't
>> > understand what its real purpose is.
>> >
>> > So say I store application configuration files in there...now what?
>> > Maven doesn't read them or treat it as a source directory. The
>> directory
>> > doesn't show up on the classpath so the application or test classes
>> > can't read anything in it.  Packing doesn't package that dir so nothing
>> > in it will end up in any of your jar files. Assemblies don't assemble
>> > the dir so it won't end up in any of your assemblies. What else is
>> > there?
>> >
>> > Nothing in Maven seems to do anything with that directory so why is it
>> a
>> > standard directory?
>> >
>> > -Original Message-
>> > From: Wayne Fay [mailto:[EMAIL PROTECTED]
>> > Sent: Thursday, June 08, 2006 11:17 AM
>> > To: Maven Users List
>> > Subject: Re: uses for config directory?
>> >
>> > Found a reference to src/main/config in the Better Builds with Maven
>> > book (pg 273):
>> >
>> > src/main/config/
>> > Standard location for application configuration files.
>> >
>> > So I guess you'd use that directory for application configuration
>> > files. But I have never personally used it, as of this point.
>> >
>> > Wayne
>> >
>> > On 6/8/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
>> > > What version of Maven?
>> > > What "config" directory?
>> > >
>> > > Where did you read about this config directory etc?
>> > >
>> > > Wayne
>> > >
>> > > On 6/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>> > wrote:
>> > > > Can someone tell me or give me an example of what the config
>> > directory
>> > > > is actually used for?
>> > > >
>> > > >
>> > > >
>> > > > I can't seem to figure out a reasonable use for this directory.
>> > Maven
>> > > > doesn't actually appear to do anything with this dir.  It doesn't
>> > end up
>> > > > on the classpath that I can tell,  packaging and assemblies ignore
>> > it,
>> > > > you can't filter stuff in it.  What do you actually do with it?
>> > > >
>> > > >
>> > > >
>> > > > ---Rudy
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 

Re: Strange Maven error...

2008-10-14 Thread Julien Stern

Brett Porter wrote:

This is usually because of a bad POM or other corrupted download. Are you
all using a repository manager that might have an incorrect version of the
javadoc plugin?


It does not appear so.
I checked the maven-javadoc-plugin in my local repo (which works) with 
the maven-javadoc-plugin in our central repo (archiva) and they are the 
same.


Actually, I have to slightly correct what I said before: on my machine, 
it works with Maven 2.0.7, but fails with 2.0.8, 2.0.9 and 2.10-M1.


On an other machine (same central repo), it works with 2.0.7 and 2.0.8 
but fails with 2.0.9 and 2.10-M1...


Really weird...

--
Julien


2008/10/14 Julien Stern <[EMAIL PROTECTED]>


Hi list,

on a few development machines (but not all), we are starting to see the
error below. It seems that it happens mostly to "new" developpers, e.g.
those starting with an empty ${HOME}/.m2 directory.

The error happens with 2.0.7, 2.0.8 and 2.0.9.

If anyone has an hint on where to look at, that would be appreciated.

Thanks.

--
Julien

Error:

[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar': Unable to find the
mojo 'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar' in the plugin
'org.apache.maven.plugins:maven-javadoc-plugin'
Component descriptor cannot be found in the component repository:
org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-javadoc-plugin:2.3:jar.

Stack Trace:

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
the plugin manager executing goal
'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar': Unable to find the
mojo 'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar' in the plugin
'org.apache.maven.plugins:maven-javadoc-plugin'
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543)
   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:333)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
   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:597)
   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.PluginManagerException: Unable to find
the mojo 'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar' in the
plugin 'org.apache.maven.plugins:maven-javadoc-plugin'
   at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:575)
   at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:425)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
   ... 16 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Component descriptor cannot be found in the component repository:
org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-javadoc-plugin:2.3:jar.
   at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
   at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:312)
   at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
   at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:566)
   ... 18 more

-
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: New to Maven - need help

2008-10-14 Thread Martin Höller
On Tuesday 14 October 2008 Jan K wrote:
> I am very new to maven.I have downloaded apache-maven-2.0.9.I read the
> doc's and installed maven. I executed the following commands  in command
> prompt,
>
> mvn archetype:create \
>   -DarchetypeGroupId=org.apache.maven.archetypes \
>   -DgroupId=com.mycompany.app \
>   -DartifactId=my-app
>
>
> I got a folder as my-app in my local path.I can see the pom.xml.Please
> help me what should i do next?

Depends on what you want to do.

You'll find the sources in my-app/src/main/java and the tests in 
my-app/src/test/java. Adapt both as you need.

To compile, package and install into your local repository cd into 'my-app' 
and run 'mvn compile', 'mvn package' resp. 'mvn install'.

As Arnaud poited out, more information can be found in the books "Maven, The 
Definitve Guide" and "Better Builds with Maven".

hth,
- martin





signature.asc
Description: This is a digitally signed message part.


Re: New to Maven - need help

2008-10-14 Thread Arnaud HERITIER
You'll have more information in :
- http://www.sonatype.com/community/definitive_guide.html
- http://www.exist.com/better-build-maven

Arnaud

On Tue, Oct 14, 2008 at 12:54 PM, Jan K <[EMAIL PROTECTED]> wrote:

>
> I am very new to maven.I have downloaded apache-maven-2.0.9.I read the
> doc's
> and installed maven. I executed the following commands  in command prompt,
>
> mvn archetype:create \
>  -DarchetypeGroupId=org.apache.maven.archetypes \
>  -DgroupId=com.mycompany.app \
>  -DartifactId=my-app
>
>
> I got a folder as my-app in my local path.I can see the pom.xml.Please help
> me what should i do next?How to change it the project i am willing to run?
>
> --
> View this message in context:
> http://www.nabble.com/New-to-Maven---need-help-tp19971205p19971205.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>



-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


Re: Local repository config prob

2008-10-14 Thread rohan chauhan
Thanks for ur quick reply..

But i want to know then what should i include i settings.xml file
i read somewhere that u need to create server and give password there and in 
pom add dependency management tag to refer that server.. but its still not 
working

Then i try for setting virtual repositories but still same thing happaning that 
its download directly from remote public maven repository only.

can u help me to set my setting.xml file. can u give what are change needed for 
accessing pc where Archiva insttalled.



- Original Message 
From: Brett Porter <[EMAIL PROTECTED]>
To: Maven Users List 
Sent: Tuesday, 14 October, 2008 5:13:39 PM
Subject: Re: Local repository config prob

You are correct - you can remove the proxy settings in this scenario.

Cheers,
Brett

On 14/10/2008, at 10:09 PM, rohan chauhan wrote:

> Hi all
>
> I installl Apache Archiva and configure it as they menstion. and try  
> to check on local PC for mvn install command and its working well.
>
> Now thing is when i'm reffering from other PC(within intranet ip is  
> 10.20.30.40) it communicate to Maven public repository not to Apache  
> Archiva install on ip 10.20.30.40
>
> I want my maven check from ip 10.20.30.40 first. if file is not  
> there then it is download and store on ip 10.20.30.40(where Archiva  
> running) and then i access it. Do i need Proxy setting for that(as  
> i'm always communicate with ip 10.20.30.40 only)?
>
> for that i made changes in settings.xml file
>
> 
> 
>   
>  true
>  http
>  10..10.136.103
>  8080
>  solusoftindia\vtrivedi
>  pass123
>  www.google.com|*.somewhere.com
>
>  
>  
>
>  archiva.default
>  
>http://10.20.30.40:8080/archiva/repository/internal/
>  *
>
>  
> 
>
> Is there any more things needed to do my task.
>
>
> 
> Do not follow where the path may lead. Go instead where there is no  
> path and leave a trail ! ! !
>
> 
>
> 
> * Learn to enjoy every minute of your life.  Be happy now.  Don't  
> wait for
> something outside of yourself to make you happy in the future.  
> Think how
> really precious is the time you have to spend, whether it's at work  
> or with
> your family.  Every minute should be enjoyed and savored
> by forgetting problems. * - My Thought
>
> 
>
>
>  Add more friends to your messenger and enjoy! Go to 
> http://messenger.yahoo.com/invite/

--
Brett Porter
[EMAIL PROTECTED]
http://blogs.exist.com/bporter/


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


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: Local repository config prob

2008-10-14 Thread Baptiste MATHUS
... I hope the settings.xml you put is not the one you provided. In fact, I
guess "10..10.136.103" is not a fully compliant IP address for your proxy...

If you plan to redirect all requests though your archiva server, the I'd
advice you not to specify any proxy. If there's a maven repository manager
inside your network, you're more likely going to try to push all requests
though it. Seems better to fail if not, imo.

For your archiva config : you can test it though a classical web browser
first. Did you try it? If you can't download with it, then it won't work
with maven too.

Cheers.

2008/10/14 rohan chauhan <[EMAIL PROTECTED]>

> Hi all
>
> I installl Apache Archiva and configure it as they menstion. and try to
> check on local PC for mvn install command and its working well.
>
> Now thing is when i'm reffering from other PC(within intranet ip is
> 10.20.30.40) it communicate to Maven public repository not to Apache
> Archiva install on ip 10.20.30.40
>
> I want my maven check from ip 10.20.30.40 first. if file is not there then
> it is download and store on ip 10.20.30.40(where Archiva running) and then
> i access it. Do i need Proxy setting for that(as i'm always communicate with
> ip 10.20.30.40 only)?
>
> for that i made changes in settings.xml file
>
> 
> 
>   
>  true
>  http
>  10..10.136.103
>  8080
>  solusoftindia\vtrivedi
>  pass123
>  www.google.com|*.somewhere.com
>
>  
>  
>
>  archiva.default
>  
>http://10.20.30.40:8080/archiva/repository/internal/
>  *
>
>  
> 
>
>  Is there any more things needed to do my task.
>
>
> 
> Do not follow where the path may lead. Go instead where there is no path
> and leave a trail ! ! !
>
> 
>
> 
> * Learn to enjoy every minute of your life.  Be happy now.  Don't wait for
> something outside of yourself to make you happy in the future.  Think how
> really precious is the time you have to spend, whether it's at work or with
> your family.  Every minute should be enjoyed and savored
> by forgetting problems. * - My Thought
>
> 
>
>
>  Add more friends to your messenger and enjoy! Go to
> http://messenger.yahoo.com/invite/
>



-- 
Baptiste  MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


Re: Local repository config prob

2008-10-14 Thread Brett Porter

You are correct - you can remove the proxy settings in this scenario.

Cheers,
Brett

On 14/10/2008, at 10:09 PM, rohan chauhan wrote:


Hi all

I installl Apache Archiva and configure it as they menstion. and try  
to check on local PC for mvn install command and its working well.


Now thing is when i'm reffering from other PC(within intranet ip is  
10.20.30.40) it communicate to Maven public repository not to Apache  
Archiva install on ip 10.20.30.40


I want my maven check from ip 10.20.30.40 first. if file is not  
there then it is download and store on ip 10.20.30.40(where Archiva  
running) and then i access it. Do i need Proxy setting for that(as  
i'm always communicate with ip 10.20.30.40 only)?


for that i made changes in settings.xml file



  
 true
 http
 10..10.136.103
 8080
 solusoftindia\vtrivedi
 pass123
 www.google.com|*.somewhere.com
   
 
 
   
 archiva.default
 

   http://10.20.30.40:8080/archiva/repository/internal/
 *
   
 


Is there any more things needed to do my task.



Do not follow where the path may lead. Go instead where there is no  
path and leave a trail ! ! !





* Learn to enjoy every minute of your life.  Be happy now.  Don't  
wait for
something outside of yourself to make you happy in the future.   
Think how
really precious is the time you have to spend, whether it's at work  
or with

your family.  Every minute should be enjoyed and savored
by forgetting problems. * - My Thought




 Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/


--
Brett Porter
[EMAIL PROTECTED]
http://blogs.exist.com/bporter/


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



Local repository config prob

2008-10-14 Thread rohan chauhan
Hi all

I installl Apache Archiva and configure it as they menstion. and try to check 
on local PC for mvn install command and its working well.

Now thing is when i'm reffering from other PC(within intranet ip is 
10.20.30.40) it communicate to Maven public repository not to Apache Archiva 
install on ip 10.20.30.40

I want my maven check from ip 10.20.30.40 first. if file is not there then it 
is download and store on ip 10.20.30.40(where Archiva running) and then i 
access it. Do i need Proxy setting for that(as i'm always communicate with ip 
10.20.30.40 only)? 

for that i made changes in settings.xml file



   
  true
  http
  10..10.136.103
  8080
  solusoftindia\vtrivedi
  pass123
  www.google.com|*.somewhere.com

  
  

  archiva.default
  
http://10.20.30.40:8080/archiva/repository/internal/
  *

  


 Is there any more things needed to do my task.



Do not follow where the path may lead. Go instead where there is no path and 
leave a trail ! ! !




* Learn to enjoy every minute of your life.  Be happy now.  Don't wait for
something outside of yourself to make you happy in the future.  Think how
really precious is the time you have to spend, whether it's at work or with
your family.  Every minute should be enjoyed and savored 
by forgetting problems. * - My Thought




  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

New to Maven - need help

2008-10-14 Thread Jan K

I am very new to maven.I have downloaded apache-maven-2.0.9.I read the doc's
and installed maven. I executed the following commands  in command prompt,

mvn archetype:create \
  -DarchetypeGroupId=org.apache.maven.archetypes \
  -DgroupId=com.mycompany.app \
  -DartifactId=my-app


I got a folder as my-app in my local path.I can see the pom.xml.Please help
me what should i do next?How to change it the project i am willing to run?

-- 
View this message in context: 
http://www.nabble.com/New-to-Maven---need-help-tp19971205p19971205.html
Sent from the Maven - Users mailing list archive at Nabble.com.


Re: Strange Maven error...

2008-10-14 Thread Brett Porter
This is usually because of a bad POM or other corrupted download. Are you
all using a repository manager that might have an incorrect version of the
javadoc plugin?

2008/10/14 Julien Stern <[EMAIL PROTECTED]>

> Hi list,
>
> on a few development machines (but not all), we are starting to see the
> error below. It seems that it happens mostly to "new" developpers, e.g.
> those starting with an empty ${HOME}/.m2 directory.
>
> The error happens with 2.0.7, 2.0.8 and 2.0.9.
>
> If anyone has an hint on where to look at, that would be appreciated.
>
> Thanks.
>
> --
> Julien
>
> Error:
>
> [INFO] Internal error in the plugin manager executing goal
> 'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar': Unable to find the
> mojo 'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar' in the plugin
> 'org.apache.maven.plugins:maven-javadoc-plugin'
> Component descriptor cannot be found in the component repository:
> org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-javadoc-plugin:2.3:jar.
>
> Stack Trace:
>
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
> the plugin manager executing goal
> 'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar': Unable to find the
> mojo 'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar' in the plugin
> 'org.apache.maven.plugins:maven-javadoc-plugin'
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543)
>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:333)
>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>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:597)
>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.PluginManagerException: Unable to find
> the mojo 'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar' in the
> plugin 'org.apache.maven.plugins:maven-javadoc-plugin'
>at
> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:575)
>at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:425)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>... 16 more
> Caused by:
> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
> Component descriptor cannot be found in the component repository:
> org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-javadoc-plugin:2.3:jar.
>at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
>at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:312)
>at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
>at
> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:566)
>... 18 more
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Brett Porter
http://blogs.exist.com/bporter/


activate-profiles order of execution

2008-10-14 Thread ez

how is the order of profiles determined?
can i force a certain order?
-- 
View this message in context: 
http://www.nabble.com/activate-profiles-order-of-execution-tp19969868p19969868.html
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: question about the pluxes components.xml?

2008-10-14 Thread Simone Gianni
Hi 陈思淼,
yes, exactly, Spring is an IOC container , and it is an evolution of
previous ones like Avalon/Plexus. We could say that if you name all your
spring beans com.yourcompany.package.InterfaceName#hint you are doing
the same.

Simone

陈思淼 wrote:
> I am better familiar with spring-framework, is the role-hint the same as the
> spring "bean id" which the container to locate the bean when needed, and the
> pluxes more specific becourse it group by interface type and use role-hint
> to describe eche one?
>
> 2008/10/14 Simone Gianni <[EMAIL PROTECTED]>
>
>   
>> Hi 陈思淼,
>> in Avalon like IOC containers (like plexus), there are two concepts :
>> the role interface and the hint. Basically, you can have a
>> my.company.logging.Logger interface, and then in your system load more
>> than one class ("actor") implementing that interface (having the Logging
>> "role" ... in Avalon terminology) and configure each one with a
>> role-hint, for example "file", "console" etc.. Then, e component that
>> wants to log, can ask the container to obtain a Logger with role-hint
>> "file" if logging to a file is desired.
>>
>> For LifecycleMapping is the same, you can have more than one "actor"
>> having the rolw LifecycleMapping, each with its hint (jar, war, pom
>> etc..), when Maven needs to build a project, it uses the content of the
>>  element as the hint to obtain the correct LifecycleMapping.
>> If you need to add your own lifecycle (packaging), you will define a new
>> hint, and then use it in the  element of your POMs.
>>
>> Hope this helps,
>> Simone
>>
>> 陈思淼 wrote:
>> 
>>>  
>>>   org.apache.maven.lifecycle.mapping.LifecycleMapping
>>>   war
>>>
>>>   
>> org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
>> 
>>> what's the role-hint meaning? can anybody give some document ion to
>>> describe the components.xml?
>>>
>>>
>>>   
>> --
>> Simone GianniCEO Semeru s.r.l.   Apache Committer
>> MALE human being programming a computer   http://www.simonegianni.it/
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> 


-- 
Simone GianniCEO Semeru s.r.l.   Apache Committer
MALE human being programming a computer   http://www.simonegianni.it/


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



Re: question about the pluxes components.xml?

2008-10-14 Thread Heinrich Nirschl
2008/10/13 陈思淼 <[EMAIL PROTECTED]>:
> I am better familiar with spring-framework, is the role-hint the same as the
> spring "bean id" which the container to locate the bean when needed, and the
> pluxes more specific becourse it group by interface type and use role-hint
> to describe eche one?
>

role and role-hint together more or less correspond to what spring
calls the bean id.


Strange Maven error...

2008-10-14 Thread Julien Stern

Hi list,

on a few development machines (but not all), we are starting to see the 
error below. It seems that it happens mostly to "new" developpers, e.g. 
those starting with an empty ${HOME}/.m2 directory.


The error happens with 2.0.7, 2.0.8 and 2.0.9.

If anyone has an hint on where to look at, that would be appreciated.

Thanks.

--
Julien

Error:

[INFO] Internal error in the plugin manager executing goal 
'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar': Unable to find 
the mojo 'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar' in the 
plugin 'org.apache.maven.plugins:maven-javadoc-plugin'
Component descriptor cannot be found in the component repository: 
org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-javadoc-plugin:2.3:jar.


Stack Trace:

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error 
in the plugin manager executing goal 
'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar': Unable to find 
the mojo 'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar' in the 
plugin 'org.apache.maven.plugins:maven-javadoc-plugin'
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543)
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:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
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:597)
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.PluginManagerException: Unable to 
find the mojo 'org.apache.maven.plugins:maven-javadoc-plugin:2.3:jar' in 
the plugin 'org.apache.maven.plugins:maven-javadoc-plugin'
at 
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:575)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:425)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)

... 16 more
Caused by: 
org.codehaus.plexus.component.repository.exception.ComponentLookupException: 
Component descriptor cannot be found in the component repository: 
org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-javadoc-plugin:2.3:jar.
at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:312)
at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
at 
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:566)

... 18 more

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



Re: Excluding a runtime dependency during testing

2008-10-14 Thread Stephen Connolly
I suspect it will be by adding the file to some sub-folder of src/tes/resources

perhaps src/test/resources/WEB-INF/web.xml but you may need to play around a bit

-Stephen

2008/10/14 Ryan Cuprak <[EMAIL PROTECTED]>:
>
> Thanks,
>  Below is the exception - I have come across two solutions on the web:
>  1. remove RichFaces from the test classpath (from what you have said and my
> own research this isn't possible - also not a good long term solution)
>  2. add web.xml to the test classpath
>
>  I am not sure about how to add web.xml to the test classpath - right now it
> resides under the src/main/webapp/WEB-INF.
>
>  I have cross posted on the Seam discussion board. It baffles me why adding
> a new jar to my project would suddenly cause this problem. The test case
> prints "Hello World" and doesn't invoke any RichFaces classes. Digging into
> the source now.
>
> Exception:
>  javax.servlet.ServletException: ServletContext not allow to
> getResourceAsStream for /WEB-INF/web.xml
> at org.ajax4jsf.webapp.WebXml.init(WebXml.java:131) at
> org.ajax4jsf.resource.InternetResourceService.init(InternetResourceService.java:130)
> at org.ajax4jsf.webapp.BaseFilter.init(BaseFilter.java:181) at
> org.jboss.seam.web.Ajax4jsfFilter.init(Ajax4jsfFilter.java:82) at
> org.jboss.seam.servlet.SeamFilter.init(SeamFilter.java:97) at
> org.jboss.seam.mock.AbstractSeamTest.createSeamFilter(AbstractSeamTest.java:976)
> at
> org.jboss.seam.mock.AbstractSeamTest.setupClass(AbstractSeamTest.java:953)
> at org.jboss.seam.mock.SeamTest.setupClass(SeamTest.java:44) at
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)
> at
> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:141)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
> at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>
> On Oct 13, 2008, at 4:02 AM, Baptiste MATHUS wrote:
>
>> Hi Ryan,
>>
>> I don't think it's possible. Maybe you could manually try removing the
>> dependency to understand what's the cause of your problem.
>> If RichFaces is doing something under the cover that causes the test to
>> fail, it seems to be a bad strategy not to try to tackle it directltly.
>> Trying to workaround it by excluding it when testing could backfire when
>> in
>> prod, imo.
>>
>> Just a thought : couldn't your problem come from a dependency coming from
>> TestNg or RichFaces that makes running themselves together
>> problematic/incompatible?
>>
>> Cheers.
>>
>> 2008/10/13 Ryan Cuprak <[EMAIL PROTECTED]>
>>
>>> Hello,
>>> Does anyone know how to exclude a runtime dependency from the test
>>> classpath? I am using RichFaces and TestNG. When I run my Seam TestNG
>>> tests
>>> RichFaces tries to perform some operations which causes a test to fail. I
>>> want RichFaces dependencies in my war file but I don't want them added to
>>> the classpath when running tests.
>>>
>>> Thanks!
>>> -Ryan
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>> --
>> Baptiste  MATHUS - http://batmat.net
>> Sauvez un arbre,
>> Mangez un castor !
>
>

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



Is there any document about the plugin IOC?

2008-10-14 Thread 陈思淼
I can use the javadoc annotation to inject lots of useful thing to my own
plugin just like:

> @parameter
> expression="${project.build.directory}/${project.build.finalName}"
>
@parameter expression="${project.build.finalName}"
>

Is there any document I can get all the list of artifact which I can inject
into my plugin?


Re: The integration-test phase meaning?

2008-10-14 Thread 陈思淼
Im looking forward to attending your ApacheCon topic speech but I cant. can
you share some ppt or topic resources so i can learn something from it.

2008/10/14 Brett Porter <[EMAIL PROTECTED]>

> You're correct, though realistically a number of projects go for a separate
> project for this type of testing.
> I'm currently preparing some slides on this for my talk at ApacheCon - they
> should be posted after the conference. If anyone has any particular testing
> practices they want to see covered, let me know :)
>
> Cheers,
> Brett
>
> 2008/10/14 陈思淼 <[EMAIL PROTECTED]>
>
> > If the Project contains lots of subproject and the final project result
> is
> > a
> > Big EAR package.
> > I think the integration-test is to put the ear package into jboss or
> other
> > app server to do the test thing lots of environment variable for example:
> > database connection parameter, the domain url, the SOA service url are
> > different with the unit test.
> >
> > but the integration-test is hard to perform because of the environment
> > difficult.
> > I can see the maven-war-plugin have the war:run mojo binding with the
> > integration-test , Is there any best practice who can make smooth and
> > productive integration-test in their project, can you share with me ?
> >
>
>
>
> --
> Brett Porter
> http://blogs.exist.com/bporter/
>


Re: SCM URL resolution/calculation by Maven

2008-10-14 Thread Stefan Fritz

Ok, I tried to test that:

In my parent pom I have defined:

 
   ...
   ${groupId}/${artifactId}
 

 
   scm:svn:https://myserver/${urlPattern}/trunk
   scm:svn:https://myserver/${urlPattern}/trunk
 

In my project I have defined this as the parent and added no additional 
SCM configuration.
Maven just adds the artifactID to the URL but the project uses 
trunk/tags/branches directories.


/groupID/artifactID/trunk/pom.xml
/groupID/artifactID/tags
/groupID/artifactID/branches

Maven resolves the URL to 
https://myserver/groupID/artifactID/trunk/artifactID.
It seems that as soon as I want to adhere to the trunk/tags/branches 
structure (which I need for the release process) the SCM resolution is 
not usable.

Correct or is there a "recognizeTrunkTagsBranches" switch somewhere? ;-)

Thanks
Stefan





Brett Porter wrote:


On 14/10/2008, at 6:38 PM, Stefan Fritz wrote:


Hi all,

I want to avoid putting a SCM configuration in every pom.
For modules in a module build I found out that maven adds the 
artifact-id to the module-parent-pom's scm url .
I was not able to find any information about the rules of scm URL 
resolution.


What are the rules for SCM URL calculation/resolution?


They are as you've said.



What are my options to define generic scm urls in a parent pom maybe 
with placeholders for artifactID and groupID?
What if my svn structure doesn't 100% match groupID/artifactID (e.g. 
groupID=com.mycomp --> com/mycomp/ArtifactID)?


At present there's no facility to do this, so you need to redefine 
them correctly for the POMs that don't match the convention.


- Brett




Thanks
Stefan




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



--
Brett Porter
[EMAIL PROTECTED]
http://blogs.exist.com/bporter/


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



[2.0.9] connection timed out

2008-10-14 Thread Adrian Herscu

Hi all,

I have a Continuum nightly schedule that runs a mvn deploy. Sometimes 
the connection to the remote repository times out and I am getting an 
error such:


[INFO] [deploy:deploy]
altDeploymentRepository = null
[INFO] Retrieving previous build number from [EMAIL PROTECTED]
Uploading: 
https://webdav.wirexn.net:443/snapshots/org/wirexn/buildsys/ant/bs/wirexn-buildsys-ant-bs/1.0-beta-1-SNAPSHOT/wirexn-buildsys-ant-bs-1.0-beta-1-SNAPSHOT.jar

[INFO] Retrieving previous metadata from [EMAIL PROTECTED]
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] Error installing artifact's metadata: repository metadata for: 
'snapshot 
org.wirexn.buildsys.ant.bs:wirexn-buildsys-ant-bs:1.0-beta-1-SNAPSHOT' 
could not be retrieved from repository: [EMAIL PROTECTED] due 
to an error: Failed to transfer file: 
https://webdav.wirexn.net:443/snapshots/org/wirexn/buildsys/ant/bs/wirexn-buildsys-ant-bs/1.0-beta-1-SNAPSHOT/maven-metadata.xml. 
Return code is: 0


Connection timed out: connect





Any way to make it retry? Perhaps, setting a different timeout limit?

Adrian.


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



Re: The integration-test phase meaning?

2008-10-14 Thread Brett Porter
You're correct, though realistically a number of projects go for a separate
project for this type of testing.
I'm currently preparing some slides on this for my talk at ApacheCon - they
should be posted after the conference. If anyone has any particular testing
practices they want to see covered, let me know :)

Cheers,
Brett

2008/10/14 陈思淼 <[EMAIL PROTECTED]>

> If the Project contains lots of subproject and the final project result is
> a
> Big EAR package.
> I think the integration-test is to put the ear package into jboss or other
> app server to do the test thing lots of environment variable for example:
> database connection parameter, the domain url, the SOA service url are
> different with the unit test.
>
> but the integration-test is hard to perform because of the environment
> difficult.
> I can see the maven-war-plugin have the war:run mojo binding with the
> integration-test , Is there any best practice who can make smooth and
> productive integration-test in their project, can you share with me ?
>



-- 
Brett Porter
http://blogs.exist.com/bporter/


Re: How to release module build projects?

2008-10-14 Thread Brett Porter
release:* is designed for a single trunk. So if you'd like to develop and
release them together, keep them in the same trunk. If you'd like to develop
and branch them separately as you have below, released them separately.
Cheers,
Brett

2008/10/14 Stefan Fritz <[EMAIL PROTECTED]>

> Hi,
>
> I try to use mvn release in a multi-module build scenario but I'm not sure
> whether I go into the right direction.
> Our standalone projects have the following structure:
>
> projA
>   \_trunk
>   \_tags
>   \_branches
>
> We also have some multi module projects and I wonder what is the best way
> to structure these to be able to run a "mvn release:perform" on the module
> build pom?
>
> My first thought was to have trunk/tags/branches on the module-parent as
> well:
>
> moduleBuild
>   \_trunk
>   |  \_pom.xml (which defines the modules via
> ../projA/trunk etc.)
>\_tags
>\_branches
>\_projA
>   \_trunk
>   \_tags
>   \_branches
>\_projB
>   \_trunk
>   \_tags
>   \_branches
>
> Is that recommended or is there a smarter way to do that?
> Is there any documentation regarding releasing module builds?
>
> Thanks
> Stefan
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Brett Porter
http://blogs.exist.com/bporter/


Re: SCM URL resolution/calculation by Maven

2008-10-14 Thread Brett Porter


On 14/10/2008, at 6:38 PM, Stefan Fritz wrote:


Hi all,

I want to avoid putting a SCM configuration in every pom.
For modules in a module build I found out that maven adds the  
artifact-id to the module-parent-pom's scm url .
I was not able to find any information about the rules of scm URL  
resolution.


What are the rules for SCM URL calculation/resolution?


They are as you've said.



What are my options to define generic scm urls in a parent pom maybe  
with placeholders for artifactID and groupID?
What if my svn structure doesn't 100% match groupID/artifactID (e.g.  
groupID=com.mycomp --> com/mycomp/ArtifactID)?


At present there's no facility to do this, so you need to redefine  
them correctly for the POMs that don't match the convention.


- Brett




Thanks
Stefan




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



--
Brett Porter
[EMAIL PROTECTED]
http://blogs.exist.com/bporter/


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



SCM URL resolution/calculation by Maven

2008-10-14 Thread Stefan Fritz

Hi all,

I want to avoid putting a SCM configuration in every pom.
For modules in a module build I found out that maven adds the 
artifact-id to the module-parent-pom's scm url .
I was not able to find any information about the rules of scm URL 
resolution.


What are the rules for SCM URL calculation/resolution?
What are my options to define generic scm urls in a parent pom maybe 
with placeholders for artifactID and groupID?
What if my svn structure doesn't 100% match groupID/artifactID (e.g. 
groupID=com.mycomp --> com/mycomp/ArtifactID)?


Thanks
Stefan




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



Re: Creating Development Environment Repository

2008-10-14 Thread Stefan Fritz

Hi,

You can use a repository manager to do that e.g. Nexus: 
http://nexus.sonatype.org/ or http://archiva.apache.org/.

We use Nexus so I can only talk about Nexus here.

Configure repository groups there and all your repository references 
(e.g. in the parent poms) should point to the Nexus.


hth
Stefan

rohan chauhan wrote:

Hi all,

I want to create a maven repository in our organization. Which can work in 
following manner.

All developers first check from our organization repository first. If file is there then they download it to their location.So no need to go on Maven public repository. But if in case file is not available in our organization repository then it is downloaded form Maven public repository and stored in organization's repository. And that file is then transfer to appropriate needed user. So that nest time when any of the developer needs that file it will available. 







I want above facility.

Can u give me information about how to create this kind of repository.
1)Which tool needed to develop this repository.
2)What change needed in Maven to configure this development environment.
3)How to configure that tool for Maven

Thank you all







Do not follow where the path may lead. Go instead where there is no path and 
leave a trail ! ! !




* Learn to enjoy every minute of your life.  Be happy now.  Don't wait for
something outside of yourself to make you happy in the future.  Think how
really precious is the time you have to spend, whether it's at work or with
your family.  Every minute should be enjoyed and savored 
by forgetting problems. * - My Thought





  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/
  



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



Re: Creating Development Environment Repository

2008-10-14 Thread Brett Porter

http://maven.apache.org/repository-management.html

On 14/10/2008, at 6:31 PM, rohan chauhan wrote:




Hi all,

I want to create a maven repository in our organization. Which can  
work in following manner.


All developers first check from our organization repository first.  
If file is there then they download it to their location.So no need  
to go on Maven public repository. But if in case file is not  
available in our organization repository then it is downloaded form  
Maven public repository and stored in organization's repository. And  
that file is then transfer to appropriate needed user. So that nest  
time when any of the developer needs that file it will available.







I want above facility.

Can u give me information about how to create this kind of repository.
1)Which tool needed to develop this repository.
2)What change needed in Maven to configure this development  
environment.

3)How to configure that tool for Maven

Thank you all







Do not follow where the path may lead. Go instead where there is no  
path and leave a trail ! ! !





* Learn to enjoy every minute of your life.  Be happy now.  Don't  
wait for
something outside of yourself to make you happy in the future.   
Think how
really precious is the time you have to spend, whether it's at work  
or with

your family.  Every minute should be enjoyed and savored
by forgetting problems. * - My Thought




 Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/


--
Brett Porter
[EMAIL PROTECTED]
http://blogs.exist.com/bporter/


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



Creating Development Environment Repository

2008-10-14 Thread rohan chauhan


Hi all,

I want to create a maven repository in our organization. Which can work in 
following manner.

All developers first check from our organization repository first. If file is 
there then they download it to their location.So no need to go on Maven public 
repository. But if in case file is not available in our organization repository 
then it is downloaded form Maven public repository and stored in organization's 
repository. And that file is then transfer to appropriate needed user. So that 
nest time when any of the developer needs that file it will available. 






I want above facility.

Can u give me information about how to create this kind of repository.
1)Which tool needed to develop this repository.
2)What change needed in Maven to configure this development environment.
3)How to configure that tool for Maven

Thank you all







Do not follow where the path may lead. Go instead where there is no path and 
leave a trail ! ! !




* Learn to enjoy every minute of your life.  Be happy now.  Don't wait for
something outside of yourself to make you happy in the future.  Think how
really precious is the time you have to spend, whether it's at work or with
your family.  Every minute should be enjoyed and savored 
by forgetting problems. * - My Thought




  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/