[
https://issues.apache.org/jira/browse/NETBEANS-1106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephen McCants updated NETBEANS-1106:
--------------------------------------
Description:
This was originally opened here
([https://netbeans.org/bugzilla/show_bug.cgi?id=271487)], but I think that was
the wrong place, so I'm opening it here.
Netbeans automatically generates the build-impl.xml file in a way that does not
work correctly inside or outside of Netbeans.
Running vanilla Ant 1.9.9 or Ant 1.10.1 using Java 1.8 results in the following
error:
BUILD FAILED
C:\Users\Stephen\hcs\orc.trunk\nb\build.xml:278: The following error occurred
while executing this line:
C:\Users\Stephen\hcs\orc.trunk\nb\build.xml:229: The following error occurred
while executing this line:
C:\Users\Stephen\hcs\orc.trunk\nb\ServerLibWOC\nbproject\build-impl.xml:1623:
Unknown attribute [modulepath]
Total time: 2 minutes 35 seconds
Being able to build from the command line is important for continuous build
(e.g. Jenkins or Hudson) and release processes that will not be done from
inside Netbeans. Netbeans should work correctly or at least provide information
about what additional or substitute libraries are required to make the build
work correctly.
Tried running the command line versions of Ant under Java 9ea, but this made
no difference.
*Workaround:* Edit all build-impl.xml files and remove the "modulepath="
references. This has to be done frequently as Netbeans will re-introduce the
"modulepath" at a later date.
*Workaround 2:* Use Netbeans 8.2. This is the work around we've selected.
Additional details and some discussion found here:
[https://stackoverflow.com/questions/46244201/netbeans-dev-9-x-java-projects-will-not-build-outside-of-netbeans/46246930?noredirect=1#comment79493141_46246930]
was:
This was originally opened here
([https://netbeans.org/bugzilla/show_bug.cgi?id=271487)], but I think that was
the wrong place, so I'm opening it here.
Netbeans automatically generates the build-impl.xml file in a way that does not
work correctly outside of Netbeans.
Running vanilla Ant 1.9.9 or Ant 1.10.1 using Java 1.8 results in the following
error:
BUILD FAILED
C:\Users\Stephen\hcs\orc.trunk\nb\build.xml:278: The following error occurred
while executing this line:
C:\Users\Stephen\hcs\orc.trunk\nb\build.xml:229: The following error occurred
while executing this line:
C:\Users\Stephen\hcs\orc.trunk\nb\ServerLibWOC\nbproject\build-impl.xml:1623:
Unknown attribute [modulepath]
Total time: 2 minutes 35 seconds
Being able to build from the command line is important for continuous build
(e.g. Jenkins or Hudson) and release processes that will not be done from
inside Netbeans. Netbeans should work correctly or at least provide information
about what additional or substitute libraries are required to make the build
work correctly.
Tried running the command line versions of Ant under Java 9ea, but this made
no difference.
*Workaround:* Edit all build-impl.xml files and remove the "modulepath="
references. This has to be done frequently as Netbeans will re-introduce the
"modulepath" at a later date.
*Workaround 2:* Use Netbeans 8.2. This is the work around we've selected.
Additional details and some discussion found here:
[https://stackoverflow.com/questions/46244201/netbeans-dev-9-x-java-projects-will-not-build-outside-of-netbeans/46246930?noredirect=1#comment79493141_46246930]
> Netbeans corrupts build-impl.xml files with modulepath options that will not
> compile.
> -------------------------------------------------------------------------------------
>
> Key: NETBEANS-1106
> URL: https://issues.apache.org/jira/browse/NETBEANS-1106
> Project: NetBeans
> Issue Type: Bug
> Affects Versions: 9.0, 11.0
> Reporter: Stephen McCants
> Priority: Major
>
> This was originally opened here
> ([https://netbeans.org/bugzilla/show_bug.cgi?id=271487)], but I think that
> was the wrong place, so I'm opening it here.
> Netbeans automatically generates the build-impl.xml file in a way that does
> not work correctly inside or outside of Netbeans.
> Running vanilla Ant 1.9.9 or Ant 1.10.1 using Java 1.8 results in the
> following error:
> BUILD FAILED
> C:\Users\Stephen\hcs\orc.trunk\nb\build.xml:278: The following error
> occurred while executing this line:
> C:\Users\Stephen\hcs\orc.trunk\nb\build.xml:229: The following error
> occurred while executing this line:
>
> C:\Users\Stephen\hcs\orc.trunk\nb\ServerLibWOC\nbproject\build-impl.xml:1623:
> Unknown attribute [modulepath]
> Total time: 2 minutes 35 seconds
>
> Being able to build from the command line is important for continuous build
> (e.g. Jenkins or Hudson) and release processes that will not be done from
> inside Netbeans. Netbeans should work correctly or at least provide
> information about what additional or substitute libraries are required to
> make the build work correctly.
>
> Tried running the command line versions of Ant under Java 9ea, but this made
> no difference.
>
> *Workaround:* Edit all build-impl.xml files and remove the "modulepath="
> references. This has to be done frequently as Netbeans will re-introduce the
> "modulepath" at a later date.
> *Workaround 2:* Use Netbeans 8.2. This is the work around we've selected.
>
> Additional details and some discussion found here:
>
> [https://stackoverflow.com/questions/46244201/netbeans-dev-9-x-java-projects-will-not-build-outside-of-netbeans/46246930?noredirect=1#comment79493141_46246930]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists