Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Maven Build Error

Avatar

Level 3

Hi,

Getting the below error when building the project please find the attached file

[ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.0.13:package (default-package)
 on project commerce-training-content: Unable to parse configuration of mojo com.day.jcr.vault:content-package
-maven-plugin:0.0.13:package for parameter filters: Cannot find setter nor field in com.day.jcr.vault.maven.pa
ck.impl.DefaultWorkspaceFilter for 'filter' -> [Help 1]

Thanks in advance!

1 Accepted Solution

Avatar

Correct answer by
Level 3

Due to proxy it was throwing our error added the useProxy element and set to false it worked

Thanks!!

 <plugin>
                <groupId>com.day.jcr.vault</groupId>
                <artifactId>content-package-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <group>adobe/training</group>
                    <filters>
                        <filter>
                            <root>/apps/commerce-training</root>
                        </filter>
                    </filters>
                    <embeddeds>
                        <embedded>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>commerce-training-bundle</artifactId>
                            <target>/apps/commerce-training/install</target>
                        </embedded>
                    </embeddeds>
                    <targetURL>http://${crx.host}:${crx.port}/crx/packmgr/service.jsp</targetURL>
                    <useProxy>false</useProxy>
                </configuration>
            </plugin>

View solution in original post

11 Replies

Avatar

Employee

This is due to an issue with specific versions of Maven (2.2.1 I believe). This should be fixed by simply using the latest content-package-maven-plugin version (0.0.20). And potentially upgrade Maven to the latest (3.1.1) as well, although I recognize that this can be more challenging in some environments.

Avatar

Level 3

Hi,

Presenly i'm using the content-package-maven-plugin version (0.0.20) still the same issue i'm facing below version of maven i'm using.Please guide me here to resolve the issue.

Thanks in advance!!

D:\cq\maven_2>mvn --version
Apache Maven 3.0.1 (r1038046; 2010-11-23 16:28:32+0530)
Java version: 1.7.0_11
Java home: C:\Program Files\Java\jdk1.7.0_11\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "x86" Family: "windows"

Avatar

Level 3

This  below link provides a solution using curl can you please elaborate anyone how the issue has been resolved here

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

Note:i've migrated to maven version 3.1.1 still the same issue

Avatar

Employee

Can you post the full output when running Maven with -X ?

Avatar

Employee

This shows an unrelated error:

[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Internal Server Error

Avatar

Level 3

Below is the response which i'm getting when i hit the above url using CURL

 

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\395152>curl -u admin:admin http://localhost:4502/crx/packmgr/service.jsp
<crx version="2.4.30" user="admin" workspace="crx.default">
  <request>
  </request>
  <response>
    <data>
      +------------+-----------------------------------------+
      |  Arguments | Comment                                 |
      +------------+-----------------------------------------+
      |  cmd=help  | print this help                         |
      +------------+-----------------------------------------+
      |  cmd=ls    | print a list of all packages            |
      +------------+-----------------------------------------+
      |  cmd=rm    | remove a  package                       |
      |  name      | package name                            |
      |  [group]   | group name (optional)                   |
      +------------+-----------------------------------------+
      |  cmd=build | build a  package                        |
      |  name      | package name                            |
      |  [group]   | group name (optional)                   |
      +------------+-----------------------------------------+
      |  cmd=inst  | install a package                       |
      |  name      | package name                            |
      |  [group]   | group name (optional)                   |
      +------------+-----------------------------------------+
      |  cmd=uninst| uninstall a package                     |
      |  name      | package name                            |
      |  [group]   | group name (optional)                   |
      +------------+-----------------------------------------+
      |  GET       | download a package                      |
      |            | (content-disposition header contains    |
      |            | the correct filename)                   |
      |  [cmd=get] | optional                                |
      |  name      | package name                            |
      |  [group]   | group name (optional)                   |
      +------------+-----------------------------------------+
      |  POST      | upload a new package                    |
      |  file      | package to upload                       |
      |  [name]    | optional name                           |
      |  [install] | automatically install package if 'true' |
      +------------+-----------------------------------------+
    </data>
    <status code="200">ok</status>
  </response>
</crx>

C:\Users\395152>

Avatar

Level 3

Here i feel that due to proxy the build is failing.

Internally maven vlt plugin may using some other URL(Guessing)

[INFO] Installing commerce-training-content (D:\maven\commerce-training\content\target\commerce-training-content-1.0-SNAPSHOT.zip) to http://localhost:4502/crx/packmgr/service.jsp[DEBUG] Considering 1 proxies [DEBUG] Using proxy proxy.xxx.com:6050 [ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Internal Server Error[INFO] ------------------------------------------------------------------------

Avatar

Correct answer by
Level 3

Due to proxy it was throwing our error added the useProxy element and set to false it worked

Thanks!!

 <plugin>
                <groupId>com.day.jcr.vault</groupId>
                <artifactId>content-package-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <group>adobe/training</group>
                    <filters>
                        <filter>
                            <root>/apps/commerce-training</root>
                        </filter>
                    </filters>
                    <embeddeds>
                        <embedded>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>commerce-training-bundle</artifactId>
                            <target>/apps/commerce-training/install</target>
                        </embedded>
                    </embeddeds>
                    <targetURL>http://${crx.host}:${crx.port}/crx/packmgr/service.jsp</targetURL>
                    <useProxy>false</useProxy>
                </configuration>
            </plugin>

Avatar

Level 1

Add <useProxy>false</useProxy> in pom.xml for content-package-maven-plugin. Hope this will work for you :)

Avatar

Level 1

Add <useProxy>false</useProxy> in pom.xml for content-package-maven-plugin. Hope this well work :)