cancel
Showing results for 
Search instead for 
Did you mean: 

starting with custom content modeling

hdalang
Champ in-the-making
Champ in-the-making
I think it's a very difficult to start with developing with alfresco, but I think once I learn how to develop custom content I can move on. I have red a lot of topics that explain alfresco custom content. but I don't feel that I get it. there is some informations maybe I did not recognize, I was having a problem in how to sit alfresco in eclipse and how to use alfresco with maven, now I'm just adding throw the main downloadable files of alfresco, I have change the theme but still facing a problem in understanding alfresco. I have tried custom content with maven sdk and there errors, from this site:

http://ecmarchitect.com/alfresco-developer-series-tutorials/maven-sdk/tutorial/tutorial.html

once I apply this code:

mvn archetype:generate \ -DarchetypeCatalog=https://artifacts.alfresco.com/nexus/content/groups/public/archetype-catalog.xml \ -Dfilter=org.alfresco.maven.archetype:

it gives me some error:

C:\Windows\system32>mvn archetype:generate \ -DarchetypeCatalog=https://artifact
s.alfresco.com/nexus/content/groups/public/archetype-catalog.xml \ -Dfilter=org.
alfresco.maven.archetype:
[INFO] Scanning for projects…
[INFO] ————————————————————————
[INFO] BUILD FAILURE
[INFO] ————————————————————————
[INFO] Total time: 0.058 s
[INFO] Finished at: 2014-04-03T14:10:50+03:00
[INFO] Final Memory: 11M/247M
[INFO] ————————————————————————
[ERROR] The goal you specified requires a project to execute but there is no POM
in this directory (C:\Windows\system32). Please verify you invoked Maven from t
he correct directory. -> [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/MissingProject
Exception

I don't have. That's why I need some help in this. contact me on my below accounts

Regards,,
Hisham
Gmail:hdalang@gmail.com
Skype:hishamfire
5 REPLIES 5

kaynezhang
World-Class Innovator
World-Class Innovator
<Strong>
[ERROR] The goal you specified requires a project to execute but there is no POM
in this directory (C:\Windows\system32). Please verify you invoked Maven from t
he correct directory. -> [Help 1]
[ERROR]
</strong>
already told you there is no POM in this directory (C:\Windows\system32) . you have executed in wrong directory ,you should execute mvn command in alfresco directory,or you can use -f,–file paramter to specify the POM file.

hdalang
Champ in-the-making
Champ in-the-making
But MVN is not working with me, that's why I'm using alfresco setup to make the changes that I need.

Regards,,

kaynezhang
World-Class Innovator
World-Class Innovator
if you want to invoke mvn command in alfresco home directory ,you must ensure that the commands from the maven are in your PATH environment variable

hdalang
Champ in-the-making
Champ in-the-making
Now, I'm getting you, can you show me the path location of alfresco?

step by step please.

romschn
Star Collaborator
Star Collaborator
Use this command.
mvn archetype:generate -DarchetypeCatalog=https://artifacts.alfresco.com/nexus/content/groups/public/archetype-catalog.xml -Dfilter=org.alfresco.maven.archetype:
and it should work for you and then follow rest of the other steps as per the tutorial.