You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Luciano Resende <lu...@gmail.com> on 2007/10/11 19:49:41 UTC
JDK5 versus JDK6, was Re: svn commit: r583639 - /incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
This change breaks the build using JDK 5 for me. Moving the pom.xml to
a revision previous to this change allow me to build ok. Should we use
a profile activated by JDK version ?
On 10/10/07, jsdelfino@apache.org <js...@apache.org> wrote:
> Author: jsdelfino
> Date: Wed Oct 10 16:22:16 2007
> New Revision: 583639
>
> URL: http://svn.apache.org/viewvc?rev=583639&view=rev
> Log:
> Configure surefire plugin to use JAXB 2.1 using the endorsed lib mechanism to get it to build on JDK6 as this is what the nightly build machine uses.
>
> Modified:
> incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
>
> Modified: incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml?rev=583639&r1=583638&r2=583639&view=diff
> ==============================================================================
> --- incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml (original)
> +++ incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml Wed Oct 10 16:22:16 2007
> @@ -107,6 +107,13 @@
> <build>
> <plugins>
> <plugin>
> + <groupId>org.apache.maven.plugins</groupId>
> + <artifactId>maven-surefire-plugin</artifactId>
> + <configuration>
> + <argLine>-Djava.endorsed.dirs=${settings.localRepository}/javax/xml/bind/jaxb-api/2.1</argLine>
> + </configuration>
> + </plugin>
> + <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>build-helper-maven-plugin</artifactId>
> <version>1.0</version>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-commits-help@ws.apache.org
>
>
--
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: JDK5 versus JDK6, was Re: svn commit: r583639 - /incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
Posted by Luciano Resende <lu...@gmail.com>.
I guess you are still going to spend long nights investigating other
maven issues...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 11 seconds
[INFO] Finished at: Fri Oct 12 14:00:45 PDT 2007
[INFO] Final Memory: 10M/22M
[INFO] ------------------------------------------------------------------------
Thanks
On 10/12/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
> Jean-Sebastien Delfino wrote:
> > Luciano Resende wrote:
> >> This seems like a maven issue :
> >> http://jira.codehaus.org/browse/SUREFIRE-128
> >>
> >>
> > I committed a change to databinding-jaxb to use the same level of
> > surefire already used in implementation-bpel, which seems to fix that
> > issue. Can you try after an svn up?
> >
>
> One more update. JIRA SUREFIRE-128 (a blocker JIRA opened in June 2006)
> is still not fixed in Surefire 2.3.1-SNAPSHOT (contrary to what I
> thought earlier today).
>
> I committed under SVN r584266 a different workaround.
>
> Believe it or not, the following page of XML respectfully asks Maven to
> please copy two JARs to target/endorsed and Surefire to use these JARs.
> If this still doesn't work... I'm ready to start investigating another
> build tool :).
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-dependency-plugin</artifactId>
> <executions>
> <execution>
> <id>copy</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>copy</goal>
> </goals>
> <configuration>
> <artifactItems>
> <artifactItem>
> <groupId>javax.xml.ws</groupId>
> <artifactId>jaxws-api</artifactId>
> <version>2.1</version>
> <type>jar</type>
> </artifactItem>
> <artifactItem>
> <groupId>javax.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> <version>2.1</version>
> <type>jar</type>
> </artifactItem>
> </artifactItems>
>
> <outputDirectory>${project.build.directory}/endorsed</outputDirectory>
> <overWriteReleases>false</overWriteReleases>
> <overWriteSnapshots>true</overWriteSnapshots>
> </configuration>
> </execution>
> </executions>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <configuration>
> <argLine>-Djava.endorsed.dirs=target/endorsed</argLine>
> </configuration>
> </plugin>
>
> --
> Jean-Sebastien
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
--
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: JDK5 versus JDK6, was Re: svn commit: r583639 - /incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
Posted by Jean-Sebastien Delfino <js...@apache.org>.
Jean-Sebastien Delfino wrote:
> Luciano Resende wrote:
>> This seems like a maven issue :
>> http://jira.codehaus.org/browse/SUREFIRE-128
>>
>>
> I committed a change to databinding-jaxb to use the same level of
> surefire already used in implementation-bpel, which seems to fix that
> issue. Can you try after an svn up?
>
One more update. JIRA SUREFIRE-128 (a blocker JIRA opened in June 2006)
is still not fixed in Surefire 2.3.1-SNAPSHOT (contrary to what I
thought earlier today).
I committed under SVN r584266 a different workaround.
Believe it or not, the following page of XML respectfully asks Maven to
please copy two JARs to target/endorsed and Surefire to use these JARs.
If this still doesn't work... I'm ready to start investigating another
build tool :).
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy</id>
<phase>generate-sources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.1</version>
<type>jar</type>
</artifactItem>
<artifactItem>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.1</version>
<type>jar</type>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}/endorsed</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>-Djava.endorsed.dirs=target/endorsed</argLine>
</configuration>
</plugin>
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: JDK5 versus JDK6, was Re: svn commit: r583639 - /incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
Posted by Jean-Sebastien Delfino <js...@apache.org>.
Luciano Resende wrote:
> This seems like a maven issue :
> http://jira.codehaus.org/browse/SUREFIRE-128
>
>
I committed a change to databinding-jaxb to use the same level of
surefire already used in implementation-bpel, which seems to fix that
issue. Can you try after an svn up?
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: JDK5 versus JDK6, was Re: svn commit: r583639 - /incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
Posted by Luciano Resende <lu...@gmail.com>.
This seems like a maven issue :
http://jira.codehaus.org/browse/SUREFIRE-128
On 10/12/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
> Venkata Krishnan wrote:
> > Ok... seems like this is the problem. I changed my local repo to another
> > location and it works. I think having spaces in the names of directory for
> > the maven local repo is a problem.
> >
> > I picked up the hint from "java.lang.NoClassDefFoundError: and" and my local
> > maven repo directory root has 'and in it.
> >
> > - Venkat
> >
> >
> OK could you try to change in databinding-jaxb/pom.xml?
> -Djava.endorsed.dirs=${settings.localRepository}/javax/xml/bind/jaxb-api/2.1
> to
> -Djava.endorsed.dirs="${settings.localRepository}/javax/xml/bind/jaxb-api/2.1"
>
> --
> Jean-Sebastien
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
--
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: JDK5 versus JDK6, was Re: svn commit: r583639 - /incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
Posted by Jean-Sebastien Delfino <js...@apache.org>.
Venkata Krishnan wrote:
> Ok... seems like this is the problem. I changed my local repo to another
> location and it works. I think having spaces in the names of directory for
> the maven local repo is a problem.
>
> I picked up the hint from "java.lang.NoClassDefFoundError: and" and my local
> maven repo directory root has 'and in it.
>
> - Venkat
>
>
OK could you try to change in databinding-jaxb/pom.xml?
-Djava.endorsed.dirs=${settings.localRepository}/javax/xml/bind/jaxb-api/2.1
to
-Djava.endorsed.dirs="${settings.localRepository}/javax/xml/bind/jaxb-api/2.1"
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: JDK5 versus JDK6, was Re: svn commit: r583639 - /incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
Posted by Venkata Krishnan <fo...@gmail.com>.
Ok... seems like this is the problem. I changed my local repo to another
location and it works. I think having spaces in the names of directory for
the maven local repo is a problem.
I picked up the hint from "java.lang.NoClassDefFoundError: and" and my local
maven repo directory root has 'and in it.
- Venkat
On 10/12/07, Venkata Krishnan <fo...@gmail.com> wrote:
>
> Hi Sebastien,
>
> My local maven repo is C:\Documents and
> Settings\Administrator\.m2\repository. What is yours? I am just guessing
> it could be different and Luciano's should be similar to mine.
>
> - Venkat
>
> On 10/12/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
> >
> > Venkata Krishnan wrote:
> > > Its the same with me too... here is what I get..
> > >
> > >
> > [snip]
> > > [INFO] snapshot
> > > org.apache.maven.surefire:surefire-providers:2.3.1-SNAPSHOT:checking
> > > for updates from codehaus-snaps
> > > hot
> > > [INFO] Surefire report directory:
> > > F:\LatestTrunk\sca\modules\databinding-jaxb\target\surefire-reports
> > > java.lang.NoClassDefFoundError: and
> > > Exception in thread "main"
> > > [INFO]
> > >
> > ------------------------------------------------------------------------
> > > [ERROR] BUILD FAILURE
> > > [INFO]
> > >
> > > - Venkat
> > >
> > >
> >
> > Could you try with mvn -X to see if you get more debug info? Thanks.
> >
> > --
> > Jean-Sebastien
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> >
> >
>
Re: JDK5 versus JDK6, was Re: svn commit: r583639 - /incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
Posted by Venkata Krishnan <fo...@gmail.com>.
Hi Sebastien,
My local maven repo is C:\Documents and
Settings\Administrator\.m2\repository. What is yours? I am just guessing
it could be different and Luciano's should be similar to mine.
- Venkat
On 10/12/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
>
> Venkata Krishnan wrote:
> > Its the same with me too... here is what I get..
> >
> >
> [snip]
> > [INFO] snapshot
> > org.apache.maven.surefire:surefire-providers:2.3.1-SNAPSHOT:checking
> > for updates from codehaus-snaps
> > hot
> > [INFO] Surefire report directory:
> > F:\LatestTrunk\sca\modules\databinding-jaxb\target\surefire-reports
> > java.lang.NoClassDefFoundError: and
> > Exception in thread "main"
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO]
> >
> > - Venkat
> >
> >
>
> Could you try with mvn -X to see if you get more debug info? Thanks.
>
> --
> Jean-Sebastien
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
Re: JDK5 versus JDK6, was Re: svn commit: r583639 - /incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
Posted by Jean-Sebastien Delfino <js...@apache.org>.
Venkata Krishnan wrote:
> Its the same with me too... here is what I get..
>
>
[snip]
> [INFO] snapshot
> org.apache.maven.surefire:surefire-providers:2.3.1-SNAPSHOT:checking
> for updates from codehaus-snaps
> hot
> [INFO] Surefire report directory:
> F:\LatestTrunk\sca\modules\databinding-jaxb\target\surefire-reports
> java.lang.NoClassDefFoundError: and
> Exception in thread "main"
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
>
> - Venkat
>
>
Could you try with mvn -X to see if you get more debug info? Thanks.
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: JDK5 versus JDK6, was Re: svn commit: r583639 - /incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
Posted by Luciano Resende <lu...@gmail.com>.
Yes, exactly same thing here...
Java SDK :
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
Maven :
Maven version: 2.0.7
Java version: 1.5.0_11
OS name: "windows xp" version: "5.1" arch: "x86"
[INFO] Compiling 15 source files to
D:\dev\Opensource\Apache\Tuscany\source\java-sca-data\modules\databinding-jaxb\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory:
D:\dev\Opensource\Apache\Tuscany\source\java-sca-data\modules\databinding-jaxb\target\surefire-reports
java.lang.NoClassDefFoundError: and
Exception in thread "main"
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 57 seconds
[INFO] Finished at: Thu Oct 11 23:19:55 PDT 2007
[INFO] Final Memory: 8M/15M
[INFO] ------------------------------------------------------------------------
On 10/11/07, Venkata Krishnan <fo...@gmail.com> wrote:
> Its the same with me too... here is what I get..
>
> [INFO] [compiler:compile]
> [INFO] Compiling 9 source files to
> F:\LatestTrunk\sca\modules\databinding-jaxb\target\classes
> [INFO] [jaxb:generate {execution: generate-jaxb}]
> [INFO]
> F:\LatestTrunk\sca\modules\databinding-jaxb\target\jaxb-source\com\example\ipo\jaxb
> is not found and thus excl
> uded from the dependency check
> [INFO] Compiling
> file:/F:/LatestTrunk/sca/modules/databinding-jaxb/src/test/resources/ipo.xsd
> [INFO] Writing output to
> F:\LatestTrunk\sca\modules\databinding-jaxb\target\jaxb-source
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] Compiling 15 source files to
> F:\LatestTrunk\sca\modules\databinding-jaxb\target\test-classes
> [INFO] snapshot
> org.apache.maven.surefire:surefire-booter:2.3.1-SNAPSHOT:checking for
> updates from
> java.net
> [INFO] snapshot
> org.apache.maven.surefire:surefire-booter:2.3.1-SNAPSHOT:checking for
> updates from
> apache.snapshots
> [INFO] snapshot
> org.apache.maven.surefire:surefire-booter:2.3.1-SNAPSHOT:checking for
> updates from codehaus-snapshot
>
> [INFO] snapshot
> org.apache.maven.surefire:surefire-booter:2.3.1-SNAPSHOT:checking for
> updates from
> apache.incubator
> [INFO] snapshot
> org.apache.maven.surefire:surefire-api:2.3.1-SNAPSHOT:checking for
> updates from
> java.net
> [INFO] snapshot
> org.apache.maven.surefire:surefire-api:2.3.1-SNAPSHOT:checking for
> updates from
> apache.snapshots
> [INFO] snapshot
> org.apache.maven.surefire:surefire-api:2.3.1-SNAPSHOT:checking for
> updates from codehaus-snapshot
> [INFO] snapshot
> org.apache.maven.surefire:surefire-api:2.3.1-SNAPSHOT:checking for
> updates from
> apache.incubator
> [INFO] [surefire:test]
> [INFO] snapshot
> org.apache.maven.surefire:surefire-junit4:2.3.1-SNAPSHOT:checking for
> updates from
> java.net
> [INFO] snapshot
> org.apache.maven.surefire:surefire-junit4:2.3.1-SNAPSHOT:checking for
> updates from
> apache.snapshots
> [INFO] snapshot
> org.apache.maven.surefire:surefire-junit4:2.3.1-SNAPSHOT:checking for
> updates from codehaus-snapshot
>
> [INFO] snapshot
> org.apache.maven.surefire:surefire-providers:2.3.1-SNAPSHOT:checking
> for updates from
> java.net
> [INFO] snapshot
> org.apache.maven.surefire:surefire-providers:2.3.1-SNAPSHOT:checking
> for updates from
> apache.snapsho
> ts
> [INFO] snapshot
> org.apache.maven.surefire:surefire-providers:2.3.1-SNAPSHOT:checking
> for updates from codehaus-snaps
> hot
> [INFO] Surefire report directory:
> F:\LatestTrunk\sca\modules\databinding-jaxb\target\surefire-reports
> java.lang.NoClassDefFoundError: and
> Exception in thread "main"
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] There are test failures.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 10 seconds
> [INFO] Finished at: Fri Oct 12 10:36:54 IST 2007
> [INFO] Final Memory: 8M/17M
> [INFO]
> ------------------------------------------------------------------------
>
> - Venkat
>
> On 10/11/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
> >
> > Luciano Resende wrote:
> > > This change breaks the build using JDK 5 for me. Moving the pom.xml to
> > > a revision previous to this change allow me to build ok. Should we use
> > > a profile activated by JDK version ?
> > >
> >
> > Builds with both JDK5 and JDK6 worked for me, but I'm starting to have a
> > little too many combinations with the different JDKs and Maven levels,
> > so I may have missed something... What error are you getting?
> >
> > > On 10/10/07, jsdelfino@apache.org <js...@apache.org> wrote:
> > >
> > >> Author: jsdelfino
> > >> Date: Wed Oct 10 16:22:16 2007
> > >> New Revision: 583639
> > >>
> > >> URL: http://svn.apache.org/viewvc?rev=583639&view=rev
> > >> Log:
> > >> Configure surefire plugin to use JAXB 2.1 using the endorsed lib
> > mechanism to get it to build on JDK6 as this is what the nightly build
> > machine uses.
> > >>
> > >> Modified:
> > >> incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
> > >>
> > >> Modified: incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
> > >> URL:
> > http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml?rev=583639&r1=583638&r2=583639&view=diff
> > >>
> > ==============================================================================
> > >> --- incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
> > (original)
> > >> +++ incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml Wed Oct
> > 10 16:22:16 2007
> > >> @@ -107,6 +107,13 @@
> > >> <build>
> > >> <plugins>
> > >> <plugin>
> > >> + <groupId>org.apache.maven.plugins</groupId>
> > >> + <artifactId>maven-surefire-plugin</artifactId>
> > >> + <configuration>
> > >> + <argLine>-
> > Djava.endorsed.dirs=${settings.localRepository}/javax/xml/bind/jaxb-api/2.1
> > </argLine>
> > >> + </configuration>
> > >> + </plugin>
> > >> + <plugin>
> > >> <groupId>org.codehaus.mojo</groupId>
> > >> <artifactId>build-helper-maven-plugin</artifactId>
> > >> <version>1.0</version>
> > >>
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
> > >> For additional commands, e-mail: tuscany-commits-help@ws.apache.org
> > >>
> > >>
> > >>
> > >
> > >
> > >
> >
> >
> > --
> > Jean-Sebastien
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> >
> >
>
--
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: JDK5 versus JDK6, was Re: svn commit: r583639 - /incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
Posted by Venkata Krishnan <fo...@gmail.com>.
Its the same with me too... here is what I get..
[INFO] [compiler:compile]
[INFO] Compiling 9 source files to
F:\LatestTrunk\sca\modules\databinding-jaxb\target\classes
[INFO] [jaxb:generate {execution: generate-jaxb}]
[INFO]
F:\LatestTrunk\sca\modules\databinding-jaxb\target\jaxb-source\com\example\ipo\jaxb
is not found and thus excl
uded from the dependency check
[INFO] Compiling
file:/F:/LatestTrunk/sca/modules/databinding-jaxb/src/test/resources/ipo.xsd
[INFO] Writing output to
F:\LatestTrunk\sca\modules\databinding-jaxb\target\jaxb-source
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 15 source files to
F:\LatestTrunk\sca\modules\databinding-jaxb\target\test-classes
[INFO] snapshot
org.apache.maven.surefire:surefire-booter:2.3.1-SNAPSHOT:checking for
updates from
java.net
[INFO] snapshot
org.apache.maven.surefire:surefire-booter:2.3.1-SNAPSHOT:checking for
updates from
apache.snapshots
[INFO] snapshot
org.apache.maven.surefire:surefire-booter:2.3.1-SNAPSHOT:checking for
updates from codehaus-snapshot
[INFO] snapshot
org.apache.maven.surefire:surefire-booter:2.3.1-SNAPSHOT:checking for
updates from
apache.incubator
[INFO] snapshot
org.apache.maven.surefire:surefire-api:2.3.1-SNAPSHOT:checking for
updates from
java.net
[INFO] snapshot
org.apache.maven.surefire:surefire-api:2.3.1-SNAPSHOT:checking for
updates from
apache.snapshots
[INFO] snapshot
org.apache.maven.surefire:surefire-api:2.3.1-SNAPSHOT:checking for
updates from codehaus-snapshot
[INFO] snapshot
org.apache.maven.surefire:surefire-api:2.3.1-SNAPSHOT:checking for
updates from
apache.incubator
[INFO] [surefire:test]
[INFO] snapshot
org.apache.maven.surefire:surefire-junit4:2.3.1-SNAPSHOT:checking for
updates from
java.net
[INFO] snapshot
org.apache.maven.surefire:surefire-junit4:2.3.1-SNAPSHOT:checking for
updates from
apache.snapshots
[INFO] snapshot
org.apache.maven.surefire:surefire-junit4:2.3.1-SNAPSHOT:checking for
updates from codehaus-snapshot
[INFO] snapshot
org.apache.maven.surefire:surefire-providers:2.3.1-SNAPSHOT:checking
for updates from
java.net
[INFO] snapshot
org.apache.maven.surefire:surefire-providers:2.3.1-SNAPSHOT:checking
for updates from
apache.snapsho
ts
[INFO] snapshot
org.apache.maven.surefire:surefire-providers:2.3.1-SNAPSHOT:checking
for updates from codehaus-snaps
hot
[INFO] Surefire report directory:
F:\LatestTrunk\sca\modules\databinding-jaxb\target\surefire-reports
java.lang.NoClassDefFoundError: and
Exception in thread "main"
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Fri Oct 12 10:36:54 IST 2007
[INFO] Final Memory: 8M/17M
[INFO]
------------------------------------------------------------------------
- Venkat
On 10/11/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
>
> Luciano Resende wrote:
> > This change breaks the build using JDK 5 for me. Moving the pom.xml to
> > a revision previous to this change allow me to build ok. Should we use
> > a profile activated by JDK version ?
> >
>
> Builds with both JDK5 and JDK6 worked for me, but I'm starting to have a
> little too many combinations with the different JDKs and Maven levels,
> so I may have missed something... What error are you getting?
>
> > On 10/10/07, jsdelfino@apache.org <js...@apache.org> wrote:
> >
> >> Author: jsdelfino
> >> Date: Wed Oct 10 16:22:16 2007
> >> New Revision: 583639
> >>
> >> URL: http://svn.apache.org/viewvc?rev=583639&view=rev
> >> Log:
> >> Configure surefire plugin to use JAXB 2.1 using the endorsed lib
> mechanism to get it to build on JDK6 as this is what the nightly build
> machine uses.
> >>
> >> Modified:
> >> incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
> >>
> >> Modified: incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
> >> URL:
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml?rev=583639&r1=583638&r2=583639&view=diff
> >>
> ==============================================================================
> >> --- incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
> (original)
> >> +++ incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml Wed Oct
> 10 16:22:16 2007
> >> @@ -107,6 +107,13 @@
> >> <build>
> >> <plugins>
> >> <plugin>
> >> + <groupId>org.apache.maven.plugins</groupId>
> >> + <artifactId>maven-surefire-plugin</artifactId>
> >> + <configuration>
> >> + <argLine>-
> Djava.endorsed.dirs=${settings.localRepository}/javax/xml/bind/jaxb-api/2.1
> </argLine>
> >> + </configuration>
> >> + </plugin>
> >> + <plugin>
> >> <groupId>org.codehaus.mojo</groupId>
> >> <artifactId>build-helper-maven-plugin</artifactId>
> >> <version>1.0</version>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: tuscany-commits-help@ws.apache.org
> >>
> >>
> >>
> >
> >
> >
>
>
> --
> Jean-Sebastien
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
Re: JDK5 versus JDK6, was Re: svn commit: r583639 - /incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
Posted by Jean-Sebastien Delfino <js...@apache.org>.
Luciano Resende wrote:
> This change breaks the build using JDK 5 for me. Moving the pom.xml to
> a revision previous to this change allow me to build ok. Should we use
> a profile activated by JDK version ?
>
Builds with both JDK5 and JDK6 worked for me, but I'm starting to have a
little too many combinations with the different JDKs and Maven levels,
so I may have missed something... What error are you getting?
> On 10/10/07, jsdelfino@apache.org <js...@apache.org> wrote:
>
>> Author: jsdelfino
>> Date: Wed Oct 10 16:22:16 2007
>> New Revision: 583639
>>
>> URL: http://svn.apache.org/viewvc?rev=583639&view=rev
>> Log:
>> Configure surefire plugin to use JAXB 2.1 using the endorsed lib mechanism to get it to build on JDK6 as this is what the nightly build machine uses.
>>
>> Modified:
>> incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
>>
>> Modified: incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml
>> URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml?rev=583639&r1=583638&r2=583639&view=diff
>> ==============================================================================
>> --- incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml (original)
>> +++ incubator/tuscany/java/sca/modules/databinding-jaxb/pom.xml Wed Oct 10 16:22:16 2007
>> @@ -107,6 +107,13 @@
>> <build>
>> <plugins>
>> <plugin>
>> + <groupId>org.apache.maven.plugins</groupId>
>> + <artifactId>maven-surefire-plugin</artifactId>
>> + <configuration>
>> + <argLine>-Djava.endorsed.dirs=${settings.localRepository}/javax/xml/bind/jaxb-api/2.1</argLine>
>> + </configuration>
>> + </plugin>
>> + <plugin>
>> <groupId>org.codehaus.mojo</groupId>
>> <artifactId>build-helper-maven-plugin</artifactId>
>> <version>1.0</version>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
>> For additional commands, e-mail: tuscany-commits-help@ws.apache.org
>>
>>
>>
>
>
>
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org