maven-1

How do you use the maven-simian-plugin in Maven2?

喜你入骨 提交于 2019-12-23 19:20:46
问题 I'm looking for a Maven2 reporting plugin for Simian and the closest thing to such a reporting I found is this. The problem is, the documentation for it appears to be for Maven 1 instead. Why is a Maven 1 plugin stored in a Maven 2 repository? I suppose that means I can use it... but how to use? The site mentions reporting but if I don't have a src/main/site , does that mean I can't use it? I was kinda hoping for something like mvn simian:simian similar to mvn checkstyle:checkstyle and mvn

Java + Maven1.x : how to add sun's tools.jar?

蓝咒 提交于 2019-12-11 06:48:24
问题 I must add tools.jar into my maven1 build config but I can't find any help. Here is the solution I've found using the helpfull sugestion of geo: I have modified the maven.xml build in order to add the tools.jar in the classpath. A pre-goal before java:compile does the stuff: <preGoal name="java:compile"> <ant:path id="tools"> <ant:pathelement path="${tools.jar}"/> </ant:path> <maven:addPath id="maven.dependency.classpath" refid="tools"/> </preGoal> Below are result of my investiqgations and