Re: Is anybody use Jfog Artifactory as their company-level repository?

2008-09-27 Thread Yoav Landman

This is an old known issue on Jetty/Redhat that is long resolved since
version 1.2.5u1 and of course in the 1.3.0 betas. It is also real easy to
fix by manually creating the work folder for Jetty.
No need to cross-post, BTW.

Yoav


陈思淼 wrote:
 
 there is a Bug about Artifactory combine jetty, it's will lost its works
 dircectory every one or two weeks ,because jetty put the works directory
 in
 the /tmp.
 So we must restart our artfactory.sh every one or two weeks.
 yestoday after we use killall -9 java to kill jetty process and restart
 it.
 there is a exception:
 
 java.lang.RuntimeException: Failed to config jcr repo.

 at org.artifactory.jcr.JcrHelper.init(JcrHelper.java:112)
 
 at
 org.artifactory.config.CentralConfig.afterPropertiesSet(CentralConfig.java:158)
 
 at
 org.artifactory.config.CentralConfigFactoryBean.afterPropertiesSet(CentralConfigFactoryBean.java:69)
 
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCap
 
 ableBeanFactory.java:1202)
 
 I guess that's becouse the killall cause some JCR problem in artifactory.
 Can anybody tell me how to stop the process politely install of killall -9
 ?
 
 

-- 
View this message in context: 
http://www.nabble.com/Is-anybody-use-Jfog-Artifactory-as-their-company-level-repository--tp19699271p19700108.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: Are we blocked by central Maven repo?

2008-09-27 Thread Jason van Zyl


On 26-Sep-08, at 9:31 PM, Beyer,Nathan wrote:

I disagree. 10gb or even 20gb isn't that much data, and rsync isn't  
pulling that same amount down every time it runs. We're doing it and  
it's working quite well. It's much more stable and reliable than any  
other current mirroring practices. The internal DNS modification  
makes user setup easy, since there isn't any. The use of mirror  
settings per device is a non-starter for large, disparate  
organizations. All of the various caching servers just aren't stable  
enough yet, in my opinion.


It is possible to get blocked by the central repo - we were  
contacted about our significant usage and told we were on the verge  
of being blacklisted, which is what lead us to rsync the mirror.




There is no way you could use less bandwidth rsyncing then using a  
repository manager. If everyone rsynced and we allowed that against  
central we would get destroyed. We only allow mirrors to rsync, not  
users and mirrors will probably also stop providing rsync access  
because the first hit is just too high now if everyone did it.



-Nathan

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2008 11:11 AM
To: Maven Users List
Subject: Re: Are we blocked by central Maven repo?

IIRC Central is well over 10gb at this point (possibly 20gb) and a
given organization will really only use at the most 1gb of it, so
rsync'ing it is just a bad idea unless you are setting up an actual
external mirror that will be available to the community.

They are already using Artifactory, and I certainly hope/assume they
are caching the results. This would limit their use of Central to one
access per artifact (GAV) plus some hits by people not using their
Artifactory instance.

I would generally doubt they are actually blocked by Central, but
rather this is an intermittent failure that will eventually resolve
itself.

Wayne

2008/9/26 Beyer,Nathan [EMAIL PROTECTED]:
It's possible that from the central repo's perspective, all traffic  
from your company may seem like it's coming from one IP address  
because of NAT.


Using an internal mirror can help alleviate things. The most non- 
invasive mirror would be to rsync the central repo periodically and  
then modify internal DNS to point 'repo1.maven.org' to an internal  
IP address. You can save a lot of bandwidth and time this way.


-Nathan

-Original Message-
From: 陈思淼 [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2008 10:47 AM
To: Maven Users List
Subject: Re: Are we blocked by central Maven repo?

we didn't do that kind of thing. we have a company-level artifactory
repository.someone didn't follow the rule but most of us are good  
citizen,

and follow the maven RULE,
Is maven block strategy to block IP  too strict?
Can I do anything to Fix it Up?



2008/9/26 Wayne Fay [EMAIL PROTECTED]


It is possible to get blocked if you are acting as a bad citizen
(downloading the entire Central repo using wget, for example). Have
you (or someone else at your company) attempted to do this from your
IP address?

If not, the repo is probably just busy, or you had some random
Internet connection failure. Try again. Normal Maven usage of the
repo will not get you blocked.

Wayne

On Fri, Sep 26, 2008 at 7:37 AM, 陈思淼 [EMAIL PROTECTED]  
wrote:

This's log from artifactory.

2008-09-26 22:27:28,025 [WARN ] (RemoteRepoBase.java:259{10}) -

repo1:

Error in getting information for 'org/apache/maven
/maven-model/2.0.4/maven-model-2.0.4.pom.sha1'
(org.apache.commons.httpclient.ConnectionPoolTimeoutException:  
Timeout

waiting
for connection).

we company only have one outlet IP address ,someone may download  
Maven

from
apache and didn't set the Mirror of central in the conf/ 
setting.xml. so

they

download the pom directly from central? Is that the reason why the

central

repo block our IP address?





--
CONFIDENTIALITY NOTICE This message and any included attachments  
are from Cerner Corporation and are intended only for the  
addressee. The information contained in this message is  
confidential and may constitute inside or non-public information  
under international, federal, or state securities laws.  
Unauthorized forwarding, printing, copying, distribution, or use of  
such information is strictly prohibited and may be unlawful. If you  
are not the addressee, please promptly delete this message and  
notify the sender of the delivery error by e-mail or you may call  
Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1)  
(816)221-1024.


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




Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com

