Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    08fercho
    @08fercho1_twitter
    hi room
    Mehmet BEBEK
    @mgnfcnt
    @here hello
    Karl Heinz Marbaise
    @khmarbaise
    Hi,
    Mehmet BEBEK
    @mgnfcnt
    what is the optimum time of mvn compile?
    I have not a big project, but it take 30 seconds to compile each time even there is no change
    Karl Heinz Marbaise
    @khmarbaise
    Please show the log output of the project best would be reference to the project ...and how do you call Maven ? Which Maven version/JDK etc. do you use ? Which plugins versions do you use?
    Stanislav Spiridonov
    @foal
    @khmarbaise did you have any chance to check the https://issues.apache.org/jira/browse/MNG-6877?
    Ron Cecchini
    @roncecchini

    Hi, all. My use case is that I need to deploy an app to 2 different environments, and depending on the environment the contents of a single dependency would change. (The dependency name and API are the same in both; just the implementation is different.)

    Is there an easy way to use <exclude> to build a fat jar that excludes this one dependency and instead pulls it in at run time
    from the class path?

    Chris Maggiulli
    @cmaggiulli
    hey can someone help me. Im not getting any responses on stackoverflow
    i have an issue using maven-antrun-plugin together with aven-assembly-plugin when creating a "runnable" jar. Essentially I have three profiles: dev, test, and production. Each of them have a build sequence. Im trying to target my property files to my environments using antrun-plugin, and build the runnable jar w/ dependencies using the assembly plugin
    except that the runnable jar never contains the properties files created with the ant tasks
    logakarthi
    @logakarthi
    Hey guys, how to resolve this exception in the Java 11
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project cktest: ExecutionException: java.lang.RuntimeException: There was an error in the forked process
    [ERROR] org.testng.TestNGException:
    [ERROR] An error occurred while instantiating class method (ajc$preClinit) than the initializer method <clinit>
    [ERROR] at org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:398)
    [ERROR] at org.testng.internal.ClassHelper.createInstance(ClassHelper.java:299)
    [ERROR] at org.testng.internal.ClassImpl.getDefaultInstance(ClassImpl.java:115)
    [ERROR] at org.testng.internal.ClassImpl.getInstances(ClassImpl.java:200)
    [ERROR] at org.testng.internal.TestNGClassFinder.<init>(TestNGClassFinder.java:120)
    [ERROR] at org.testng.TestRunner.initMethods(TestRunner.java:409)
    [ERROR] at org.testng.TestRunner.init(TestRunner.java:235)
    [ERROR] at org.testng.TestRunner.init(TestRunner.java:205)
    [ERROR] at org.testng.TestRunner.<init>(TestRunner.java:153)
    [ERROR] at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:536)
    [ERROR] at org.testng.SuiteRunner.init(SuiteRunner.java:159)
    [ERROR] at org.testng.SuiteRunner.<init>(SuiteRunner.java:113)
    [ERROR] at org.testng.TestNG.createSuiteRunner(TestNG.java:1299)
    [ERROR] at org.testng.TestNG.createSuiteRunners(TestNG.java:1286)
    [ERROR] at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
    [ERROR] at org.testng.TestNG.run(TestNG.java:1057)
    [ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:295)
    [ERROR] at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
    [ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:90)
    [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
    [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
    [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
    [ERROR] Caused by: java.lang.IllegalAccessError: Update to static final field cktest.core.spring.CktestWebTestBase.ajc$tjp_0 attempted from a different method (ajc$preClinit) than the initializer method <clinit>
    [ERROR] at cktest.core.spring.CktestWebTestBase.ajc$preClinit(CktestWebTestBase.java:1)
    [ERROR] at cktest.core.spring.CktestWebTestBase.<clinit>(CktestWebTestBase.java)
    [ERROR] at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [ERROR] at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    [ERROR] at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    [ERROR] at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
    [ERROR] at org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:29)
    [ERROR] at org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:387)
    [ERROR] ... 21 more
    Anybody, give the solution to fix it
    faguilera85
    @faguilera85
    Hello
    dhruv-dave
    @dhruv-dave:matrix.org
    [m]
    hello, i have a question regarding maven release plugin.
    I was recently given a task on managing 100+ repositories and recently looking into using the mvn release plugin. I am very much new to maven and I am wondering if there is a way to just install a specific version of the maven release plugin and use that version to release the libs/projects I am building.
    I looked into adding a pluigin to settings.xml but was unsuccessful in that search.
    Anyone have a way to do this?
    Cam C
    @cameroncooks-branch
    #11 422.0 [INFO] Downloading from nexus: http://admin.redacted.io:port/nexus/content/groups/internal/org/assertj/assertj-core/%5B2.0.0,2.99.0%5D/assertj-core-%5B2.0.0,2.99.0%5D.jar
    #11 422.3 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:resolve-plugins (default-cli) on project redacted: Nested: Could not find artifact org.assertj:assertj-core:jar:[2.0.0,2.99.0] in nexus (http://admin.redacted.io:port/nexus/content/groups/internal)

    It appears a downstream dependency specifies a range [2.0.0,2.99.0] for the version, and mvn dependency:go-offline isn't encoding it into the url properly?

    I am 100% sure that version 2.0.0 of assertj-core exists in our nexus, and mvn clean install doesn't run into this issue, so I'm not sure what the problem is

    looks like this is what I ran into, and i dont have a clear solution
    Al Grant
    @bigalnz
    Hello all
    I want to use this maven archetype with intellij https://github.com/Pi4J/pi4j-maven-archetype - the instructions only deal with maven - hwo would one do this?
    Al Grant
    @bigalnz
    Anyone here?
    Jasper C
    @japzio
    hi all, is there a kotlin equivalent for gmavenplus-plugin?