You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by mateamargo <ma...@gmail.com> on 2007/09/24 17:29:59 UTC
Junit4 and oneTimeSetUp
I'm trying to run JUnit4 tests in one of the modules of a project that uses
3.8.1
I have added the 4.4 version as dependency and configured the
maven-surefire-plugin to 2.3
When I run the test it seems that is not running JUnit4 tests, instead is
using the 3.8.1.
I have added the method oneTimeSetUp with the @BeforeClass annotation, and
is not being called.
Is Maven overriding the old version of JUnit that it's specified in the
parent project?
--
View this message in context: http://www.nabble.com/Junit4-and-oneTimeSetUp-tf4509797s177.html#a12861920
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Junit4 and oneTimeSetUp
Posted by mateamargo <ma...@gmail.com>.
mateamargo wrote:
>
> I'm trying to run JUnit4 tests in one of the modules of a project that
> uses 3.8.1
> I have added the 4.4 version as dependency and configured the
> maven-surefire-plugin to 2.3
>
> When I run the test it seems that is not running JUnit4 tests, instead is
> using the 3.8.1.
> I have added the method oneTimeSetUp with the @BeforeClass annotation, and
> is not being called.
>
> Is Maven overriding the old version of JUnit that it's specified in the
> parent project?
>
Nevermind, I found the solution.
The test class shouldn't extend the TestCase class.
--
View this message in context: http://www.nabble.com/Junit4-and-oneTimeSetUp-tf4509797s177.html#a12861925
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Repos Managers : Archiva, artifactory, proximity, file://
Posted by nicolas de loof <ni...@gmail.com>.
I have installed archiva for our corporae repo with no issue.
I also made some contribs for a better maven1 support (I have lot's of
legacy project taht uses maven1), so that I don't require 2 similar
repos just to support m1 & m2.
Archiva works fine, and I didn't get performance issues. Archiva
1.0-beta has reworked internals to avoid memory/cpu overuse when
indexing large repositories.
Repository proxy configuration is also cleaner in latest release.
Archiva also includes some repo management tools, that check for bad
checksum, corrupted meta-datas or missing artifacts in the repo. Not
used them myself but can be usefull.
Nico.
2007/9/24, Julien Graglia <jg...@netceler.com>:
> Hi
> I have to install some maven repositories for our internal artifacts.
>
> I have already try 3 types of repo : file://, archiva and artifactory
>
> I also have heard about proximity, but the live demo is down since ..
> pfui... 2 months... not sure I want to use that..
>
> Archiva :
> pro
> store artifact on file
> cons :
> SLOW, very slow
> unstable, or I dont know how to use it... I have installed the
> last version (apache-archiva-1.0-beta-2-bin.tar.gz) and the upgrade from
> 1.0 beta1 was hard : various bug, I have lost artifacts...
> (how do you do to restart a fresh install of archiva? clear
> archiva/database?
>
> Artifactory :
> cons:
> slow too, ajax web interface is not very fast.
> use an internal db to store artifacts...
> pro :
> may be quicker than archiva
>
> file// (I mean deploy to file:// urls)
> pro:
> easy!
> store artifacts on hdd
> cons :
> no web interface to show depenencies, license, various infos...
>
>
> So here is my question : what do you use? any of those 4 "repos
> manager", another?
>
> Here is my needs :
> use it as a maven repository
> deploy artifacts (file or dav...) : snapshots and releases
> clean olds snapshots
>
>
> Thx!
>
> --
> Julien Graglia
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Repos Managers : Archiva, artifactory, proximity, file://
Posted by Julien Graglia <jg...@netceler.com>.
Brett Porter a écrit :
> Cool - you'll likely find the configuration in ~/.m2/archiva.xml. You
> can move it into the conf directory if you'd prefer.
>
> As for the slowness - is this consistent if you return to previous
> pages, or is it just the first time on each page? We're currently not
> pre-compiling the JSPs, which is a nasty first-up hit.
>
> - Brett
>
the first page is slower but the overall performances are enough for me.
There must have been some major improvements betwen beta1 and beta2 : in
beta1 web apps was slow, first page for sure, for the others I don't
remember.
Thx for your help Brett !
--
Julien Graglia
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Repos Managers : Archiva, artifactory, proximity, file://
Posted by Brett Porter <br...@gmail.com>.
Cool - you'll likely find the configuration in ~/.m2/archiva.xml. You
can move it into the conf directory if you'd prefer.
As for the slowness - is this consistent if you return to previous
pages, or is it just the first time on each page? We're currently not
pre-compiling the JSPs, which is a nasty first-up hit.
- Brett
On 25/09/2007, Julien Graglia <jg...@netceler.com> wrote:
> Julien Graglia a écrit :
> > May be I have to do a clean install, and reconfigure archiva by hand...
> Well , i just did it:
> I perform a clean install, I only modify the jetty port.
> I did NOT install my old conf/archiva.xml
>
> I start archiva and... i found my 3 managed repos, my 2 remote repo.. I
> force an upate and hop, my artifacts appears in archiva!
> I just have to recreate my users..
>
> I dont know where archiva found my repo configuration!
> now everything is ok , and the file "conf/archiva.xml" is still empty..
>
> So I'm happy now,
>
> --
> Julien Graglia
> jgraglia@netceler.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Brett Porter
Blog: http://www.devzuz.org/blogs/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Repos Managers : Archiva, artifactory, proximity, file://
Posted by Julien Graglia <jg...@netceler.com>.
Julien Graglia a écrit :
> May be I have to do a clean install, and reconfigure archiva by hand...
Well , i just did it:
I perform a clean install, I only modify the jetty port.
I did NOT install my old conf/archiva.xml
I start archiva and... i found my 3 managed repos, my 2 remote repo.. I
force an upate and hop, my artifacts appears in archiva!
I just have to recreate my users..
I dont know where archiva found my repo configuration!
now everything is ok , and the file "conf/archiva.xml" is still empty..
So I'm happy now,
--
Julien Graglia
jgraglia@netceler.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Repos Managers : Archiva, artifactory, proximity, file://
Posted by Julien Graglia <jg...@netceler.com>.
Brett Porter a écrit :
> Just on this particular one:
>
> On 25/09/2007, Julien Graglia <jg...@netceler.com> wrote:
>
>> Archiva :
>> pro
>> store artifact on file
>> cons :
>> SLOW, very slow
>>
>
> We've heard this from a couple of people, but no concrete details
> about what is slow. I run it 24x7 and don't experience it. Are you
> able to provide more details on the Archiva lists?
>
The web interface is slow : repo configuration, user rights... I agree
that this is not an essential aspect but it is what I see first..
For the deployement (webdav) and maven repository aspect, I cannot says
that it is slow : when I run mvn deploy, all the process is slow
(compile, test....) so I dont care if webdav transfer take 800 ms more
than XX solution..
>
>> unstable, or I dont know how to use it... I have installed the
>> last version (apache-archiva-1.0-beta-2-bin.tar.gz) and the upgrade from
>> 1.0 beta1 was hard : various bug, I have lost artifacts...
>> (how do you do to restart a fresh install of archiva? clear
>> archiva/database?
>>
>
> Again, more details on this would be helpful in having them resolved
> before the final. Upgrading between the betas should not have been
> problematic (especially not losing artifacts - are they stil on the
> filesystem but missing from the web interface?). You can at any time
> delete Archiva's main database and lucene indexes and they'll be
> recreated, though this is generally not needed for an upgrade.
>
I was using apache-archiva-1.0-beta-1, in /usr/local/apache-archiva
My 3 managed repos are elsewhere /opt/nc/mavenrepositories/repositories/
root@scarab-server:/usr/local# l /opt/nc/mavenrepositories/repositories/
total 20K
drwxr-xr-x 5 nc nc 4,0K 2007-09-24 14:05 .
drwxr-xr-x 3 nc nc 4,0K 2007-09-20 16:46 ..
drwxr-xr-x 2 nc nc 4,0K 2007-09-24 14:04 external <- proxy
drwxr-xr-x 4 nc nc 4,0K 2007-09-24 14:33 internal <- our corporate
releases
drwxr-xr-x 4 nc nc 4,0K 2007-09-24 14:30 snapshots <-our snapshots
my managed repo "external" is used as a proxy for 2 remote repo
:"Central Repository" and "Java.net Repository for Maven 2"
I unzip apache-archiva-1.0-beta-2
I copy conf/archiva.xml from beta1 to beta2
I edit conf/plexus.xml in beta2 and modify jetty.port
I did not touch to my repos on hdd
i start archiva beta2
in the repo view of the web apps, I found 6 (!) managed repos : mine 3
plus one copy for each, but without cron properties.
I also found 4 remote repositories, 2 "Central Repository", 2 "Java.net
Repository for Maven 2"
Then i start to delete doublons, and i lost my artifacts in
/opt/nc/mavenrepositories/repositories/
May be I have to do a clean install, and reconfigure archiva by hand...
--
Julien Graglia
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Repos Managers : Archiva, artifactory, proximity, file://
Posted by Brett Porter <br...@gmail.com>.
Just on this particular one:
On 25/09/2007, Julien Graglia <jg...@netceler.com> wrote:
> Archiva :
> pro
> store artifact on file
> cons :
> SLOW, very slow
We've heard this from a couple of people, but no concrete details
about what is slow. I run it 24x7 and don't experience it. Are you
able to provide more details on the Archiva lists?
> unstable, or I dont know how to use it... I have installed the
> last version (apache-archiva-1.0-beta-2-bin.tar.gz) and the upgrade from
> 1.0 beta1 was hard : various bug, I have lost artifacts...
> (how do you do to restart a fresh install of archiva? clear
> archiva/database?
Again, more details on this would be helpful in having them resolved
before the final. Upgrading between the betas should not have been
problematic (especially not losing artifacts - are they stil on the
filesystem but missing from the web interface?). You can at any time
delete Archiva's main database and lucene indexes and they'll be
recreated, though this is generally not needed for an upgrade.
Regards,
Brett
--
Brett Porter
Blog: http://www.devzuz.org/blogs/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Repos Managers : Archiva, artifactory, proximity, file://
Posted by Julien Graglia <jg...@netceler.com>.
Hi
I have to install some maven repositories for our internal artifacts.
I have already try 3 types of repo : file://, archiva and artifactory
I also have heard about proximity, but the live demo is down since ..
pfui... 2 months... not sure I want to use that..
Archiva :
pro
store artifact on file
cons :
SLOW, very slow
unstable, or I dont know how to use it... I have installed the
last version (apache-archiva-1.0-beta-2-bin.tar.gz) and the upgrade from
1.0 beta1 was hard : various bug, I have lost artifacts...
(how do you do to restart a fresh install of archiva? clear
archiva/database?
Artifactory :
cons:
slow too, ajax web interface is not very fast.
use an internal db to store artifacts...
pro :
may be quicker than archiva
file// (I mean deploy to file:// urls)
pro:
easy!
store artifacts on hdd
cons :
no web interface to show depenencies, license, various infos...
So here is my question : what do you use? any of those 4 "repos
manager", another?
Here is my needs :
use it as a maven repository
deploy artifacts (file or dav...) : snapshots and releases
clean olds snapshots
Thx!
--
Julien Graglia
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org