Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:1.0.4:install | Community
Skip to main content
Level 2
January 8, 2023
Solved

Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:1.0.4:install

  • January 8, 2023
  • 1 reply
  • 2147 views

Cannot access package file 

Any Suggestion for this

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ChitraMadan

Hi @syed1111 ,

 

Looks like you are trying to install jar file as a zip.

 

Please check below in your POM file

<artifactId>name.of.your.package.core</artifactId>
 <packaging>bundle</packaging>
 <name>Name - Core</name>
 <description>Core bundle for Name</description>

Packaging should be defined as "bundle"

1 reply

ChitraMadan
Community Advisor
Community Advisor
January 8, 2023

Hi @syed1111 ,

 

I am not sure how your POM file is structured, but please make sure you have below important bits configured properly

 

<modules> <module>core</module> <module>ui.apps</module> </modules><repositories> <repository> <id>adobe-public-releases</id> <name>Adobe Basel Public Repository</name> <url>https://repo.adobe.com/nexus/content/groups/public</url> </repository> </repositories>

 

// This repository will be your project specific repository from where artifacts could be retrieved

<!-- Content Package Plugin --> <plugin> <groupId>com.day.jcr.vault</groupId> <artifactId>content-package-maven-plugin</artifactId> <version>1.0.2</version> <configuration> <targetURL>http://${aem.host}:${aem.port}/crx/packmgr/service.jsp</targetURL> <failOnError>true</failOnError> <userId>${vault.user}</userId> <password>${vault.password}</password> </configuration> </plugin><profile> <id>autoInstallPackage</id> <activation> <activeByDefault>false</activeByDefault> </activation> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.jackrabbit</groupId> <artifactId>filevault-package-maven-plugin</artifactId> <executions> <execution> <id>create-package</id> <goals> <goal>package</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>com.day.jcr.vault</groupId> <artifactId>content-package-maven-plugin</artifactId> <executions> <execution> <id>install-package</id> <goals> <goal>install</goal> </goals> <configuration> <targetURL>http://${aem.host}:${aem.port}/crx/packmgr/service.jsp</targetURL> </configuration> </execution> </executions> </plugin> </plugins> </pluginManagement> </build> </profile>

Please also refer to the documentation here:

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/developer-tools/maven-plugin.html?lang=en

 

Thanks,

Chitra

SYED1111Author
Level 2
January 8, 2023

Hey Chitra Thanks For Reply,

After changing version from 1.0.4 to 1.0.2 it showing like below

The config and plugins as it is which you mentioned above

 

 

ChitraMadan
Community Advisor
ChitraMadanCommunity AdvisorAccepted solution
Community Advisor
January 8, 2023

Hi @syed1111 ,

 

Looks like you are trying to install jar file as a zip.

 

Please check below in your POM file

<artifactId>name.of.your.package.core</artifactId>
 <packaging>bundle</packaging>
 <name>Name - Core</name>
 <description>Core bundle for Name</description>

Packaging should be defined as "bundle"