Hi Peter,

After reading the documentation: this is an ant based project!

I just run "ant" and I build the thing withing 5 seconds [1].

Maybe you want to try to import into NetBeans as an Ant project?

Cheers,
Antonio

[1]

[...]
    [javac] Note: Recompile with -Xlint:unchecked for details.
      [jar] Building jar: /home/antonio/tmp/javacc/target/javacc.jar
      [jar] Building jar: /home/antonio/tmp/javacc/target/javacc-7.0.4.jar

BUILD SUCCESSFUL
Total time: 5 seconds



On 01/06/18 23:27, Peter Nabbefeld wrote:

Hi Antonio,

trying to build using NB was my first approach, of course, but resulted in several problems.

When trying from the command line, I get following errors (Java9 is default on my computer):
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Source option 1.5 is no longer supported. Use 1.6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.

Obviously it uses wrong JDK - probably JDK 9 isn't correctly identified yet, and Java 5 is taken as a fallback. So, as JDK 10 is current version, the POM is at least not ready for modern Java.

After adding the source and target properties, there 's a long list with errors. It seems to me, that this special POM might probably work with Eclipse (there're Eclipse project files in the repository), but I don't see how to build the project even from the command line.  :-/

Kind regards
Peter



Am 01.06.2018 um 21:04 schrieb Antonio:
Hi,

Can you run a plain Maven build in the command line? Is this a Maven/pom.xml problem or a NetBeans problem?

If your objective is to build JavaCC from source, I don't think messing with the pom.xml (as retrieved from github's master branch) is a good idea.

I imagine the JavaCC people have a proper "pom.xml" file in their master branch. Just clone the repo and import it in NetBeans, then "Clean & Build" should do the job for you.

Cheers,
Antonio

On 01/06/18 19:20, Peter Nabbefeld wrote:

Hello,

I cloned JavaCC from "https://github.com/javacc/javacc.git"; and tried to build it with NB 9.0 RC1. Of course, I first set the source/target versions to 1.8.

[1] The source hierarchy looks a bit suspicious, most probably because of several entries like the following in pom.xml:
<sourceDirectory>src</sourceDirectory>
     As I've never used those (to be honest, most changes I do in the POM are just adding copied dependencies), I don't know how to fix these. As I'm seeing Eclipse project files, I'd guess, that it handles them differently.

[2] As a result of the mal-configured hierarchy, packages are incorrectly interpreted by NB.

Usually, I'd guess the build file is correct, but IMHO maven should be able to build the project then without worrying, if NB interpretes the files correctly. So, could anybody tell me how to fix the build problems?


Kind regards
Peter


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to