build failed

12 views
Skip to first unread message

oterral

unread,
May 4, 2010, 5:06:33 AM5/4/10
to JSF-Flex
Hi,

I try to build the trunk with this command : mvn -D wtpversion=none
eclipse:eclipse


but I obtain the exception below.
I've also tried to build the tags 1.0.1b but same thing, only the tag
1.0b build correctly

It seems the _project poperty of the CreateSwcConfigurationFile.javas
class is null, I don't know how to resolve that, maybe it is a
misconfiguration of maven .

Please help me

For information , I've tested on ubuntu 10.04 and windows XP SP2 with
maven 2.1.0 and JDK 6 update 20




java.lang.NullPointerException
at
com.googlecode.jsfFlexPlugIn.mojo.CreateSwcConfigurationFile.inspectionCompleted(CreateSwcConfigurationFile.java:
176)
at
com.googlecode.jsfFlexPlugIn.inspector._JsfFlexInspectorBase.inspectionCompleted(_JsfFlexInspectorBase.java:
63)
at com.googlecode.jsfFlexPlugIn.mojo.CreateSwcConfigurationFile
$1.inspectFiles(CreateSwcConfigurationFile.java:131)
at
com.googlecode.jsfFlexPlugIn.mojo.CreateSwcConfigurationFile.execute(CreateSwcConfigurationFile.java:
139)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:
490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
694)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:
556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:
1205)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:
1038)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
643)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:
569)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:
539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:
387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:
348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:
60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 minutes 16 seconds
[INFO] Finished at: Tue May 04 10:22:32 CEST 2010
[INFO] Final Memory: 21M/51M
[INFO]
------------------------------------------------------------------------

--
You received this message because you are subscribed to the Google Groups "JSF-Flex" group.
To post to this group, send email to jsf-...@googlegroups.com.
To unsubscribe from this group, send email to jsf-flex+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jsf-flex?hl=en.

Jihoon Kim

unread,
May 5, 2010, 3:05:01 AM5/5/10
to jsf-...@googlegroups.com
Hi,

First of all, thanks for your interest in the project. I will respond
to this post first.

So I assume you were planning to import the code to eclipse? If that
is the case then your command of "mvn eclipse:eclipse" should do it
[since if you don't want wtpversion you can leave it out, I think it's
defaulted to none]. The problem that you might be encountering is due
to the fact that I have already installed JSF Flex plug-in within my
local repository and when I have made the changes I might have
neglected it. So my fault in that. Can you try to perform the
following actions [always at the root]?

"mvn install"

Whenever you perform a build, you should execute "mvn clean" and then
"mvn install" sequentially. There exists a reason that I am asking it
not to be executed in "mvn clean install". If your curious, it is b/c
the JSF Flex plug-in creates couple of configuration xml files and I
wanted to store the content as an annotation within a single project.
Of course I plan on changing this whenever I get additional free time.

I have deleted the project from my local repository and I did
encounter the issue when executing "mvn -Dwtpversion=1.5
eclipse:eclipse" but afterwards I was able to successfully invoke "mvn
install" on my Windows XP SP2. I will load ubuntu on my virtual
machine when I get free time and test it out there as well.

Just a side note, you should avoid possibly invoking "mvn install" on
the tags, since I needed to use a low level Mojarra JSF implementation
due to the fact that the more recent version are not held within the
main maven repository and I needed to execute "mvn deploy" on it.
Anyway, kudos in trying to build from the source and for ref, I only
recently have updated the branch with JSF 2.0, so not sure how stable
that 1.1b branch is. Of course in my upcoming vacation I am hoping to
perform clean up + start of migration to Flex 4 as well.

Anyway, sorry for the late response and thanks again!
--
Sincerely,

Ji Hoon Kim
dosBuild.jpg

oterral

unread,
May 5, 2010, 4:01:31 AM5/5/10
to JSF-Flex
Thanks for you answer and sorry If I harass you of a lot of
questions.I know JSF but I'm new to flex action-script, and I've just
began to learn how can I develop with flex (windows + flashbuilder 4).
Now I try to find how can I develop with jsf-flex in an efficient
way. Do you use Maven plugin of eclipse? I try to use it and don't
succeed to compile jsf-flex-examples and other too. I need to do some
research on how should I configure it (problem with flexsdk, maven
seems preferred a javajdk)

But in a command line , the project build successfully on tag 1.0.1b
and trunk


Your project is very interesting and I hope I could work more on it

A+
> > For more options, visit this group athttp://groups.google.com/group/jsf-flex?hl=en.
>
> --
> Sincerely,
>
> Ji Hoon Kim
>
> --
> You received this message because you are subscribed to the Google Groups "JSF-Flex" group.
> To post to this group, send email to jsf-...@googlegroups.com.
> To unsubscribe from this group, send email to jsf-flex+u...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/jsf-flex?hl=en.
>
>  dosBuild.jpg
> 161KAfficherTélécharger

Jihoon Kim

unread,
May 5, 2010, 12:11:24 PM5/5/10
to jsf-...@googlegroups.com
You should feel great for asking these questions, since they are good
ones and I dearly appreciate them. If asking too many questions is a
flaw in human being, then Socrates would be a failure, but we all know
that isn't true [no matter how many times he claims himself to be
unwise in his dialogues]. Of course the quality of question also
count, but I am getting off topic.

It's great to hear that your interest is similar to mine, meaning that
the reason I spanned off this project is due to desire in
experimenting with these technologies. So awesome!

Of course the 1.0b release is just the start. In the future, I wish to
support JSF 2.0, Flex 4.0 [conversion of components from mxml to spark
would be abstracted to the user of course], and provide additional
tie-ins from Java to ActionScript code. The last part is probably the
most interesting area. For instance there would be an
updateValueListener [recently coded/checked in] which allows listening
to a source Flex component's event and updating a target Flex
component's value with a returned object from a MethodExpression on
the server side.

That's where I hope that this project will lead to in the future, with
also features such as :
(a) Allow users to more easily tie in their custom ActionScript
content [so to allow easier integration with other ActionScript open
source projects].
(b) Possibly custom ActionScript code using some of the new graphics
and etcetera from Flex 4
(c) Capability to allow server side logging for ActionScript content
by configuration within web.xml
(d) and etcetera

Hopefully from all I have written the ratio of fluff to stuff is small
<8^). Anyway, welcome!
Reply all
Reply to author
Forward
0 new messages