You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2019/04/12 12:41:00 UTC

[jira] [Closed] (MNG-6635) Syntax error in Maven

     [ https://issues.apache.org/jira/browse/MNG-6635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MNG-6635.
-------------------------------
    Resolution: Not A Problem
      Assignee: Robert Scholte

I'm won't work on Windows either. You're letting a main class depend on a test-class within the same project. That is not possible. Earlier versions of Eclipse didn't had the notion of main classes and test classes, all were considered "classes" and were compiled at the same time. However, when running Maven from commandline it would break.

So this is not a problem, but a problem with the structure of your source files.

ps. Next time please use Stack Overflow for these kind of questions.

> Syntax error in Maven
> ---------------------
>
>                 Key: MNG-6635
>                 URL: https://issues.apache.org/jira/browse/MNG-6635
>             Project: Maven
>          Issue Type: Bug
>            Reporter: Shweta Soni
>            Assignee: Robert Scholte
>            Priority: Major
>         Attachments: Appium.png
>
>
> I have created Maven project in Macbook.
> I have created classes with package structure in src/main/java and src/test/java.
> I am trying to access methods from src/test/java to src/main/java but i am getting syntax error.
> What could be the possible reason. Please help.
> Note : I have check with project cleanup but its not working.
> *Same code is working on windows machine.*
> Attaching screenshot for reference



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)