empty package declaration

2 views
Skip to first unread message

Javier Carrasco

unread,
Apr 16, 2009, 6:53:18 AM4/16/09
to Spring ME
I'm testing spring-me and the generated .java has an empty package
definition (like this "package ;")

this is the my pom configuration

<plugin>
<groupId>me.springframework</groupId>
<artifactId>spring-me-maven-plugin</artifactId>
<configuration>
<className>CompatLocator</className>
<packageName>org.gvsig.compat</packageName>
<contextFile>cdc-spring-config.xml</contextFile>
</configuration>
</plugin>


Am I doing something wrong?

Thank you

Wilfred Springer

unread,
Apr 16, 2009, 7:12:38 AM4/16/09
to spri...@googlegroups.com
No, you just hit the corner case. ;-)

This calls for some small modifications, but as a workaround, you need
to set the className to a fully qualified classname, including a
package name. BTW, there is a new snapshot coming, since it turned out
I inadvertently dropped support for cyclic dependencies.

Wilfred

Wilfred Springer

unread,
Apr 16, 2009, 10:05:03 AM4/16/09
to spri...@googlegroups.com
The latest snapshot has relies on a fully qualifed classname:

So it should be <className>org.gvsig.compat.CompatLocator</className>

You are probably best of checking out the entire code base, since it
contains a couple of decent examples.

Hope it helps,

Wilfred

On Apr 16, 2009, at 12:53 PM, Javier Carrasco wrote:

>

Javi

unread,
Apr 16, 2009, 10:15:38 AM4/16/09
to spri...@googlegroups.com
Thank you, This works for me.

Javi

2009/4/16 Wilfred Springer <wil...@flotsam.nl>
Reply all
Reply to author
Forward
0 new messages