Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-6855

how i can resolve this increaming MAVEN_OPTS value?

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Out of scope
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Build Tooling
    • Labels:
      None

      Description

      which one to go to fix this?

      1. <env key="MAVEN_OPTS" value="-Xmx1024m"/>

      2. <jvmarg value="-Xmx1024m"/>

      deploy:
      [artifact:mvn] [INFO] Scanning for projects...
      [artifact:mvn] [INFO] ------------------------------------------------------------------------
      [artifact:mvn] [INFO] Building Maven Default Project
      [artifact:mvn] [INFO] task-segment: [org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy-file] (aggregator-style)
      [artifact:mvn] [INFO] ------------------------------------------------------------------------
      [artifact:mvn] [INFO] [deploy:deploy-file]
      [artifact:mvn] Uploading: http://dev.abc.com:8081/nexus/content/repositories/releases/com/abc/dev/lib-initial-state/0.1.87/lib-initial-state-0.1.87.zip
      [artifact:mvn] [INFO] ------------------------------------------------------------------------
      [artifact:mvn] [ERROR] FATAL ERROR
      [artifact:mvn] [INFO] ------------------------------------------------------------------------
      [artifact:mvn] [INFO] Java heap space
      [artifact:mvn] [INFO] ------------------------------------------------------------------------
      [artifact:mvn] [INFO] Trace
      [artifact:mvn] java.lang.OutOfMemoryError: Java heap space
      [artifact:mvn] at java.util.Arrays.copyOf(Arrays.java:2271)
      [artifact:mvn] at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113)
      [artifact:mvn] at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
      [artifact:mvn] at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140)
      [artifact:mvn] at sun.net.www.http.PosterOutputStream.write(PosterOutputStream.java:78)
      [artifact:mvn] at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:338)
      [artifact:mvn] at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:305)
      [artifact:mvn] at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            bnallamo babu ravi teja nallamothu
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title