Topics

Problem with building 4.19.7 relating to Maven (I guess).


wombat_rrnut
 

I haven't had time sine 1/10/2020 to do anything to JMRI (I'm the CTC guy).

Finally, I needed to update my source to the current set (4.19.7 i believe)

So I did that.  Builds no longer work.  Ant->RealClean, Clean and Build.
I've noticed (and searched fort this answer on this forum) that there were
in the past a LOT of problems with movement from Ant? to Maven? builds

I looked at the web site for NetBeans new instructions per the suggestions
on this forum, and on my version of NetBeans, there is no "Resolve Project Problems"
as illustrated.  I'm running NetBeans 8.2
So first, do I need to upgrade NetBeans to what version I assume?
I suspect if I can "Resolve Project Problems", that this problem will go away?

Output from compile:

cd C:\Users\NetBeansJMRI\Documents\NetBeansProjects\JMRI; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_181" cmd /c "\"\"C:\\Program Files\\NetBeans 8.2\\java\\maven\\bin\\mvn.bat\" -DskipTests=true -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.2\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 clean install\""
Scanning for projects...

Some problems were encountered while building the effective model for org.jmri:jmri:jar:4.19.7-SNAPSHOT
'reporting.plugins.plugin.version' for com.buschmais.jqassistant:jqassistant-maven-plugin is missing. @ line 1142, column 21

It is highly recommended to fix these problems because they threaten the stability of your build.

For this reason, future Maven versions might no longer support building such malformed projects.

                                                                       
------------------------------------------------------------------------
Building JMRI 4.19.7-SNAPSHOT
------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/javacc-maven-plugin/2.6/javacc-maven-plugin-2.6.pom

