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]
    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
    NehaMittal3010
    @NehaMittal3010

    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Using 'UTF-8' encoding to copy filtered properties files.
    [INFO] Copying 20 resources
    [INFO]
    [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ uno-choice ---
    [INFO] Changes detected - recompiling the module!
    [INFO] Compiling 19 source files to /root/final/active-choices-plugin/target/classes
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 25.082 s
    [INFO] Finished at: 2022-02-01T17:18:48Z

    [INFO] ------------------------------------------------------------------------

    constituent[0]: file:/root/apache-maven-3.8.4/conf/logging/
    constituent[1]: file:/root/apache-maven-3.8.4/lib/jcl-over-slf4j-1.7.32.jar
    constituent[2]: file:/root/apache-maven-3.8.4/lib/plexus-interpolation-1.26.jar
    constituent[3]: file:/root/apache-maven-3.8.4/lib/org.eclipse.sisu.plexus-0.3.5.jar
    constituent[4]: file:/root/apache-maven-3.8.4/lib/maven-plugin-api-3.8.4.jar
    constituent[5]: file:/root/apache-maven-3.8.4/lib/maven-resolver-api-1.6.3.jar
    constituent[6]: file:/root/apache-maven-3.8.4/lib/plexus-sec-dispatcher-2.0.jar
    constituent[7]: file:/root/apache-maven-3.8.4/lib/plexus-cipher-2.0.jar
    constituent[8]: file:/root/apache-maven-3.8.4/lib/maven-model-builder-3.8.4.jar
    constituent[9]: file:/root/apache-maven-3.8.4/lib/maven-resolver-impl-1.6.3.jar
    constituent[10]: file:/root/apache-maven-3.8.4/lib/maven-settings-3.8.4.jar
    constituent[11]: file:/root/apache-maven-3.8.4/lib/guice-4.2.2-no_aop.jar
    constituent[12]: file:/root/apache-maven-3.8.4/lib/maven-repository-metadata-3.8.4.jar
    constituent[13]: file:/root/apache-maven-3.8.4/lib/maven-model-3.8.4.jar
    constituent[14]: file:/root/apache-maven-3.8.4/lib/plexus-component-annotations-2.1.0.jar
    constituent[15]: file:/root/apache-maven-3.8.4/lib/org.eclipse.sisu.inject-0.3.5.jar
    constituent[16]: file:/root/apache-maven-3.8.4/lib/maven-shared-utils-3.3.4.jar
    constituent[17]: file:/root/apache-maven-3.8.4/lib/maven-compat-3.8.4.jar
    constituent[18]: file:/root/apache-maven-3.8.4/lib/commons-cli-1.4.jar
    constituent[19]: file:/root/apache-maven-3.8.4/lib/guava-25.1-android.jar
    constituent[20]: file:/root/apache-maven-3.8.4/lib/wagon-http-3.4.3-shaded.jar
    constituent[21]: file:/root/apache-maven-3.8.4/lib/commons-io-2.6.jar
    constituent[22]: file:/root/apache-maven-3.8.4/lib/slf4j-api-1.7.32.jar
    constituent[23]: file:/root/apache-maven-3.8.4/lib/maven-artifact-3.8.4.jar
    constituent[24]: file:/root/apache-maven-3.8.4/lib/maven-resolver-connector-basic-1.6.3.jar
    constituent[25]: file:/root/apache-maven-3.8.4/lib/maven-builder-support-3.8.4.jar
    constituent[26]: file:/root/apache-maven-3.8.4/lib/maven-slf4j-provider-3.8.4.jar
    constituent[27]: file:/root/apache-maven-3.8.4/lib/plexus-utils-3.3.0.jar
    constituent[28]: file:/root/apache-maven-3.8.4/lib/maven-embedder-3.8.4.jar
    constituent[29]: file:/root/apache-maven-3.8.4/lib/maven-resolver-provider-3.8.4.jar
    constituent[30]: file:/root/apache-maven-3.8.4/lib/wagon-provider-api-3.4.3.jar
    constituent[31]: file:/root/apache-maven-3.8.4/lib/javax.inject-1.jar
    constituent[32]: file:/root/apache-maven-3.8.4/lib/jansi-2.4.0.jar
    constituent[33]: file:/root/apache-maven-3.8.4/lib/maven-resolver-spi-1.6.3.jar
    constituent[34]: file:/root/apache-maven-3.8.4/lib/maven-resolver-util-1.6.3.jar
    constituent[35]: file:/root/apache-maven-3.8.4/lib/wagon-file-3.4.3.jar
    constituent[36]: file:/root/apache-maven-3.8.4/lib/maven-resolver-transport-wagon-1.6.3.jar
    constituent[37]: file:/root/apache-maven-3.8.4/lib/maven-core-3.8.4.jar
    constituent[38]: file:/root/apache-maven-3.8.4/lib/javax.annotation-api-1.2.jar
    constituent[39]: file:/root/apache-maven-3.8.4/lib/commons-lang3-3.8.1.jar

    constituent[40]: file:/root/apache-maven-3.8.4/lib/maven-settings-builder-3.8.4.jar

    Exception in thread "main" java.lang.AssertionError
    at jdk.compiler/com.sun.tools.javac.ut