18.06.2010, 17:20
(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:
Right-click on the class name and Run 'TimeZoneTest' from the context menu: what's the problem?
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
Quote:mvn clean package -Dmaven.test.skip=true
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.jar
