Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Missing artifacts / non-existing libraries - please assist

Hi Rafal,

Thanks for the reply, I was starting to wonder...

I finally found the answer, and your mail really helped:

antony@antonygvbdebian:~/workspace/tutorial$ mvn dependency:resolve
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: unknown
POM Location: /home/antony/workspace/tutorial/pom.xml

Reason: Parse error reading POM. Reason: start tag not allowed in
epilog but got r (position: END_TAG seen
...</dependencies>\n</project>\n\n<r... @38:3)  for project unknown at
/home/antony/workspace/tutorial/pom.xml


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Parse error reading
POM. Reason: start tag not allowed in epilog but got r (position:
END_TAG seen ...</dependencies>\n</project>\n\n<r... @38:3)  for
project unknown at /home/antony/workspace/tutorial/pom.xml
	at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)

Indeed, my <repositories> tag was after </project>, so my pom.xml was
badly formed.  No excuses on my part, but it would have been nice to
have the actual error pointed out by m2e.  I don't know why I didn't
see this from the Eclipse IDE, I have tried enabling as much debug as
possible, and the best I get is:
1/16/12 10:45:16 AM GMT+02:00: [INFO] Downloaded
http://repo1.maven.org/maven2/org/geotools/gt-shapefile/8.0-M4/gt-shapefile-8.0-M4.pom
1/16/12 10:45:16 AM GMT+02:00: [WARN] The POM for
org.geotools:gt-shapefile:jar:8.0-M4 is missing, no dependency
information available
1/16/12 10:45:17 AM GMT+02:00: [INFO] Downloaded
http://repo1.maven.org/maven2/org/geotools/gt-swing/8.0-M4/gt-swing-8.0-M4.pom
1/16/12 10:45:17 AM GMT+02:00: [WARN] The POM for
org.geotools:gt-swing:jar:8.0-M4 is missing, no dependency information
available
1/16/12 10:45:17 AM GMT+02:00: [INFO] Downloaded
http://repo1.maven.org/maven2/org/geotools/gt-swing/8.0-M4/gt-swing-8.0-M4.jar
1/16/12 10:45:18 AM GMT+02:00: [INFO] Downloaded
http://repo1.maven.org/maven2/org/geotools/gt-shapefile/8.0-M4/gt-shapefile-8.0-M4.jar
1/16/12 10:45:18 AM GMT+02:00: [INFO] Using 'UTF-8' encoding to copy
filtered resources.
1/16/12 10:45:18 AM GMT+02:00: [INFO] skip non existing
resourceDirectory /home/antony/workspace/tutorial/src/main/resources
1/16/12 10:45:18 AM GMT+02:00: [INFO] Using 'UTF-8' encoding to copy
filtered resources.
1/16/12 10:45:18 AM GMT+02:00: [INFO] skip non existing
resourceDirectory /home/antony/workspace/tutorial/src/test/resources
1/16/12 10:45:18 AM GMT+02:00: [WARN] The POM for
org.geotools:gt-shapefile:jar:8.0-M4 is missing, no dependency
information available
1/16/12 10:45:18 AM GMT+02:00: [WARN] The POM for
org.geotools:gt-swing:jar:8.0-M4 is missing, no dependency information
available

Of course, this doesn't make sense, as the http://repo1.maven.org
links don't hold any reference to geotools.

So thanks a lot for your help and if you have any advice on how I
could have enabled some extra m2e debug to catch this, I'd be all
ears.

Antony

2012/1/16 Rafał Krzewski <Rafal.Krzewski@xxxxxxxxx>:
> Antony,
>
> my guess is that something is not right with the proxy settings.
> Are you able to build the project outside of Eclipse, using standalone Maven
> that you've installed?
> Is the proxy in Eclipse actually working? For example can you browse Eclipse
> update sites in the "Install new software" screen?
>
> Cheers,
> Rafał
>
>
> On 01/15/2012 02:16 PM, Antony Gelberg wrote:
>>
>> Hi all,
>>
>> Having a problematic time with Eclipse (Indigo SR1) and Maven.  I'm
>> new to both, I've tried Eclipse in the past and I always seem to get
>> strange errors even when I'm setting up my environment, which
>> discourage me.  Nevertheless I'm back for one more go.  I'm following
>> the tutorial at
>> http://docs.geotools.org/latest/userguide/tutorial/quickstart/eclipse.html
>> and I'm stuck at "Adding Jars to your Project".
>>
>> The errors are:
>> o Missing artifact org.geotools:gt-shapefile:jar:8.0-M4
>> o Missing artifact org.geotools:gt-swing:jar:8.0-M4
>> o The container 'Maven Dependencies' references non existing library
>>
>> '/home/antony/.m2/repository/org/geotools/gt-shapefile/8.0-M4/gt-shapefile-8.0-M4.jar'
>> o The project cannot be built until build path errors are resolved
>>
>> Sure enough, that container doesn't exist:
>>
>> antony@antonygvbdebian:~$ find .m2/repository/org/geotools/gt-shapefile/
>> .m2/repository/org/geotools/gt-shapefile/
>> .m2/repository/org/geotools/gt-shapefile/8.0-M4
>>
>> .m2/repository/org/geotools/gt-shapefile/8.0-M4/gt-shapefile-8.0-M4.pom.lastUpdated
>>
>> .m2/repository/org/geotools/gt-shapefile/8.0-M4/gt-shapefile-8.0-M4.jar.lastUpdated
>>
>> I'm behind a corporate firewall and have set up the proxy in Eclipse.
>> I've also gotten Maven to "work" via proxy by editing
>> ~/.m2/settings.xml and setting Eclipse to use External maven in
>> /usr/share/maven2.  Without this, I can't even successfully reindex by
>> clicking Reindex in Preferences ->  Maven ->  User Settings.  So that
>> works but I'm now stumped at the good bit.  I have tried
>> right-clicking on the project, then Maven ->  Update Dependencies, but
>> no joy.  I can't get it to populate the geotools repository.
>>
>> I'm really at a loss here.  Hope somebody can shed some light on this
>> - of course I can provide more debugging information if you tell me
>> what is needed.
>>
>> Antony
>> _______________________________________________
>> m2e-users mailing list
>> m2e-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>
>
> _______________________________________________
> m2e-users mailing list
> m2e-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top