disscuss the difference between unit test and integration-test.

2008-09-27 Thread 陈思淼
Maven lifecycle have explicit define two phase: unit-test and
integration-test.can anybody tell me the big difference about the two life
phase?


Re: How to name my own plugin?

2008-09-27 Thread Stephen Connolly
AFAIK you should call it

jcar-maven-plugin

AFAIK only plugins with the groupId org.apache.maven.plugins are allowed to
use the maven-__-plugin pattern

You should also look into the plugin goal prefix pararmeter and adding your
groupId to the plugin search stuff in settings.xml

-Stephen
2008/9/27 陈思淼 [EMAIL PROTECTED]

 I want to create a new Plugin to package my project in my own way witch I
 call it jcar, how should I name my plugin?If I don't use
 maven-jcar-plugin, i must use com.mycompany.jcar:goal to run this plugin,
 Is
 There good way for my to solve this problem?



Re: disscuss the difference between unit test and integration-test.

2008-09-27 Thread Stephen Connolly
The first one works as designed, the second one doesn't

;-)

Seriously, The test phase works well and is designed for unit tests.

There are known issues with the integration-test phase that lead many people
to do their integration testing in a different pom... although some people
have managed to work around the issues...

The main issue is that you want to start something before the integration
tests and stop it afterwards... starting before hand is easy... just attach
to the pre-integration-test phase... stoping looks easy, i.e. attach to the
post-integration-test phase... but that will never get executed if _either_
the integration-test phase fails _or_ the developer just typed mvn
integration-test... the developer needs to keep typing mvn
post-integration-test... and in reality you need to check the results of
the integration tests after post-integration-test... so they should go mvn
verify and verify is where the integration-test results should be
checked of course current plugins for testing are not well implemented
to do this

-Stephen

2008/9/27 陈思淼 [EMAIL PROTECTED]

 Maven lifecycle have explicit define two phase: unit-test and
 integration-test.can anybody tell me the big difference about the two life
 phase?



Re: disscuss the difference between unit test and integration-test.

2008-09-27 Thread 陈思淼
For example, my project is In a SOA environment, my test case depends on
another outer Service. should I put this kind of test into Unit test?or my
test should connection to database do some CRUD, should I put it in the Unit
Test phase.

There is a opinion that unit test just dependent from anything, if you
dependence on outer resource, you should mock it,and test the
real function In a integration-test phase, before package-phase all the
enviroment-variable for example the database connection url have been
replace by profile. So the integration Test should connection to the real
server to test.

Is that true?


2008/9/27 Stephen Connolly [EMAIL PROTECTED]

 The first one works as designed, the second one doesn't

 ;-)

 Seriously, The test phase works well and is designed for unit tests.

 There are known issues with the integration-test phase that lead many
 people
 to do their integration testing in a different pom... although some people
 have managed to work around the issues...

 The main issue is that you want to start something before the integration
 tests and stop it afterwards... starting before hand is easy... just attach
 to the pre-integration-test phase... stoping looks easy, i.e. attach to the
 post-integration-test phase... but that will never get executed if _either_
 the integration-test phase fails _or_ the developer just typed mvn
 integration-test... the developer needs to keep typing mvn
 post-integration-test... and in reality you need to check the results of
 the integration tests after post-integration-test... so they should go mvn
 verify and verify is where the integration-test results should be
 checked of course current plugins for testing are not well implemented
 to do this

 -Stephen

 2008/9/27 陈思淼 [EMAIL PROTECTED]

  Maven lifecycle have explicit define two phase: unit-test and
  integration-test.can anybody tell me the big difference about the two
 life
  phase?
 



Re: disscuss the difference between unit test and integration-test.

2008-09-27 Thread 陈思淼
Sorry, word mistake
There is a opinion that unit test should be  just independent from
anything,


2008/9/27 陈思淼 [EMAIL PROTECTED]

 For example, my project is In a SOA environment, my test case depends on
 another outer Service. should I put this kind of test into Unit test?or my
 test should connection to database do some CRUD, should I put it in the Unit
 Test phase.

 There is a opinion that unit test just dependent from anything, if you
 dependence on outer resource, you should mock it,and test the
 real function In a integration-test phase, before package-phase all the
 enviroment-variable for example the database connection url have been
 replace by profile. So the integration Test should connection to the real
 server to test.

 Is that true?


 2008/9/27 Stephen Connolly [EMAIL PROTECTED]

 The first one works as designed, the second one doesn't

 ;-)

 Seriously, The test phase works well and is designed for unit tests.

 There are known issues with the integration-test phase that lead many
 people
 to do their integration testing in a different pom... although some people
 have managed to work around the issues...

 The main issue is that you want to start something before the integration
 tests and stop it afterwards... starting before hand is easy... just
 attach
 to the pre-integration-test phase... stoping looks easy, i.e. attach to
 the
 post-integration-test phase... but that will never get executed if
 _either_
 the integration-test phase fails _or_ the developer just typed mvn
 integration-test... the developer needs to keep typing mvn
 post-integration-test... and in reality you need to check the results of
 the integration tests after post-integration-test... so they should go
 mvn
 verify and verify is where the integration-test results should be
 checked of course current plugins for testing are not well implemented
 to do this

 -Stephen

 2008/9/27 陈思淼 [EMAIL PROTECTED]

  Maven lifecycle have explicit define two phase: unit-test and
  integration-test.can anybody tell me the big difference about the two
 life
  phase?
 