------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 0.840s
Finished at: Mon May 25 08:07:46 CDT 2020
Final Memory: 6M/123M
------------------------------------------------------------------------
Plugin org.codehaus.mojo:javacc-maven-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:javacc-maven-plugin:jar:2.6: Could not transfer artifact org.codehaus.mojo:javacc-maven-plugin:pom:2.6 from/to central (http://repo.maven.apache.org/maven2): Failed to transfer file: http://repo.maven.apache.org/maven2/org/codehaus/mojo/javacc-maven-plugin/2.6/javacc-maven-plugin-2.6.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException


danielb987
 

Please try to update ant.

https://ant.apache.org/bindownload.cgi

I'm not sure how it is in NetBeans 8.2, but in NetBeans 11.2, you go to menu item Tools / Options and select "Java" and "Ant". There you can see where ant is located.

Daniel

2020-05-25 15:10 skrev wombat_rrnut:

I haven't had time sine 1/10/2020 to do anything to JMRI (I'm the CTC
guy).
Finally, I needed to update my source to the current set (4.19.7 i
believe)
So I did that. Builds no longer work. Ant->RealClean, Clean and
Build.
I've noticed (and searched fort this answer on this forum) that there
were
in the past a LOT of problems with movement from Ant? to Maven? builds
I looked at the web site for NetBeans new instructions per the
suggestions
on this forum, and on my version of NetBeans, there is no "Resolve
Project Problems"
as illustrated. I'm running NetBeans 8.2
So first, do I need to upgrade NetBeans to what version I assume?
I suspect if I can "Resolve Project Problems", that this problem will
go away?
Output from compile:
cd C:\Users\NetBeansJMRI\Documents\NetBeansProjects\JMRI;
"JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_181" cmd /c
"\"\"C:\\Program Files\\NetBeans 8.2\\java\\maven\\bin\\mvn.bat\"
-DskipTests=true -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans
8.2\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8
clean install\""
Scanning for projects...
Some problems were encountered while building the effective model for
org.jmri:jmri:jar:4.19.7-SNAPSHOT
'reporting.plugins.plugin.version' for
com.buschmais.jqassistant:jqassistant-maven-plugin is missing. @ line
1142, column 21
It is highly recommended to fix these problems because they threaten
the stability of your build.
For this reason, future Maven versions might no longer support
building such malformed projects.
------------------------------------------------------------------------
Building JMRI 4.19.7-SNAPSHOT
------------------------------------------------------------------------
Downloading:
http://repo.maven.apache.org/maven2/org/codehaus/mojo/javacc-maven-plugin/2.6/javacc-maven-plugin-2.6.pom
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 0.840s
Finished at: Mon May 25 08:07:46 CDT 2020
Final Memory: 6M/123M
------------------------------------------------------------------------
Plugin org.codehaus.mojo:javacc-maven-plugin:2.6 or one of its
dependencies could not be resolved: Failed to read artifact descriptor
for org.codehaus.mojo:javacc-maven-plugin:jar:2.6: Could not transfer
artifact org.codehaus.mojo:javacc-maven-plugin:pom:2.6 from/to central
(http://repo.maven.apache.org/maven2): Failed to transfer file:
http://repo.maven.apache.org/maven2/org/codehaus/mojo/javacc-maven-plugin/2.6/javacc-maven-plugin-2.6.pom.
Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e
switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please
read the following articles:
[Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
Links:
------
[1] https://jmri-developers.groups.io/g/jmri/message/3471
[2] https://groups.io/mt/74455912/1303822
[3] https://jmri-developers.groups.io/g/jmri/post
[4] https://jmri-developers.groups.io/g/jmri/editsub/1303822
[5] https://jmri-developers.groups.io/g/jmri/leave/defanged


wombat_rrnut
 

Thanks for the suggestion. I think I'll first
upgrade to NetBeans 11.2 like you have.
then perform the rest.

Greg

-----Original Message-----
From: jmri@jmri-developers.groups.io [mailto:jmri@jmri-developers.groups.io]
On Behalf Of danielb987
Sent: Monday, May 25, 2020 8:33 AM
To: jmri@jmri-developers.groups.io
Subject: Re: [jmri-developers] Problem with building 4.19.7 relating to
Maven (I guess).

Please try to update ant.

https://ant.apache.org/bindownload.cgi

I'm not sure how it is in NetBeans 8.2, but in NetBeans 11.2, you go to menu
item Tools / Options and select "Java" and "Ant". There you can see where
ant is located.

Daniel

2020-05-25 15:10 skrev wombat_rrnut:
I haven't had time sine 1/10/2020 to do anything to JMRI (I'm the CTC
guy).

Finally, I needed to update my source to the current set (4.19.7 i
believe)

So I did that. Builds no longer work. Ant->RealClean, Clean and
Build.
I've noticed (and searched fort this answer on this forum) that there
were in the past a LOT of problems with movement from Ant? to Maven?
builds

I looked at the web site for NetBeans new instructions per the
suggestions on this forum, and on my version of NetBeans, there is no
"Resolve Project Problems"
as illustrated. I'm running NetBeans 8.2 So first, do I need to
upgrade NetBeans to what version I assume?
I suspect if I can "Resolve Project Problems", that this problem will
go away?

Output from compile:

cd C:\Users\NetBeansJMRI\Documents\NetBeansProjects\JMRI;
"JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_181" cmd /c
"\"\"C:\\Program Files\\NetBeans 8.2\\java\\maven\\bin\\mvn.bat\"
-DskipTests=true -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans
8.2\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8
clean install\""
Scanning for projects...

Some problems were encountered while building the effective model for
org.jmri:jmri:jar:4.19.7-SNAPSHOT 'reporting.plugins.plugin.version'
for com.buschmais.jqassistant:jqassistant-maven-plugin is missing. @
line 1142, column 21

It is highly recommended to fix these problems because they threaten
the stability of your build.

For this reason, future Maven versions might no longer support
building such malformed projects.

----------------------------------------------------------------------
--
Building JMRI 4.19.7-SNAPSHOT
----------------------------------------------------------------------
--
Downloading:
http://repo.maven.apache.org/maven2/org/codehaus/mojo/javacc-maven-plu
gin/2.6/javacc-maven-plugin-2.6.pom

----------------------------------------------------------------------
--
BUILD FAILURE
----------------------------------------------------------------------
--
Total time: 0.840s
Finished at: Mon May 25 08:07:46 CDT 2020 Final Memory: 6M/123M
----------------------------------------------------------------------
-- Plugin org.codehaus.mojo:javacc-maven-plugin:2.6 or one of its
dependencies could not be resolved: Failed to read artifact descriptor
for org.codehaus.mojo:javacc-maven-plugin:jar:2.6: Could not transfer
artifact org.codehaus.mojo:javacc-maven-plugin:pom:2.6 from/to central
(http://repo.maven.apache.org/maven2): Failed to transfer file:
http://repo.maven.apache.org/maven2/org/codehaus/mojo/javacc-maven-plugin/2.
6/javacc-maven-plugin-2.6.pom.
Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e
switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please
read the following articles:
[Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionExcep
tion



Links:
------
[1] https://jmri-developers.groups.io/g/jmri/message/3471
[2] https://groups.io/mt/74455912/1303822
[3] https://jmri-developers.groups.io/g/jmri/post
[4] https://jmri-developers.groups.io/g/jmri/editsub/1303822
[5]
https://jmri-developers.groups.io/g/jmri/leave/defanged


wombat_rrnut
 

All:

Updating to NetBeans 11.2, following the
JMRI help page on NetBeans etc.,
doing the <LF> thing, downloading code etc.,
allowed the build to work first time.

So though your suggestion on upgrading Ant
would probably have been one way to go,
I decided to "catch up with the world" with
11.2, which probably saved me a lot of headaches now and in the future.

Thank you.

Sincerely
Greg

-----Original Message-----
From: jmri@jmri-developers.groups.io [mailto:jmri@jmri-developers.groups.io]
On Behalf Of wombat_rrnut
Sent: Monday, May 25, 2020 8:38 AM
To: jmri@jmri-developers.groups.io
Subject: Re: [jmri-developers] Problem with building 4.19.7 relating to
Maven (I guess).

Thanks for the suggestion. I think I'll first upgrade to NetBeans 11.2 like
you have.
then perform the rest.

Greg


-----Original Message-----
From: jmri@jmri-developers.groups.io [mailto:jmri@jmri-developers.groups.io]
On Behalf Of danielb987
Sent: Monday, May 25, 2020 8:33 AM
To: jmri@jmri-developers.groups.io
Subject: Re: [jmri-developers] Problem with building 4.19.7 relating to
Maven (I guess).

Please try to update ant.

https://ant.apache.org/bindownload.cgi

I'm not sure how it is in NetBeans 8.2, but in NetBeans 11.2, you go to menu
item Tools / Options and select "Java" and "Ant". There you can see where
ant is located.

Daniel

2020-05-25 15:10 skrev wombat_rrnut:
I haven't had time sine 1/10/2020 to do anything to JMRI (I'm the CTC
guy).

Finally, I needed to update my source to the current set (4.19.7 i
believe)

So I did that. Builds no longer work. Ant->RealClean, Clean and
Build.
I've noticed (and searched fort this answer on this forum) that there
were in the past a LOT of problems with movement from Ant? to Maven?
builds

I looked at the web site for NetBeans new instructions per the
suggestions on this forum, and on my version of NetBeans, there is no
"Resolve Project Problems"
as illustrated. I'm running NetBeans 8.2 So first, do I need to
upgrade NetBeans to what version I assume?
I suspect if I can "Resolve Project Problems", that this problem will
go away?

Output from compile:

cd C:\Users\NetBeansJMRI\Documents\NetBeansProjects\JMRI;
"JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_181" cmd /c
"\"\"C:\\Program Files\\NetBeans 8.2\\java\\maven\\bin\\mvn.bat\"
-DskipTests=true -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans
8.2\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8
clean install\""
Scanning for projects...

Some problems were encountered while building the effective model for
org.jmri:jmri:jar:4.19.7-SNAPSHOT 'reporting.plugins.plugin.version'
for com.buschmais.jqassistant:jqassistant-maven-plugin is missing. @
line 1142, column 21

It is highly recommended to fix these problems because they threaten
the stability of your build.

For this reason, future Maven versions might no longer support
building such malformed projects.

----------------------------------------------------------------------
--
Building JMRI 4.19.7-SNAPSHOT
----------------------------------------------------------------------
--
Downloading:
http://repo.maven.apache.org/maven2/org/codehaus/mojo/javacc-maven-plu
gin/2.6/javacc-maven-plugin-2.6.pom

----------------------------------------------------------------------
--
BUILD FAILURE
----------------------------------------------------------------------
--
Total time: 0.840s
Finished at: Mon May 25 08:07:46 CDT 2020 Final Memory: 6M/123M
----------------------------------------------------------------------
-- Plugin org.codehaus.mojo:javacc-maven-plugin:2.6 or one of its
dependencies could not be resolved: Failed to read artifact descriptor
for org.codehaus.mojo:javacc-maven-plugin:jar:2.6: Could not transfer
artifact org.codehaus.mojo:javacc-maven-plugin:pom:2.6 from/to central
(http://repo.maven.apache.org/maven2): Failed to transfer file:
http://repo.maven.apache.org/maven2/org/codehaus/mojo/javacc-maven-plugin/2.
6/javacc-maven-plugin-2.6.pom.
Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e
switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please
read the following articles:
[Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionExcep
tion



Links:
------
[1] https://jmri-developers.groups.io/g/jmri/message/3471
[2] https://groups.io/mt/74455912/1303822
[3] https://jmri-developers.groups.io/g/jmri/post
[4] https://jmri-developers.groups.io/g/jmri/editsub/1303822
[5]
https://jmri-developers.groups.io/g/jmri/leave/defanged


wombat_rrnut
 

Addendum to below:

It turns out that the first time you try to run JMRI, it will ask "Select
Main Class for Execution".
I needed PanelPro, so I selected Apps.PanelPro.PanelPro. You can use the
radio buttons for
"this time only" or "permanent". I'd suggest permanent.....
After a bunch more machinations of downloads and builds (took a little
time), it ran fine.
Subsequent runs no longer did the machinations, and ran fine. Was able to
get my
test "Config Profiles" to startup at least. Seems to work, but I haven't
done any runtime testing
of my Config Profile yet.......

Greg

-----Original Message-----
From: jmri@jmri-developers.groups.io [mailto:jmri@jmri-developers.groups.io]
On Behalf Of wombat_rrnut
Sent: Monday, May 25, 2020 10:31 AM
To: jmri@jmri-developers.groups.io
Subject: Re: [jmri-developers] Problem with building 4.19.7 relating to
Maven (I guess).

All:

Updating to NetBeans 11.2, following the JMRI help page on NetBeans etc.,
doing the <LF> thing, downloading code etc., allowed the build to work first
time.

So though your suggestion on upgrading Ant would probably have been one way
to go, I decided to "catch up with the world" with 11.2, which probably
saved me a lot of headaches now and in the future.

Thank you.

Sincerely
Greg





-----Original Message-----
From: jmri@jmri-developers.groups.io [mailto:jmri@jmri-developers.groups.io]
On Behalf Of wombat_rrnut
Sent: Monday, May 25, 2020 8:38 AM
To: jmri@jmri-developers.groups.io
Subject: Re: [jmri-developers] Problem with building 4.19.7 relating to
Maven (I guess).

Thanks for the suggestion. I think I'll first upgrade to NetBeans 11.2 like
you have.
then perform the rest.

Greg


-----Original Message-----
From: jmri@jmri-developers.groups.io [mailto:jmri@jmri-developers.groups.io]
On Behalf Of danielb987
Sent: Monday, May 25, 2020 8:33 AM
To: jmri@jmri-developers.groups.io
Subject: Re: [jmri-developers] Problem with building 4.19.7 relating to
Maven (I guess).

Please try to update ant.

https://ant.apache.org/bindownload.cgi

I'm not sure how it is in NetBeans 8.2, but in NetBeans 11.2, you go to menu
item Tools / Options and select "Java" and "Ant". There you can see where
ant is located.

Daniel

2020-05-25 15:10 skrev wombat_rrnut:
I haven't had time sine 1/10/2020 to do anything to JMRI (I'm the CTC
guy).

Finally, I needed to update my source to the current set (4.19.7 i
believe)

So I did that. Builds no longer work. Ant->RealClean, Clean and
Build.
I've noticed (and searched fort this answer on this forum) that there
were in the past a LOT of problems with movement from Ant? to Maven?
builds

I looked at the web site for NetBeans new instructions per the
suggestions on this forum, and on my version of NetBeans, there is no
"Resolve Project Problems"
as illustrated. I'm running NetBeans 8.2 So first, do I need to
upgrade NetBeans to what version I assume?
I suspect if I can "Resolve Project Problems", that this problem will
go away?

Output from compile:

cd C:\Users\NetBeansJMRI\Documents\NetBeansProjects\JMRI;
"JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_181" cmd /c
"\"\"C:\\Program Files\\NetBeans 8.2\\java\\maven\\bin\\mvn.bat\"
-DskipTests=true -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans
8.2\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8
clean install\""
Scanning for projects...

Some problems were encountered while building the effective model for
org.jmri:jmri:jar:4.19.7-SNAPSHOT 'reporting.plugins.plugin.version'
for com.buschmais.jqassistant:jqassistant-maven-plugin is missing. @
line 1142, column 21

It is highly recommended to fix these problems because they threaten
the stability of your build.

For this reason, future Maven versions might no longer support
building such malformed projects.

----------------------------------------------------------------------
--
Building JMRI 4.19.7-SNAPSHOT
----------------------------------------------------------------------
--
Downloading:
http://repo.maven.apache.org/maven2/org/codehaus/mojo/javacc-maven-plu
gin/2.6/javacc-maven-plugin-2.6.pom

----------------------------------------------------------------------
--
BUILD FAILURE
----------------------------------------------------------------------
--
Total time: 0.840s
Finished at: Mon May 25 08:07:46 CDT 2020 Final Memory: 6M/123M
----------------------------------------------------------------------
-- Plugin org.codehaus.mojo:javacc-maven-plugin:2.6 or one of its
dependencies could not be resolved: Failed to read artifact descriptor
for org.codehaus.mojo:javacc-maven-plugin:jar:2.6: Could not transfer
artifact org.codehaus.mojo:javacc-maven-plugin:pom:2.6 from/to central
(http://repo.maven.apache.org/maven2): Failed to transfer file:
http://repo.maven.apache.org/maven2/org/codehaus/mojo/javacc-maven-plugin/2.
6/javacc-maven-plugin-2.6.pom.
Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e
switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please
read the following articles:
[Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionExcep
tion



Links:
------
[1] https://jmri-developers.groups.io/g/jmri/message/3471
[2] https://groups.io/mt/74455912/1303822
[3] https://jmri-developers.groups.io/g/jmri/post
[4] https://jmri-developers.groups.io/g/jmri/editsub/1303822
[5]
https://jmri-developers.groups.io/g/jmri/leave/defanged