Bug 760590

Summary: Fix Maven and IDE warnings in petclinic example
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Karel Piwko <kpiwko>
Component: Spring, ExamplesAssignee: Marek Novotny <mnovotny>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas Repel <trepel>
Severity: low Docs Contact:
Priority: low    
Version: 2.0.0.DR05CC: mnovotny, trepel
Target Milestone: ---   
Target Release: 2.0.0.ER5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: jbds petclinic
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 761428 (view as bug list) Environment:
Last Closed: 2012-06-22 10:57:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 761428    

Description Karel Piwko 2011-12-06 15:10:21 UTC
Description of problem:

Following Maven errors are in the Petclinic example we distribute:

[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.springframework.samples:petclinic:war:1.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 249, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 259, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ line 268, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 


[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent

[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!


Following warning is shown in IDE (Eclipse + JBoss Tools):

applicationContext-entityManager.xml:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop"
	xsi:schemaLocation="
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
		http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">

	<aop:aspectj-autoproxy />

	<bean class="org.springframework.samples.petclinic.aspects.UsageLogAspect" p:historySize="300" />

	<bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" />

	<bean id="clinic" class="org.springframework.samples.petclinic.jpa.EntityManagerClinic" />

</beans>


Multiple annotations found at this line:
	- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'aop:aspectj-autoproxy'.
	- schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/aop/spring-aop-2.5.xsd', because 1) could 
	 not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

Comment 1 Tomas Repel 2012-05-21 16:38:09 UTC
Verified in WFK2 ER5.