![]() |
|
Building routeconverter on OSX - Printable Version +- RouteConverter Forum (https://forum.routeconverter.com) +-- Forum: Developers (https://forum.routeconverter.com/forum-6.html) +--- Forum: Development (https://forum.routeconverter.com/forum-13.html) +--- Thread: Building routeconverter on OSX (/thread-667.html) Pages:
1
2
|
Building routeconverter on OSX - hvdwolf - 11.06.2010 I first read the README. I downloaded the trunk, installed maven and installed intellij Idea 9. for maven I get: Code: mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_20
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: nl_NL, platform encoding: MacRoman
OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"scenario 1: I started Idea9 and opened the trunk root pom. I set the JDK and executed the "Build project" command. That ended succesfully but there is no jar to be found apart from the "common-1.34-SNAPSHOT.jar", while I like to have a routeconvertermac.jar and/or routeconvertermac64.jar. what am I doing wrong? scenario 2: I just cd into the trunk and run "mvn clean package". After a lot of messages it finally breaks on the "TimeZoneTest" Code: Failed tests:
testXMLGregorianCalendarViaDatatypeFactory(slash.navigation.base.TimeZoneTest)
Tests run: 233, Failures: 1, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.Anyone an idea? RE: Building routeconverter on OSX - hvdwolf - 16.06.2010 = A gentle reminder = Does anyone know? I don't want to start programming myself but I want to work on the MacOSX application bundle. I currently can create an application bundle manually without problem (and could share that as well) but I like to be able to do that from the project. To do that the project should build correctly on OSX. RE: Building routeconverter on OSX - routeconverter - 18.06.2010 (11.06.2010, 15:54)hvdwolf Wrote: I just cd into the trunk and run "mvn clean package". After a lot of messages it finally breaks on the "TimeZoneTest" Of course, problems with timezones.... sorry. If you navigate to the TimeZoneTest in IDEA (Control-N is your friend) and execute it within the IDE: Right-click on the class name and Run 'TimeZoneTest' from the context menu: what's the problem? Btw, you can skip the tests with Quote:mvn clean package -Dmaven.test.skip=true RE: Building routeconverter on OSX - hvdwolf - 18.06.2010 (18.06.2010, 09:44)routeconverter Wrote: If you navigate to the TimeZoneTest in IDEA (Control-N is your friend) and execute it within the IDE:When I do that I get the following error: Code: /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java -Dfile.encoding=MacRoman -classpath /Applications/IntelliJ IDEA 9.0.2 CE.app/lib/idea_rt.jar:/Applications/IntelliJ IDEA 9.0.2 CE.app/plugins/junit/lib/junit-rt.jar:/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Resources/Java/deploy.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/dt.jar:/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Resources/Java/javaws.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/management-agent.jar:/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Resources/Java/plugin.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/sa-jdi.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/alt-rt.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/charsets.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jconsole.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jsse.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/ext/apple_provider.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/ext/dnsns.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/ext/localedata.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/ext/sunjce_provider.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/ext/sunpkcs11.jar:/Users/Shared/development/RouteConverter/svnRouteConverter/navigation-formats/target/test-classes:/Users/Shared/development/RouteConverter/svnRouteConverter/navigation-formats/target/classes:/Users/Shared/development/RouteConverter/svnRouteConverter/common/target/classes:/Users/harryvanderwolf/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3-stripped.jar:/Users/Shared/development/RouteConverter/svnRouteConverter/googlemaps/target/classes:/Users/Shared/development/RouteConverter/svnRouteConverter/jaxb6/target/classes:/Users/Shared/development/RouteConverter/svnRouteConverter/rest/target/classes:/Users/harryvanderwolf/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1-stripped.jar:/Users/harryvanderwolf/.m2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1-stripped.jar:/Users/harryvanderwolf/.m2/repository/gpsbabel/gpsbabel/win32.win32.x86/1.3.6/win32.win32.x86-1.3.6.jar:/Users/harryvanderwolf/.m2/repository/junit/junit/4.7/junit-4.7.jar com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 slash.navigation.base.TimeZoneTest
Cannot instantiate test(s): java.lang.NoClassDefFoundError: slash/common/TestCase
Process finished with exit code 1(18.06.2010, 09:44)routeconverter Wrote: Btw, you can skip the tests with So, I tried with that command. Now I get: Code: [INFO] skip non existing resourceDirectory /Users/Shared/development/RouteConverter/svnRouteConverter/navigation-formats/src/test/resources
Downloading: http://www.routeconverter.de/svn/RouteThirdParty/slash/navigation/common/1.34-SNAPSHOT/common-1.34-SNAPSHOT-tests.jar
[INFO] Unable to find resource 'slash.navigation:common:jar:tests:1.34-SNAPSHOT' in repository routeconverter-thirdparty (http://www.routeconverter.de/svn/RouteThirdParty)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) slash.navigation:common:jar:tests:1.34-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=slash.navigation -DartifactId=common -Dversion=1.34-SNAPSHOT -Dclassifier=tests -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=slash.navigation -DartifactId=common -Dversion=1.34-SNAPSHOT -Dclassifier=tests -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) slash.navigation:navigation-formats:jar:1.34-SNAPSHOT
2) slash.navigation:common:jar:tests:1.34-SNAPSHOT
----------
1 required artifact is missing.
for artifact:
slash.navigation:navigation-formats:jar:1.34-SNAPSHOT
from the specified remote repositories:
routeconverter-thirdparty (http://www.routeconverter.de/svn/RouteThirdParty),
central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23 seconds
[INFO] Finished at: Fri Jun 18 17:40:16 CEST 2010
[INFO] Final Memory: 40M/123M
[INFO] ------------------------------------------------------------------------So I first did a: "mvn clean package" (which should build the intermediate jars) and then I did "mvn package -Dmaven.test.skip=true" to use the built jars from the previous runs, but it still can't find the "test" jar. However, it is available, but not in the correct place? Code: find . -name *.jar
./common/target/common-1.34-SNAPSHOT-tests.jar
./common/target/common-1.34-SNAPSHOT.jar
./googlemaps/target/googlemaps-1.34-SNAPSHOT.jar
./jaxb6/target/jaxb6-1.34-SNAPSHOT.jar
./rest/target/rest-1.34-SNAPSHOT.jarRE: Building routeconverter on OSX - routeconverter - 18.06.2010 (18.06.2010, 17:20)hvdwolf Wrote:(18.06.2010, 09:44)routeconverter Wrote: If you navigate to the TimeZoneTest in IDEA (Control-N is your friend) and execute it within the IDE:When I do that I get the following error: Uuups, that's mysterious. (18.06.2010, 17:20)hvdwolf Wrote: So, I tried with that command. Now I get: That is strange, too. It seems, the slash.common.TestCase class cannot be accessed from the TimeZoneTest. And I cannot reproduce it here on two machines. Please try > mvn install to generate the 2) slash.navigation:common:jar:tests:1.34-SNAPSHOT artifact. (18.06.2010, 17:20)hvdwolf Wrote: It seems like I have to specify some path settings, but shouldn't these be automatically resolved? Yes, everything _should_ be reproducable with 2 or 3 commands. Sorry for any inconveniences... RE: Building routeconverter on OSX - hvdwolf - 19.06.2010 (18.06.2010, 20:36)routeconverter Wrote: Please try I tried the "mvn install" and also "mvn -cpu install" and "mvn -npr install". I also tried with "package" instead of "install". Every combination breaks on: Code: Failed tests:
testXMLGregorianCalendarViaDatatypeFactory(slash.navigation.base.TimeZoneTest)
testParsePosition(slash.navigation.nmn.Nmn6FavoritesFormatTest)
testParsePositionsFromInput1(slash.navigation.simple.GoogleMapsFormatTest)
testParsePositionsFromInput3(slash.navigation.simple.GoogleMapsFormatTest)
testParsePositionsFromInput4(slash.navigation.simple.GoogleMapsFormatTest)
testParsePositionsFromInput4Stripped(slash.navigation.simple.GoogleMapsFormatTest)
testCreateURL(slash.navigation.simple.GoogleMapsFormatTest)
testParseUppercaseComment(slash.navigation.nmn.Nmn4FormatTest)Are you sure that the "private part" of the svn checkout is really the last part that is checked out, or could it be that a small portion of the svn trunk will be downloaded after the private part? If that possibility is an option, then could you please create a .tgz or .zip from a clean trunk (without the private part)? I already tried to do a Quote:svn co http://www.routeconverter.de/svn/RouteConverter/tags/1.33 V133but that version also contains the private part. Another thing. I removed my trunk and my ~/.m2 plugins directory. I downloaded a fresh trunk. When I run the "mvn clean package" I get loads of errors like below (this is only a minor part). Is this correct and are these unneccessary packages? Code: Downloading: http://www.routeconverter.de/svn/RouteThirdParty/org/apache/maven/maven-settings/2.0.6/maven-settings-2.0.6.pom
[INFO] Unable to find resource 'org.apache.maven:maven-settings:pom:2.0.6' in repository routeconverter-thirdparty (http://www.routeconverter.de/svn/RouteThirdParty)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6/maven-settings-2.0.6.pom
Downloading: http://www.routeconverter.de/svn/RouteThirdParty/org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.pom
[INFO] Unable to find resource 'org.apache.maven:maven-model:pom:2.0.6' in repository routeconverter-thirdparty (http://www.routeconverter.de/svn/RouteThirdParty)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.pom
Downloading: http://www.routeconverter.de/svn/RouteThirdParty/org/codehaus/plexus/plexus-utils/1.4.1/plexus-utils-1.4.1.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus-utils:pom:1.4.1' in repository routeconverter-thirdparty (http://www.routeconverter.de/svn/RouteThirdParty)
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.1/plexus-utils-1.4.1.pomI can't remember that I did see these errrors "the first time" as well or I just didn't pay attention well enough. It could be a codehaus error as well so I will try later again. I also tried to build it on my Linux server using maven. I get the exact same errors as on OSX, both for downloading during compilation as well as for the XMLGregorianCalendar part Code: Failed tests:
testXMLGregorianCalendarViaDatatypeFactory(slash.navigation.base.TimeZoneTest)
testWritingRouteConverterExtensions(slash.navigation.gpx.GpxFormatTest)RE: Building routeconverter on OSX - routeconverter - 20.06.2010 (19.06.2010, 07:26)hvdwolf Wrote: Are you sure that the "private part" of the svn checkout is really the last part that is checked out, or could it be that a small portion of the svn trunk will be downloaded after the private part? The "private part" contains a large amount of test files - it's not necessary to build or run RouteConverter. The files are from users that sent them to me (which is why I don't make them public) and they are used for the integration tests only. RE: Building routeconverter on OSX - routeconverter - 20.06.2010 (19.06.2010, 07:26)hvdwolf Wrote: When I run the "mvn clean package" I get loads of errors like below (this is only a minor part). Is this correct and are these unneccessary packages? That are warning when your Maven tries to load itself from the code repositories. It then tests my repository http://www.routeconverter.de/svn/RouteThirdParty for the missing files, too, and fails. Nothing to worry about. RE: Building routeconverter on OSX - hvdwolf - 20.06.2010 (20.06.2010, 16:40)routeconverter Wrote:Yes, I already concluded that myself too. My reaction was too fast. I should have taken a second look.(19.06.2010, 07:26)hvdwolf Wrote: When I run the "mvn clean package" I get loads of errors like below (this is only a minor part). Is this correct and are these unneccessary packages? RE: Building routeconverter on OSX - routeconverter - 20.06.2010 (20.06.2010, 17:19)hvdwolf Wrote: Yes, I already concluded that myself too. My reaction was too fast. I should have taken a second look. Are you able to build RouteConverter under OSX then? What is with the TimeZoneTest failures? |