Developer FAQ, Known Problems

Developing under Eclipse

Project does not compile in Eclipse, cannot resolve MAVEN2_CLASSPATH_CONTAINER

Try installing the Eclipse Maven Plugin m2eclipse

Project does not compile in Eclipse, tools.jar could not be found

tools.jar is delivered with the JDK and used by valtech-ag, which is used by dependometer-core, which again is used by most other dependometer projects.

Solution 1: edit your eclips.ini and overwrite java.home property, so that it points to the JRE in your JDK, e.g.:

-vmargs
...
-Djava.home=C:\Programme\Java\jdk1.6.0_14\jre

Solution 2: check out the valtech-ag project, fix the system dependency to tools.jar in the pom.xml and install this project to your local maven repository by calling mvn install.

Developing with Maven

How to I install a jar file as a maven artifact in Valtech OSS repository?

That depeds. If it is the jar file of your built projects, try mvn deploy.

If it is an external jar file, you can install it manually, e.g.

mvn deploy:deploy-file -DgroupId=sf.llk -DartifactId=llk-csharp-model -Dversion=0.7.0 -Dpackaging=jar -Dfile=C:/dev/workspaces/dependometer/dependometer-dotnet/src/main/resources/lib/llk-csharp-model.jar -Durl=http://source.valtech.com/repo/content/repositories/releases/ -DrepositoryId=vt-oss-releases

Note: you need a connection and the access to the Maven Repositories to do this.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.