Build failed

743 views
Skip to first unread message

SB

unread,
Sep 22, 2014, 6:05:32 AM9/22/14
to jgras...@googlegroups.com
Hello,

I use the jgrasstools for the first time. I am getting a build failed.

mvn -X install
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.7.0_60, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-35-generic", arch: "amd64", family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /home/sofiane/.m2/settings.xml
[DEBUG] Using local repository at /home/sofiane/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /home/sofiane/.m2/repository
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[WARNING] Malformed POM /home/sofiane/.m2/repository/org/sonatype/oss/oss-parent/6/oss-parent-6.pom: Expected root element 'project' but found 'HTML' (position: START_TAG seen <HTML>... @1:6)  @ /home/sofiane/.m2/repository/org/sonatype/oss/oss-parent/6/oss-parent-6.pom, line 1, column 6
[FATAL] 'groupId' is missing. @ [unknown-group-id]:[unknown-artifact-id]:[unknown-version], /home/sofiane/.m2/repository/org/sonatype/oss/oss-parent/6/oss-parent-6.pom, line 1, column 6
[FATAL] 'artifactId' is missing. @ [unknown-group-id]:[unknown-artifact-id]:[unknown-version], /home/sofiane/.m2/repository/org/sonatype/oss/oss-parent/6/oss-parent-6.pom, line 1, column 6
[FATAL] 'version' is missing. @ [unknown-group-id]:[unknown-artifact-id]:[unknown-version], /home/sofiane/.m2/repository/org/sonatype/oss/oss-parent/6/oss-parent-6.pom, line 1, column 6

    at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:363)
    at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
    at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR]  
[ERROR]   The project org.jgrasstools:jgrasstools:0.7.7-SNAPSHOT (/home/sofiane/jgrasstools/pom.xml) has 3 errors
[ERROR]     'groupId' is missing. @ [unknown-group-id]:[unknown-artifact-id]:[unknown-version], /home/sofiane/.m2/repository/org/sonatype/oss/oss-parent/6/oss-parent-6.pom, line 1, column 6
[ERROR]     'artifactId' is missing. @ [unknown-group-id]:[unknown-artifact-id]:[unknown-version], /home/sofiane/.m2/repository/org/sonatype/oss/oss-parent/6/oss-parent-6.pom, line 1, column 6
[ERROR]     'version' is missing. @ [unknown-group-id]:[unknown-artifact-id]:[unknown-version], /home/sofiane/.m2/repository/org/sonatype/oss/oss-parent/6/oss-parent-6.pom, line 1, column 6
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

Thank you for helping.

Regards,
SB

andrea antonello

unread,
Sep 22, 2014, 6:17:29 AM9/22/14
to jgras...@googlegroups.com
Hi SB,

> I use the jgrasstools for the first time. I am getting a build failed.
>
> mvn -X install
> Apache Maven 3.0.5
> Maven home: /usr/share/maven
> Java version: 1.7.0_60, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-7-oracle/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.13.0-35-generic", arch: "amd64", family:
> "unix"
[...]
> [ERROR] The project org.jgrasstools:jgrasstools:0.7.7-SNAPSHOT
> (/home/sofiane/jgrasstools/pom.xml) has 3 errors
[...]

Can you try to checkout the latest GIT version? It should state 0.7.9-SNAPSHOT.

I just tried the same previously cleaning up and the build passes:

Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.7.0_67, vendor: Oracle Corporation
Java home: /home/hydrologis/SOFTWARE/JAVA/JDKS/jdk1.7.0_67/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-35-generic", arch: "amd64", family: "unix"
[INFO] Error stacktraces are turned on.

I just have a slighly newer JVM, but that is for sure not the problem.

Cheers,
Andrea

SB

unread,
Sep 22, 2014, 6:23:49 AM9/22/14
to jgras...@googlegroups.com
Hi Moovida,

thank you for thr reply.

I just try the new repository and I had the same problem.

[ERROR]   The project org.jgrasstools:jgrasstools:0.7.9-SNAPSHOT

I also tried in another PC with java 1.6 and unfortunately not worked.

Regards.

Sofiane

andrea antonello

unread,
Sep 22, 2014, 6:27:08 AM9/22/14
to jgras...@googlegroups.com
Hi Sofiane,

> I just try the new repository and I had the same problem.
>
> [ERROR] The project org.jgrasstools:jgrasstools:0.7.9-SNAPSHOT

can you please show me the complete error log?

> I also tried in another PC with java 1.6 and unfortunately not worked.

There seems to be some other problem, can you try the following:
mvn clean; mvn -N install; mvn install

And in case send the error log.

Cheers,
Andrea
> --
> You received this message because you are subscribed to the Google Groups
> "jgrasstools" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jgrasstools...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

SB

unread,
Sep 22, 2014, 6:37:16 AM9/22/14
to jgras...@googlegroups.com
Hi Andrea,

this is the result of mvn clean: always the same errors.
I don't think that comes from the jgrasstools version because now I work with 0.7.9 as you can see.

mvn clean

[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]  
[ERROR]   The project org.jgrasstools:jgrasstools:0.7.9-SNAPSHOT (/home/sofiane/moovida-jgrasstools-0c2a14e/pom.xml) has 3 errors

