Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Kris Stern
    @krisstern:matrix.org
    [m]
    Give me a few moments to see if this is feasible...
    Kris Stern
    @krisstern:matrix.org
    [m]
    But I am not sure if this is really what you want to do. BTW, I am using Jenkins version 2.324 as stated in the pom.xml file above.
    And with Java 11
    Once the build is "okay" you could then check at http://localhost:8080/jenkins/ locally
    Well I did get the line printed at the very end:
    ... INFO    hudson.WebAppMain$3#run: Jenkins is fully up and running
    NehaMittal3010
    @NehaMittal3010
    @krisstern:matrix.org where Jenkins version 2.324 is stated in pom.xml .. its fine for me if u use 2.324 or latest Jenkins version as well. i am also using java 11.0.14 and jenkins 2.319.2...
    i am trying to build .hpi file of plugin then planning to push on the server where jenkins is running
    Kris Stern
    @krisstern:matrix.org
    [m]
    I think the latest one will be fine, it is just that I have been using 2.324 for another plugin and haven't upgraded yet
    NehaMittal3010
    @NehaMittal3010
    @krisstern:matrix.org ok can u tell me what changes u did in pom.xml for Active choice plugin
    Kris Stern
    @krisstern:matrix.org
    [m]
    The 2.319.2 is the latest LTS version, should work too
    NehaMittal3010
    @NehaMittal3010
    yes
    Kris Stern
    @krisstern:matrix.org
    [m]
    I updated the versions of the packages for the dependencies
    Used the JQuery 3 API plugin instead of the original one
    NehaMittal3010
    @NehaMittal3010
    can you share ur pom.xml file content
    Kris Stern
    @krisstern:matrix.org
    [m]
    It's just above
    I copied and pasted the whole file
    I think the only thing you will need to change is the Jenkins version
    NehaMittal3010
    @NehaMittal3010
    @krisstern:matrix.org sorry i am not able to see where u have copied and pasted the file
    Kris Stern
    @krisstern:matrix.org
    [m]
    Do you see my message from 16 minutes passed the hour?
    NehaMittal3010
    @NehaMittal3010
    no
    Kris Stern
    @krisstern:matrix.org
    [m]
    Do you see the code below the line "This one" just now?
    NehaMittal3010
    @NehaMittal3010
    i see only :- **Do you see the code below the line "This one" just now?*
    Kris Stern
    @krisstern:matrix.org
    [m]
    Hang on
    NehaMittal3010
    @NehaMittal3010
    yes i got it
    Kris Stern
    @krisstern:matrix.org
    [m]
    I have just uploaded the file
    Okay, cool
    NehaMittal3010
    @NehaMittal3010
    Thank you so much i am using same and trying to build it
    Kris Stern
    @krisstern:matrix.org
    [m]
    Welcome, hopefully it works to some extent like it did no my machine. I built it with the command
    mvn hpi:run
    NehaMittal3010
    @NehaMittal3010
    @krisstern:matrix.org i am running below commands: 1. mvn verify 2. mvn hpi:run 3. target folder will be created and then i will copy the hpi file to jenkins server at plugins folder path.. i hope i am doing correct
    Kris Stern
    @krisstern:matrix.org
    [m]
    Yup, that's similar to what I used
    NehaMittal3010
    @NehaMittal3010
    i got ERROR:-
    [WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:
    3.8.1 required to no longer download dependencies via HTTP (use HTTPS instead).
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 02:01 min
    [INFO] Finished at: 2022-02-01T16:57:11Z
    [INFO] Final Memory: 28M/100M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0:enforce (display-info) on project uno-choice: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
    [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/MojoExecutionException
    Kris Stern
    @krisstern:matrix.org
    [m]
    Wait...
    Did you upgrade Maven to version 3.8.4?
    NehaMittal3010
    @NehaMittal3010
    Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T07:58:13Z)
    Kris Stern
    @krisstern:matrix.org
    [m]
    Oh, better upgrade... Do you know how?
    NehaMittal3010
    @NehaMittal3010
    no
    Kris Stern
    @krisstern:matrix.org
    [m]
    Your version was from 2017...
    What OS are you on?
    NehaMittal3010
    @NehaMittal3010
    i generally do dnf update
    oracle linux
    NAME="Oracle Linux Server"
    VERSION="7.5"
    Kris Stern
    @krisstern:matrix.org
    [m]
    Try downloading first from here: https://maven.apache.org/download.cgi
    NehaMittal3010
    @NehaMittal3010
    ok sure
    Kris Stern
    @krisstern:matrix.org
    [m]
    Then install like this: https://maven.apache.org/install.html
    Kris Stern
    @krisstern:matrix.org
    [m]
    And @NehaMittal3010 I don't think I used Step 3: "...target folder will be created and then i will copy the hpi file to jenkins server at plugins folder path". All I did was replacing the pom.xml file, and then run mvn hpi:run.
    NehaMittal3010
    @NehaMittal3010
    Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
    ok i am doing only mvn hpi:run
    Kris Stern
    @krisstern:matrix.org
    [m]
    Okay