# geronimo-dev mailing list archives

##### Site index · List index
Message view
Top
Subject Re: [jira] Commented: (MSUREFIRE-78) forkMode=once or pertest does not work on windows
Date Fri, 17 Mar 2006 04:25:17 GMT
```We cannot move to 2.2-SNAPSHOT yet until this blocking JIRA is resolved.

http://jira.codehaus.org/browse/MSUREFIRE-71

Whew ! There ends the matter. Let's stick to 2.1.3-SNAPSHOT for now.

Cheers

On 3/16/06, Prasad Kashyap <goyathlay.geronimo@gmail.com> wrote:
> OK. Here's the deal.
>
> In surefire-plugin 2.1.3, the system property basedir was accurately
> available to the tests.
>
> In surefire-plugin 2.2, the system property basedir is no longer
> available to the tests. However, if a module's forkmode is set to
> "pertest", then it's basedir is set in the system property. That then
> becomes available to the any other modules downstream that tries to
> read it from the environment.
>
> The 4 modules system, j2ee, security and connector-builder have their
> forkmode set to pertest. So any other module downstream that tries to
> read basedir from the system property gets the basedir of the latest
> of those 4 modules whose test executed.
>
> Cheers
>
> On 3/16/06, Prasad Kashyap <goyathlay.geronimo@gmail.com> wrote:
> > There are issues with the 2.2-SNAPSHOT.
> >
> > 1. With the connector module:
> > The connector module tests don't fail but spews a lot, A LOT, of a
> > java.lang.AssertError.
> >
> > 2. With the "basedir" system property:
> > The system property "basedir" set by the connector-builder module
> > seems to be stuck and used by other modules following it. So the tests
> > for the client-builder fails. When client-builder module's
> > PlanParsingTest reads the "basedir" system property, it gets it as set
> > to connector-builder !! If you skip the client-builder tests, then
> > tests of directory module downstream fails for the same reason. When
> > you skip the connector-builder tests, the "basedir" is set to j2ee,
> > another module further upstream.
> >
> > The same problems are not seen in surefire 2.1.3-SNAPSHOT plugin.
> >
> > Cheers
> >
> > On 3/16/06, Prasad Kashyap <goyathlay.geronimo@gmail.com> wrote:
> > > I added the following section to the <pluginRepositories> and now it
> > > LOT of other pluigns too. So I am not sure if what I did was right.
> > >
> > >   <pluginRepository>
> > >       <releases>
> > >         <enabled>true</enabled>
> > >       </releases>
> > >       <id>Apache CVS</id>
> > >       <name>Apache CVS of the Central Repository</name>
> > >       <url>http://cvs.apache.org/maven-snapshot-repository</url>
> > >    </pluginRepository>
> > >
> > > Cheers
> > >
> > > On 3/16/06, Prasad Kashyap <goyathlay.geronimo@gmail.com> wrote:
> > > > Hmm.. I tried to use the 2.2-SNAPSHOT. It couldn't find that in any repo.
> > > >
> > > > I tried to build it. But the copy in the trunk still says, 2.1.3-SNAPSHOT
.
> > > > (http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-surefire-plugin/pom.xml?view=markup)
> > > >
> > > > I couldn't find the discussion in the maven dev list that Brett mentioned.
> > > >
> > > > I am missing something here.
> > > >
> > > >
> > > > Cheers
> > > >
> > > >
> > > > On 3/16/06, anita kulshreshtha <a_kulshre@yahoo.com> wrote:
> > > > > Jacek,
> > > > >   We need to change to surefire-plugin version
> > > > > 2.2-SNAPSHOT.
> > > > >
> > > > > Thnaks
> > > > > Anita
> > > > > Note: forwarded message attached.
> > > > >
> > > > >
> > > > > __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Tired of spam?  Yahoo! Mail has the best spam protection around
> > > > > http://mail.yahoo.com
> > > > >
> > > > >
> > > > > ---------- Forwarded message ----------
> > > > > From: "Brett Porter (JIRA)" <jira@codehaus.org>
> > > > > To: a_kulshre@yahoo.com
> > > > > Date: Wed, 15 Mar 2006 20:16:32 -0600 (CST)
> > > > > Subject: [jira] Commented: (MSUREFIRE-78) forkMode=once or pertest
does not work on windows
> > > > >     [ http://jira.codehaus.org/browse/MSUREFIRE-78?page=comments#action_61177
]
> > > > >
> > > > > Brett Porter commented on MSUREFIRE-78:
> > > > > ---------------------------------------
> > > > >
> > > > > It requires 2.2-SNAPSHOT of the surefire plugin. Instructions were
details on the dev@maven list if that's necessary.
> > > > >
> > > > > > forkMode=once or pertest does not work on windows
> > > > > > -------------------------------------------------
> > > > > >
> > > > > >          Key: MSUREFIRE-78
> > > > > >          URL: http://jira.codehaus.org/browse/MSUREFIRE-78
> > > > > >      Project: Maven 2.x Surefire Plugin
> > > > > >         Type: Bug
> > > > >
> > > > > >  Environment: Win Xp
> > > > > >     Reporter: Anita Kulshreshtha
> > > > > >     Assignee: Brett Porter
> > > > >
> > > > > >
> > > > > >
> > > > > > I am building a simple HelloWorldTest.java. The test builds
fine with 'mvn test'. When I use 'mvn -DforkMode=once test',
> > > > > > I get BUILD ERROR. The surefire-reports directory is not created.
One of the 3 files left behind in the target directory is
> > > > > > surefire-classloader.properties. Its contents are :
> > > > > >  #classpath entries
> > > > > > #Wed Mar 15 08:09:47 EST 2006
> > > > > > childDelegation=true
> > > > > > classpath=D\:\\xxxxx\\geronimo\\build\\geronimo-m2\\modules\\kernel\\target\\test-classes\:D\:\\xxxxx\\geronimo\\build\\geronimo-m2\\modules\\kernel\\target\\classes\:C\:\\Documents
and Settings\\User\\.m2\\repository\\junit\\junit\\3.8.1\\junit-3.8.1.jar\:C\:\\Documents
and Settings\\User\\.m2\\repository\\org\\apache\\maven\\maven-plugin-api\\2.0\\maven-plugin-api-2.0.jar\:C\:\\Documents
and Settings\\User\\.m2\\repository\\org\\apache\\maven\\surefire\\surefire\\1.5.3-SNAPSHOT\\surefire-1.5.3-SNAPSHOT.jar
> > > > > >    It uses ':' as a path separator. This issue was discusses
earlier in Msurefire-76 and closed.
> > > > >
> > > > > --
> > > > > This message is automatically generated by JIRA.
> > > > > -
> > > > > If you think it was sent incorrectly contact one of the administrators:
> > > > >    http://jira.codehaus.org/secure/Administrators.jspa
> > > > > -