Anders Hammar wrote:
> 
> What happens if you execute
> mvn compile
> Does it work?
> 
That works fine even when compile runs as a prerequisite of gwt:run. You can
see that in the output, too, and immediately after the compile phase, my
test antrun execution runs, printing out the properly-loaded property. Then
immediately after, the gwt plugin doesn't see the property:
[...]
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [antrun:run {execution: test}]
[INFO] Executing tasks
     [echo] This should be just before the gwt:run.
     [echo] The tomcat.httpPort property is now: 8080
[INFO] Executed tasks
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to configure plugin parameters for:
org.codehaus.mojo:gwt-maven-plugin:1.1

Cause: Not a number: '1null'
[INFO]
------------------------------------------------------------------------ 
[...]


Anders Hammar wrote:
> 
> What version of maven are you using? Have you tried with 3.0-alpha?
> 
I'm using 2.2.1. I haven't tried 3. If I don't think of something else
soon--I've been diverted to something else temporarily--I'll give that a
try.


Anders Hammar wrote:
> 
> Maybe the gwt-maven-plugin User mailing list can provide better support.
> Or
> maybe someone else has more indepth knowledge of plugins and knows exactly
> how it works. Your idea sounds as it could be the problem here.
> 
It isn't a problem with the GWT plugin. Setting the property directly in the
POM causes it to be picked up by the plugin just fine. It's when the
property is loaded by the other plugin that there's a problem. For some
reason, maven doesn't seem to treat this the same as a property declared in
the POM.
-- 
View this message in context: 
http://old.nabble.com/Property-loaded-by-plugin-not-available-to-gwt%3Arun-tp27227122p27259980.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]

Reply via email to