I've been using maven routinely to build a spring and jetty based webapp.
For testing, I use the war:inplace goal.
I wanted a convenient way to clean up the lib directory created in my source
directory (WEB-INF/lib), so I added this plugin to my pom:
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<filesets>
<fileset>
<directory>${webroot}/WEB-INF/lib</directory>
</fileset>
</filesets>
</configuration>
</plugin>
Invoked by "mvn clean", it works perfectly.
But now when I run my webapp with jetty:
mvn war:inplace jetty:run
I get a warning that never appeared before:
WARN main org.springframework.beans.GenericTypeAwarePropertyDescriptor
-
Invalid JavaBean property 'locations' being accessed!
Ambiguous write methods found next to actually used
[public void
org.apache.cocoon.spring.configurator.impl.ExtendedPropertyOverrideConfigurer
.setLocations(java.util.List)]:
[public void org.springframework.core.io.support.PropertiesLoaderSupport
.setLocations(org.springframework.core.io.Resource[])]
Here's the war and jetty configuration:
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.0.2</version>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.7</version>
<configuration>
<connectors>
<connector
implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8888</port>
<maxIdleTime>30000</maxIdleTime>
</connector>
</connectors>
<contextPath>/</contextPath>
</configuration>
</plugin>
The webroot placeholder has the value "src/main/webapp".
The Spring framework is at version 3.0.5-RELEASE.
I've tried a few other versions of maven-clean-plugin with the same results.
The problem may have nothing to do with maven, but in that case advice about
where to inquire next would be very welcome.
Thanks!
--
View this message in context:
http://maven.40175.n5.nabble.com/Error-introduced-by-maven-clean-plugin-using-Jetty-and-Spring-tp5033036p5033036.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]