AnsweredAssumed Answered

edit: I managed to install

Question asked by sara.gangale on Dec 15, 2014
edit: I managed to install apache maven and I think I've configured correctly, but when I try to build the project (assuming I'm doing it the right way which I'm not sure about) I receive the following exception:

C:\Users\Administrator\Desktop\hide_create_site>mvn -e archetype:generate \ -Dar
chetypeCatalog=https://artifacts.alfresco.com/nexus/content/groups/public/archet
ype-catalog.xml \ -Dfilter=org.alfresco.maven.archetype:
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects…
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountere
d while processing the POMs:
[FATAL] Non-parseable POM C:\Users\Administrator\Desktop\hide_create_site\pom.xm
l: Expected root element 'project' but found 'html' (position: START_TAG seen ..
.<!DOCTYPE html>\n<html lang="en" class="">… @6:26)  @ line 6, column 26

        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBu
ilder.java:416)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:663)
        at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven
.java:654)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:243)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
356)
[ERROR]
[ERROR]   The project  (C:\Users\Administrator\Desktop\hide_create_site\pom.xml)
has 1 error
[ERROR]     Non-parseable POM C:\Users\Administrator\Desktop\hide_create_site\po
m.xml: Expected root element 'project' but found 'html' (position: START_TAG see
n …<!DOCTYPE html>\n<html lang="en" class="">… @6:26)  @ line 6, column 26 -
> [Help 2]
org.apache.maven.model.io.ModelParseException: Expected root element 'project' b
ut found 'html' (position: START_TAG seen …<!DOCTYPE html>\n<html lang="en" cl
ass="">… @6:26)
        at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.
java:127)
        at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.
java:91)
        at org.apache.maven.model.building.DefaultModelProcessor.read(DefaultMod
elProcessor.java:77)
        at org.apache.maven.model.building.DefaultModelBuilder.readModel(Default
ModelBuilder.java:483)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultMode
lBuilder.java:257)
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBu
ilder.java:463)
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBu
ilder.java:432)
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBu
ilder.java:396)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:663)
        at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven
.java:654)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:243)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
356)
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: Expected ro
ot element 'project' but found 'html' (position: START_TAG seen …<!DOCTYPE htm
l>\n<html lang="en" class="">… @6:26)
        at org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx.read(MavenXpp3Reader
Ex.java:4348)
        at org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx.read(MavenXpp3Reader
Ex.java:560)
        at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.
java:118)
        … 22 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseExce
ption


I don't know how to troubleshoot this…

Outcomes