[ERROR]     'groupId' is missing. @ [unknown-group-id]:[unknown-artifact-id]:[unknown-version], /home/sofiane/.m2/repository/org/sonatype/oss/oss-parent/6/oss-parent-6.pom, line 1, column 6
[ERROR]     'artifactId' is missing. @ [unknown-group-id]:[unknown-artifact-id]:[unknown-version], /home/sofiane/.m2/repository/org/sonatype/oss/oss-parent/6/oss-parent-6.pom, line 1, column 6
[ERROR]     'version' is missing. @ [unknown-group-id]:[unknown-artifact-id]:[unknown-version], /home/sofiane/.m2/repository/org/sonatype/oss/oss-parent/6/oss-parent-6.pom, line 1, column 6
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException


Regards,

Sofiane.

andrea antonello

unread,
Sep 22, 2014, 6:54:39 AM9/22/14
to jgras...@googlegroups.com
Hi Sofiane,

> this is the result of mvn clean: always the same errors.
> I don't think that comes from the jgrasstools version because now I work
> with 0.7.9 as you can see.

ok, good.
Can you send me (offlist) thefollowing files:
/home/sofiane/moovida-jgrasstools-0c2a14e/pom.xml
/home/sofiane/.m2/repository/org/sonatype/oss/oss-parent/6/oss-parent-6.pom

Just to check, you are online, when you run this?

Andrea

SB

unread,
Sep 22, 2014, 7:23:51 AM9/22/14
to jgras...@googlegroups.com
Hi Andrea,

some good news: after deleting .m2 repository and a mvn clean, I got the following error:

[ERROR] error: error reading .m2/repository/net/sourceforge/hatbox/hatbox/1.0.b7/hatbox-1.0.b7.jar; error in opening zip file.

I downloaded the jar manually and copied it to the right directory resolved the problem.

It will be better if the mvn install works without manual downloads,

Thank you Andrea, it's only a build, I am sure that I need your help when I really want to use jgrasstools in my java code.

SB

unread,
Sep 22, 2014, 12:19:33 PM9/22/14
to jgras...@googlegroups.com
Hi Andrea,

as I promised :-) , I am back.

The mvn works correctly but "mvn eclipse:eclipse" failed.

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-eclipse-plugin:2.9:eclipse (default-cli)
on project jgt-jgrassgears: Execution default-cli of goal
org.apache.maven.plugins:maven-eclipse-plugin:2.9:eclipse failed: For
artifact {null:null:null:jar}: The groupId cannot be empty. -> [Help 1]
[ERROR]


By the way, it will be helpful if you tell me that calling Grass
commands from a java code is possible with JGrasstools (from eclipse).
Otherwise, Maybe it's a lost of time.

Thank you.


Regards,

Sofiane.

andrea antonello

unread,
Sep 23, 2014, 2:49:04 AM9/23/14
to jgras...@googlegroups.com
Hi Sofiane,

> as I promised :-) , I am back.

:-)

> The mvn works correctly but "mvn eclipse:eclipse" failed.
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-eclipse-plugin:2.9:eclipse (default-cli)
> on project jgt-jgrassgears: Execution default-cli of goal
> org.apache.maven.plugins:maven-eclipse-plugin:2.9:eclipse failed: For
> artifact {null:null:null:jar}: The groupId cannot be empty. -> [Help 1]
> [ERROR]

I am afraid there is really something strange going on with your
development environment.

One only thing is a real problem, which is happening also in the
continuous buildbox of jgrasstools: the hatbox dependency got
corrupted on maven somehow. It is a geotools dependency and I will
have to check how that got fixed. Maybe I will try upgrading geotools
itself.

> By the way, it will be helpful if you tell me that calling Grass
> commands from a java code is possible with JGrasstools (from eclipse).
> Otherwise, Maybe it's a lost of time.

Well, that depends on you. The grass package in jgrasstools has been
last updated a couple of years ago at a codesprint. At that time I was
able to run grass commands from within the Spatial Toolbox (I think
version 6.3). They might need to be upgraded for the version you need.
Also only commands that do not need user interaction will work, i.e.,
define input and run.

Hope that helps,
Andrea

SB

unread,
Sep 23, 2014, 5:23:37 AM9/23/14
to jgras...@googlegroups.com
Hi Andrea,

reading this
http://gis.19327.n5.nabble.com/GRASS-native-commands-td5169163.html
motivates to me to continue fighting against JGrass :-) . So far I know,
there is few works dealing with Grass and Java so I insist and I believe
that I will get it working one day.

Regards,

Sofiane.

andrea antonello

unread,
Sep 24, 2014, 4:15:01 AM9/24/14
to jgras...@googlegroups.com
Hi Sofiane,

> reading this
> http://gis.19327.n5.nabble.com/GRASS-native-commands-td5169163.html
> motivates to me to continue fighting against JGrass :-) . So far I know,
> there is few works dealing with Grass and Java so I insist and I believe
> that I will get it working one day.

it might take a little work to get it up and running again but it can be done.

I also fixed the build now, removing the hatbox dependency from the
master branch, since it was corrupted.
The build now passes again: https://moovida.ci.cloudbees.com/job/jgrasstools/
So now if something fails it can be only your environment :-)

I have also seen you request for the same thing in the geotools mailinglist.
I all you need is to create an NDVI module, most probably it will be
better to create one in java. I assume NDVI is not really hard to code
and having it in java will give you advantages, if your environment is
in java already.

Cheers,
Andrea
Reply all
Reply to author
Forward
0 new messages