Restful web services | Community
Skip to main content
New Participant
February 4, 2016
Solved

Restful web services

  • February 4, 2016
  • 15 replies
  • 3771 views

Hi,

Pl refer to URL: https://helpx.adobe.com/experience-manager/using/restful-services.html

Using Java 1.7; Maven 3.0.3. AEM 6.1..

Copied settings.xml from this tutorial to users/<my user name>/.m2.

When I ran mvn archetype:generate command, I am getting the following error. 

[WARNING] Checksum validation failed, expected <html> but is 81ffbd1712afe8cdf13
8b570c0fc9934742c33c1 for http://repo.adobe.com/nexus/content/groups/public/org/
apache/maven/plugins/maven-archetype-plugin/2.4/maven-archetype-plugin-2.4.pom
Downloaded: http://repo.adobe.com/nexus/content/groups/public/org/apache/maven/p
lugins/maven-archetype-plugin/2.4/maven-archetype-plugin-2.4.pom (178 B at 0.1 K
B/sec)
[WARNING] The POM for org.apache.maven.plugins:maven-archetype-plugin:jar:2.4 is
 invalid, transitive dependencies (if any) will not be available, enable debug l
ogging for more details
Downloading: http://repo.adobe.com/nexus/content/groups/public/org/apache/maven/
plugins/maven-archetype-plugin/2.4/maven-archetype-plugin-2.4.jar
[WARNING] Checksum validation failed, expected <html> but is 81ffbd1712afe8cdf13
8b570c0fc9934742c33c1 for http://repo.adobe.com/nexus/content/groups/public/org/
apache/maven/plugins/maven-archetype-plugin/2.4/maven-archetype-plugin-2.4.jar
[WARNING] Checksum validation failed, expected <html> but is 81ffbd1712afe8cdf13
8b570c0fc9934742c33c1 for http://repo.adobe.com/nexus/content/groups/public/org/
apache/maven/plugins/maven-archetype-plugin/2.4/maven-archetype-plugin-2.4.jar
Downloaded: http://repo.adobe.com/nexus/content/groups/public/org/apache/maven/p
lugins/maven-archetype-plugin/2.4/maven-archetype-plugin-2.4.jar (178 B at 0.2 K
B/sec)
[WARNING] The POM for org.apache.maven.plugins:maven-archetype-plugin:jar:2.4 is
 invalid, transitive dependencies (if any) will not be available, enable debug l
ogging for more details
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.890s
[INFO] Finished at: Thu Feb 04 20:47:03 IST 2016
[INFO] Final Memory: 3M/107M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to parse plugin descriptor for org.apache.maven.plugins:maven-arc
hetype-plugin:2.4 (C:\Users\ra847757\.m2\repository\org\apache\maven\plugins\mav
en-archetype-plugin\2.4\maven-archetype-plugin-2.4.jar): error in opening zip fi
le -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginDescript
orParsingException
E:\AdobeCQ>java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

Since this is the basis for executing many Adobe tutorials, please suggest asap.

Also,mvn archetype:generate command has  -DcqVersion="5.6.1". If not for this command, will it affect when deployed on to AEM 6.1?

Appreciate your help.

Thanks,

Rama.

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 smacdonald2008

send me an email scottm@adobe.com and we will set it up. 

issue was eclipse version - use Version: Indigo Service Release 2 to ensure that the MF file is updated with packages. I will update articles too. 

15 replies

au4liferz
New Participant
February 4, 2016

nsvsrk wrote...

Hi all,

Tried all these without success, including copying the attached settings.xml to my .m2..

Are these versions OK?

Using Java 1.7; Maven 3.0.3. 

Could I show this using Adobe Connect now?

I would guess that it takes a few mins for you to crack it out.

Thanks,

Rama.

 

If Scott's last suggestion doesn't work, (i.e. cleaning everything out to get maven working), please run "mvn -eX", (i.e. with the switches to turn on full/verbose debugging), and then paste the first couple of errors in your maven log file, (i.e. redirect output from the mvn command to a file). This should provide a much better idea as to what is going on with your maven installation.

smacdonald2008
New Participant
February 4, 2016

Clear your folders and Maven and then try setting up maven following this: 

https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html

Lets get Maven working as a starting point.

nsvsrkAuthor
New Participant
February 4, 2016

Hi all,

Tried all these without success, including copying the attached settings.xml to my .m2..

Are these versions OK?

Using Java 1.7; Maven 3.0.3. 

Could I show this using Adobe Connect now?

I would guess that it takes a few mins for you to crack it out.

Thanks,

Rama.

smacdonald2008
New Participant
February 4, 2016

The -DcqVersion="5.6.1" is only metadata and will not impact your OSGi bundle. 

Also - this is the .m2 settings.xml file that works perfectly for me. See attachment. 

Ratna_Kumar
New Participant
February 4, 2016

Hi Rama,

Did you included the "Adobe Public Maven Repository" after copying the setting.xml to user->m2? If you include the Adobe's public repository(<profile> Adobe public repository</profile> then It will work.

I have done many times, It worked for me.

Also try to install the package that attached in the article(AEMRestful-webservices61-1.0.zip) for AEM6.1 for your reference.

Thanks,
Ratna Kumar.