Issue
I am still getting the hang of Maven and spring, but am having an odd problem.
Up until a few days ago I could build maven fine by using the command:
mvn -Dmaven.test.skip=true clean install eclipse:eclipse –o
not sure what changed but i started getting the error:
BUILD FAILURE
Invalid task 'uo': you must specify a valid lifecycle phase,
or a goal in the format plugin:goal or
pluginGroupIf:pluginArtifactId:pluginVersion:goal
for mor information run with the -e switch
I tried updating all my code from SVN and got the same error. I finally completed building all packages with online with: mvn -Dmaven.test.skip=true clean install eclipse:eclipse
which gave be BUILD SUCCESSFUL for all project packages.
Yet when I try building maven offline again i continue to get the same Build Failure error. Any thoughts?
Note: there is about 8 packages in my project and they all get the same build failure error
Solution
–
character is incorrect use -
instead, in your command
change this
mvn -Dmaven.test.skip=true clean install eclipse:eclipse –o
to
mvn -Dmaven.test.skip=true clean install eclipse:eclipse -o
Note: there is change in -
hyphen character
Answered By - jmj
Answer Checked By - Katrina (JavaFixing Volunteer)