Re: How to name my own plugin?

2008-09-27 Thread Wendy Smoak
2008/9/26 陈思淼 [EMAIL PROTECTED]:
 I want to create a new Plugin to package my project in my own way witch I
 call it jcar, how should I name my plugin?If I don't use
 maven-jcar-plugin, i must use com.mycompany.jcar:goal to run this plugin, Is
 There good way for my to solve this problem?

As Stephen mentioned, the naming convention for non-core plugins is
xyz-maven-plugin.

You can add the group id in settings.xml so that the mvn plugin:goal
syntax works.  (This is where a custom Maven distribution comes in--
replace settings.xml with one that has your internal repositories and
plugin groups.)

Another option is to submit the plugin to the Codehaus Mojo project,
if it's something that would be useful to others and your company will
allow it.

-- 
Wendy


[ANN] Maven Reactor Plugin 1.0 Released

2008-09-27 Thread Dan Fabulich


The Maven team is pleased to announce the release of the Maven Reactor 
Plugin, version 1.0.


This plugin can build a subset of interdependent projects in a reactor. It 
should be useful in large reactor builds that include irrelevant stuff 
you're not working on.


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

The Reactor plugin is normally run from the command line, like this:

* reactor:resume resumes a reactor at a certain point (e.g. when it fails 
in the middle)

Example: mvn reactor:resume -Dfrom=bar

* reactor:make builds a project X and all of the reactor projects on which 
X depends

Example: mvn reactor:make -Dmake.folders=foo,bar

* reactor:make-dependents builds a project X and all of the reactor 
projects that depend on X (the reverse of reactor:make)

Example: mvn reactor:make-dependents -Dmake.folders=foo,bar

* reactor:make-scm-changes build all reactor projects that you personally 
have changed (according to SCM) and all reactor projects that depend on 
your changes

Example: mvn reactor:make-scm-changes

This is the first release of the Maven Reactor Plugin.

Enjoy,

-The Maven team


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



Maven JPA-DTO Plugin

2008-09-27 Thread jieryn
Greetings,

I am curious if there is a plugin out there that can transform JPA
annotated classes and convert them into very simple DTOs? I am
currently doing this conversion by hand, ouch! I need near mirror
copies of my persisted classes because GWT can not work with these JPA
(via Hibernate) enabled classes. I think my usage pattern will be to
recursively mirror (same package layout from the base) a particular
package just strip out any annotations -- I just don't want to
reinvent the wheel.

Thanks in advance,
-jieryn

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

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



Question about Change List?

2008-09-27 Thread 陈思淼
We would like to document some change list information about our maven
project, for example. level up from 1.2 to 1.3. wo have BUG fix Bug
connection time out in Connection.java
 Improvement  ...
because we use JIRA together. so we think It's great if we can combine maven
change list with JIRA, anybody have some Idea about that?
Thank you for help.


no pom file found

2008-09-27 Thread Mike Oliver

I am using maven 1.1 and navigate to a project root folder where there is a
pom.xml and it points to all the sub directories.

When I run maven in that directory with one of the targets in the pom.xml 
such as

maven jar

I get the Warning: No pom file was found

what am I doing wrong.

Ollie
-- 
View this message in context: 
http://www.nabble.com/no-pom-file-found-tp19708683p19708683.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: [ANN] Maven Reactor Plugin 1.0 Released

2008-09-27 Thread Paul Benedict
Dan,

Congrats on the plugin. Could you maybe add to the plugin home page
why this plugin is required or useful? What common problem is it
trying to solve? It would be nice to know that background, because I
am grasping to find its purpose.

Paul

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



RE: no pom file found

2008-09-27 Thread Jeff Jensen
 what am I doing wrong.

Not understanding Maven 1 vs Maven 2!

Maven 1.1 uses project.xml files.  Maven 2.x uses pom.xml files.


-Original Message-
From: Mike Oliver [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 27, 2008 10:53 PM
To: users@maven.apache.org
Subject: no pom file found


I am using maven 1.1 and navigate to a project root folder where there is a
pom.xml and it points to all the sub directories.

When I run maven in that directory with one of the targets in the pom.xml 
such as

maven jar

I get the Warning: No pom file was found

what am I doing wrong.

Ollie
-- 
View this message in context:
http://www.nabble.com/no-pom-file-found-tp19708683p19708683.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]



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