openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Dick" <michael.d.d...@gmail.com>
Subject Re: Compilation errors on trunk
Date Fri, 08 Feb 2008 15:18:10 GMT
Just went back and re-read Patrick's email in the number of tests thread.
I'm still using Surefire 2.2 so my comments about the build failing with
-Dtest=false are out of date. Sorry Patrick..

-mike

On Feb 7, 2008 11:32 PM, Michael Dick <michael.d.dick@gmail.com> wrote:

> I went ahead and fixed 374 in trunk too. I don't see any need to put them
> into 1.0.2, so I'm leaving the JIRAs open until after the release..
>
> -mike
>
>
> On Feb 7, 2008 10:18 PM, Michael Dick <michael.d.dick@gmail.com> wrote:
>
> > This is just my understanding of how it works, any maven gurus out there
> > can correct me.
> >
> > -Dtest=xxxx is a Surefire setting and will execute any test(s) that
> > match xxxx (not sure whether it supports wildcards). Unless you have a test
> > class named false, no tests will execute and  the build will report sucess
> > (at least from the command line).
> >
> > -Dmaven.test.skip=true is a more general maven setting which tells maven
> > not to compile the test code, or to run surefire. The build will report
> > success.
> >
> > I forgot about OPENJPA-347 and didn't think to check existing JIRA
> > reports. The ant task can certainly be made to skip the enhancer if
> > -Dtest=false is specified. We'll have to avoid naming any testcases false
> > but that shouldn't be too big of a deal..
> >
> > -Mike
> >
> >
> > On Feb 7, 2008 9:05 PM, Patrick Linskey <plinskey@gmail.com> wrote:
> >
> > > -Dtest=false is a surefire thing. But note that now that we're using
> > > the more recent version of surefire, -Dtest=false will report failure
> > > at the end of the test run; -DskipTests will skip tests and report
> > > success.
> > >
> > > -Patrick
> > >
> > > On Feb 7, 2008 6:33 PM, Pinaki Poddar <ppoddar@bea.com> wrote:
> > > > Hi,
> > > > The related build issue is enhancer still runs even when
> > > -Dtest=false
> > > >      http://issues.apache.org/jira/browse/OPENJPA-374
> > > >
> > > > This unnecessary enhancement slows down a modify-build-test-debug
> > > cycle.
> > > >
> > > > Some maven expert may suggest how to enhance conditionally?
> > > >
> > > > More naive question:
> > > > which part of the build switches off the surefire test execution
> > > when
> > > > -Dtest=false?
> > > >
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Michael Dick [mailto:michael.d.dick@gmail.com]
> > > > Sent: Thursday, February 07, 2008 5:48 PM
> > > > To: dev@openjpa.apache.org; rahul.thakur.xdev@gmail.com
> > > > Subject: Re: Compilation errors on trunk
> > > >
> > > > Hi Rahul,
> > > >
> > > > Looks like there is a problem if the tests aren't compiled the
> > > enhancer
> > > > will still run. I think most of us have been skipping the tests by
> > > doing
> > > > this :
> > > >
> > > > mvn clean install -Dtest=false.
> > > >
> > > > Could you give that a try and see if it works for you?
> > > >
> > > > On Feb 7, 2008 2:55 PM, Rahul Thakur <rahul.thakur.xdev3@gmail.com>
> > > > wrote:
> > > >
> > > > >
> > > > > Hi David,
> > > > >
> > > > > Can you please try this command and I would be keen to see what
> > > output
> > > >
> > > > > you get:
> > > > >
> > > > >  > mvn clean install  -Dmaven.test.skip=true
> > > > >
> > > > > Cheers,
> > > > > Rahul
> > > > >
> > > > >
> > > > > David Ezzio wrote:
> > > > > > Hi Rahul,
> > > > > >
> > > > > > On the theory that it's nice to see something working as well
as
> > > > > > something broken when trying to debug, I've attached the output
> > > from
> > > >
> > > > > > a "mvn clean compile" run here, on Windows XP, with additional
> > > > > > information on my environment setup.  Hope this helps.
> > > > > >
> > > > > > David
> > > > > >
> > > > > >
> > > > > > Rahul Thakur wrote:
> > > > > >>
> > > > > >> I was compiling with JDK 1.6 but I ensured that JAVA_HOME
was
> > > set
> > > > > >> to JDK 1.5 after Pinaki mentioned it earlier on this thread.
> > > > > >>
> > > > > >> Rahul
> > > > > >>
> > > > > >> Patrick Linskey wrote:
> > > > > >>> Are you compiling with Java 1.6? OpenJPA does not compile
with
> > > > > >>> Java 6 currently; this is due to JDBC incompatibilities.
> > > > > >>>
> > > > > >>> Note that OpenJPA does work with Java 1.6, of course.
> > > > > >>>
> > > > > >>> -Patrick
> > > > > >>>
> > > > > >>> On Feb 6, 2008 9:21 PM, Rahul Thakur <
> > > rahul.thakur.xdev@gmail.com>
> > > > > >>> wrote:
> > > > > >>>
> > > > > >>>> Those errors show up when you run the maven build
'mvn clean
> > > > > >>>> install -Dmaven.test.skip=true'
> > > > > >>>>
> > > > > >>>> Even otherwise, there are tests that are failing
for
> > > > > >>>> 'openjpa-persistence-jdbc' module here at my end.
> > > > > >>>>
> > > > > >>>> I am not sure why no one else seeing them (I am
on a
> > > different PC
> > > >
> > > > > >>>> now but same errors)
> > > > > >>>>
> > > > > >>>> Rahul
> > > > > >>>>
> > > > > >>>>
> > > > > >>>> Craig L Russell wrote:
> > > > > >>>>
> > > > > >>>>> Hi Rahul,
> > > > > >>>>>
> > > > > >>>>> On Feb 6, 2008, at 5:28 PM, Rahul Thakur wrote:
> > > > > >>>>>
> > > > > >>>>>> output with Maven 2.0.7
> > > > > >>>>>>
> > > > > >>>>>> <snip>
> > > > > >>>>>> apache\openjpa\openjpa-persistence\1.1.0-SNAPSHOT\openjpa-
> > > > > persistence-1.1.0-SNAPSHOT.jar
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>> [INFO]
> > > > > >>>>>>
> > > > >
> > > ----------------------------------------------------------------------
> > > > > ------
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>> [INFO] Building OpenJPA JPA JDBC
> > > > > >>>>>> [INFO]    task-segment: [clean, install]
> > > > > >>>>>> [INFO]
> > > > > >>>>>>
> > > > >
> > > ----------------------------------------------------------------------
> > > > > ------
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>> [INFO] [clean:clean]
> > > > > >>>>>> [INFO] Deleting directory
> > > > > >>>>>> C:\oss\openjpa\openjpa-persistence-jdbc\target
> > > > > >>>>>> [INFO] [resources:resources]
> > > > > >>>>>> [INFO] Using default encoding to copy filtered
resources.
> > > > > >>>>>> [INFO] [compiler:compile]
> > > > > >>>>>> [INFO] Compiling 65 source files to
> > > > > >>>>>> C:\oss\openjpa\openjpa-persistence-jdbc\target\classes
> > > > > >>>>>> [INFO] [resources:testResources] [INFO]
Using default
> > > encoding
> > > > > >>>>>> to copy filtered resources.
> > > > > >>>>>> [INFO] [compiler:testCompile]
> > > > > >>>>>> [INFO] Not compiling test sources
> > > > > >>>>> I'm running mvn --version Maven version: 2.0.6
> > > > > >>>>>
> > > > > >>>>> My mvn install run compiles test sources:
> > > > > >>>>>
> > > > > >>>>> [INFO] [compiler:testCompile]
> > > > > >>>>> Compiling 372 source files to
> > > > > >>>>>
> > > > >
> > > /Users/clr/openjpa/openjpa/trunk/openjpa-persistence-jdbc/target/test-
> > > > > classes
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>>> [INFO] [antrun:run {execution: default}] [INFO]
Executing
> > > tasks
> > > > > >>>>>
> > > > > >>>>> I'm wondering why doesn't yours?
> > > > > >>>>>
> > > > > >>>>> Craig
> > > > > >>>>>> [INFO] [antrun:run {execution: default}]
[INFO] Executing
> > > tasks
> > > > > >>>>>> 297  xml-persistence-unit  INFO   [main]
openjpa.Tool - No
> > > > targets
> > > > > >>>>>> were given.  Running on all classes in your
persisten t
> > > classes
> > > >
> > > > > >>>>>> list, or all metadata files in classpath
directories if you
> > > > > >>>>>> have not listed your persistent classes.
 Use -hel p to
> > > display
> > > >
> > > > > >>>>>> tool usage information.
> > > > > >>>>>> java.lang.IllegalArgumentException:
> > > > > >>>>>> java.lang.ClassNotFoundException:
> > > > > >>>>>> org.apache.openjpa.persistence.xml.SimpleXmlEntity
> > > > > >>>>> Craig Russell
> > > > > >>>>> Architect, Sun Java Enterprise System
> > > > > >>>>> http://java.sun.com/products/jdo
> > > > > >>>>> 408 276-5638 mailto:Craig.Russell@sun.com P.S.
A good JDO?
> > > O,
> > > > > >>>>> Gasp!
> > > > > >>>>>
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>
> > > > >
> > > > >
> > > >
> > > >
> > > > Notice:  This email message, together with any attachments, may
> > > contain information  of  BEA Systems,  Inc.,  its subsidiaries  and
> > >  affiliated entities,  that may be confidential,  proprietary,  copyrighted
> > >  and/or legally privileged, and is intended solely for the use of the
> > > individual or entity named in this message. If you are not the intended
> > > recipient, and have received this message in error, please immediately
> > > return this by email and then delete it.
> > > >
> > >
> > >
> > >
> > > --
> > > Patrick Linskey
> > > 202 669 5907
> > >
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message