Hello I get a log of warnings, when I execute Reports( Checkstyle, FindBugs, ...)
here is a extract of the maven output: Instrumenting 78 files to /data/jenkins/jobs/fo_rpm_nightly/workspace/fo_rpm_package_ss/temp_rpmsr c/alerts_java_ss/target/generated-classes/cobertura Cobertura: Saved information on 78 classes. Instrument time: 360ms [INFO] Instrumentation was successful. [INFO] [resources:testResources {execution: default-testResources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /data/jenkins/jobs/fo_rpm_nightly/workspace/fo_rpm_package_ss/temp_rpmsr c/alerts_java_ss/test/resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] No sources to compile [INFO] [surefire:test {execution: default-test}] [INFO] No tests to run. [INFO] Preparing jdepend:generate [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /data/jenkins/jobs/fo_rpm_nightly/workspace/fo_rpm_package_ss/temp_rpmsr c/alerts_java_ss/resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Nothing to compile - all classes are up to date [INFO] Preparing findbugs:findbugs [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /data/jenkins/jobs/fo_rpm_nightly/workspace/fo_rpm_package_ss/temp_rpmsr c/alerts_java_ss/resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Nothing to compile - all classes are up to date [INFO] [site:site {execution: default-site}] [WARNING] Error loading report org.apache.maven.plugin.jxr.JxrReport - AbstractMethodError: canGenerateReport() [INFO] Unable to load parent project from a relative path: Could not find the model file '/data/jenkins/jobs/fo_rpm_nightly/workspace/fo_rpm_package_ss/temp_rpms rc/pom.xml'. for project unknown [INFO] Parent project loaded from repository. [WARNING] Unable to load parent project from repository: Failed to validate POM for project ${top_level_group_id}:master_project at Artifact [${top_level_group_id}:master_project:pom:${top_level_version}] [WARNING] No URL defined for the project - decoration links will not be resolved [INFO] Generating "Issue Tracking" report. [INFO] Generating "Project Team" report. [INFO] Generating "Dependency Management" report. [INFO] Generating "Dependencies" report. [WARNING] The parameter 'dependencyLocationsEnabled' is ignored in offline mode. [INFO] Generating "Project Plugins" report. [INFO] Generating "Checkstyle" report. [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/apache/maven/plugin/checkstyle/checkstyle-rss.vm [line 6,column 11] : ${project.url} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/apache/maven/plugin/checkstyle/checkstyle-rss.vm [line 1,column 1] : ${project.url} is not a valid reference. [INFO] Generating "PMD Report" report. I use the following master pom file. <<pom_tests_and_reports.xml>> Can you please give me hints which warnings can be ignored and if not how can I resolve the warnings. I also don't see the Java Compiler Warnings but I turned on the Compiler Warnings in the pom file. Many Thanks Richard Sailer
<project> <modelVersion>4.0.0</modelVersion> <groupId>${top_level_group_id}</groupId> <artifactId>master_project</artifactId> <version>${top_level_version}</version> <name>build_scripts_ss</name> <packaging>pom</packaging> <!-- # set properties for usage in child poms --> <properties> <top_level_version>0.0.1</top_level_version> <top_level_group_id>com.eads</top_level_group_id> <components_version>0.0.1</components_version> <components_group_id>com.eads.gui</components_group_id> <cs_version>0.0.1</cs_version> <cs_group_id>com.eads.cs</cs_group_id> <corba_version>0.0.1</corba_version> <corba_group_id>com.eads.corba</corba_group_id> <tda_version>0.0.1</tda_version> <tda_group_id>com.eads.jtda</tda_group_id> <visibility_version>0.0.1</visibility_version> <visibility_group_id>com.eads.utilities.coverage</visibility_group_id> <!-- # vendor libraries --> <luciad_map_version>5.2</luciad_map_version> <luciad_map_group_id>vendor.libs.luciad_map</luciad_map_group_id> <luciad_map_artifact_id>vendor_libs_luciad_map</luciad_map_artifact_id> <junit_version>4.1</junit_version> <junit_group_id>vendor.libs.junit</junit_group_id> <junit_artifact_id>vendor_libs_junit</junit_artifact_id> <fest_version>1.2a3</fest_version> <fest_group_id>vendor.libs.fest</fest_group_id> <fest_artifact_id>vendor_libs_fest</fest_artifact_id> <log4j_version>1.2.15</log4j_version> <log4j_group_id>vendor.libs.log4j</log4j_group_id> <log4j_artifact_id>vendor_libs_log4j</log4j_artifact_id> <jacorb_version>2.2</jacorb_version> <jacorb_group_id>vendor.libs.jacorb</jacorb_group_id> <jacorb_artifact_id>vendor_libs_jacorb</jacorb_artifact_id> <open_office_version>3.2.1</open_office_version> <open_office_group_id>vendor.libs.open_office</open_office_group_id> <open_office_artifact_id>vendor_libs_open_office</open_office_artifact_id> <idlj_executable>../build_scripts_ss/idl2java/run_idlj.sh</idlj_executable> </properties> <build> <!-- # change the default directory layout for the unit tests --> <sourceDirectory>src</sourceDirectory> <outputDirectory>bin</outputDirectory> <testSourceDirectory>test/srcxx</testSourceDirectory> <testOutputDirectory>test/binxx</testOutputDirectory> <resources> <resource> <directory>resources</directory> </resource> </resources> <testResources> <testResource> <directory>test/resources</directory> </testResource> </testResources> <!-- # standard is ${artifactId}-${version} # we don't use versions --> <finalName>${artifactId}</finalName> <!-- # set usage of java 5 --> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> <showWarnings>true</showWarnings> </configuration> </plugin> </plugins> </build> <reporting> <plugins> <!-- # # Aggregated Javadoc # <plugin> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <outputDirectory>target/site/apidocs</outputDirectory> <aggregate>true</aggregate> </configuration> </plugin> --> <!-- # # Aggregated Xref (will be deployed together with the aggregated javadoc) # --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jxr-plugin</artifactId> <configuration> <aggregate>true</aggregate> </configuration> </plugin> <!-- # # Checkstyle # --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.3-atlassian-1</version> <configuration> <configLocation> ${WKS_ROOT_DIR}/build_scripts_ss/checkstyle/eads_checks.xml </configLocation> </configuration> </plugin> <!-- # # Xref for each module (will be linked from module based reports e.g. CheckStyle ) # --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jxr-maven-plugin</artifactId> <configuration> <javadocDir> ${SITE_ROOT_DOC_PATH}/fo_site/apidocs </javadocDir> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>taglist-maven-plugin</artifactId> <configuration> <tags> <tag>TODO</tag> <tag>@todo</tag> <tag>FIXME</tag> </tags> <xmlOutputDirectory> ${project.build.directory} </xmlOutputDirectory> <testXrefLocation> ${project.build.directory}/xref </testXrefLocation> </configuration> </plugin> <!-- # # PMD # --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> <configuration> <targetJdk>1.5</targetJdk> <!-- <rulesets> <ruleset> ${WKS_ROOT_DIR}/build_scripts_ss/pmd/eads_checks_maven.xml </ruleset> </rulesets> --> <format>xml</format> <linkXref>true</linkXref> <sourceEncoding>utf-8</sourceEncoding> <minimumTokens>100</minimumTokens> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <configuration> <formats> <format>html</format> <format>xml</format> </formats> </configuration> </plugin> <!-- --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jdepend-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <configuration> <findbugsXmlOutput>true</findbugsXmlOutput> <findbugsXmlWithMessages>true</findbugsXmlWithMessages> <xmlOutput>true</xmlOutput> <effort>Max</effort> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>dashboard-maven-plugin</artifactId> </plugin> </plugins> </reporting> <!-- # # add prefered versions for the dependencies # # (actually we replaced the dependencyManagement for own projects # with the usage of properties for the versions. The reason for this # is that we have common version numbers for all FO projects) --> <dependencyManagement> <dependencies> <dependency> <groupId>${top_level_group_id}</groupId> <artifactId>utilities</artifactId> <version>${top_level_version}</version> </dependency> <dependency> <groupId>${tda_group_id}</groupId> <artifactId>tda_interface</artifactId> <version>${tda_version}</version> </dependency> <dependency> <groupId>${components_group_id}</groupId> <artifactId>components_jni</artifactId> <version>${components_version}</version> </dependency> <dependency> <groupId>${components_group_id}</groupId> <artifactId>components</artifactId> <version>${components_version}</version> </dependency> <dependency> <groupId>${corba_group_id}</groupId> <artifactId>corba_utilities</artifactId> <version>${corba_version}</version> </dependency> <dependency> <groupId>${cs_group_id}</groupId> <artifactId>SCserv_jni</artifactId> <version>${cs_version}</version> </dependency> <dependency> <groupId>${visibility_group_id}</groupId> <artifactId>visibility_jni</artifactId> <version>${visibility_version}</version> </dependency> <!-- # vendor libraries --> <dependency> <groupId>${jacorb_group_id}</groupId> <artifactId>${jacorb_artifact_id}</artifactId> <version>${jacorb_version}</version> </dependency> <dependency> <groupId>${open_office_group_id}</groupId> <artifactId>${open_office_artifact_id}</artifactId> <version>${open_office_version}</version> </dependency> </dependencies> </dependencyManagement> <!-- # # add common dependencies # --> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.1</version> <scope>test</scope> </dependency> <dependency> <groupId>${fest_group_id}</groupId> <artifactId>${fest_artifact_id}</artifactId> <version>${fest_version}</version> <scope>test</scope> </dependency> <dependency> <groupId>${log4j_group_id}</groupId> <artifactId>${log4j_artifact_id}</artifactId> <version>${log4j_version}</version> <scope>compile</scope> </dependency> </dependencies> </project>
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org