Page 1 of 1

Unable to resolve artifact. When trying to run combined

Posted: Thu Jul 04, 2013 2:28 pm
by vasilealx82
when I run:

Code: Select all

ant -f build.xml jetty-demo
from DemoSite/combined folder this error comes up:

Code: Select all

Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) com.mycompany:core:jar:1.0
[artifact:dependencies]
[artifact:dependencies]   Try downloading the file manually from the project website.
[artifact:dependencies]
[artifact:dependencies]   Then, install it using the command:
[artifact:dependencies]       mvn install:install-file -DgroupId=com.mycompany -DartifactId=core -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies]
[artifact:dependencies]   Alternatively, if you host your own repository you can deploy the file there:
[artifact:dependencies]       mvn deploy:deploy-file -DgroupId=com.mycompany -DartifactId=core -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies]
[artifact:dependencies]   Path to dependency:
[artifact:dependencies]      1) com.mycompany:combined:war:1.0
[artifact:dependencies]      2) com.mycompany:core:jar:1.0
[artifact:dependencies]
[artifact:dependencies] 2) com.mycompany:site:war:1.0
[artifact:dependencies]
[artifact:dependencies]   Try downloading the file manually from the project website.
[artifact:dependencies]
[artifact:dependencies]   Then, install it using the command:
[artifact:dependencies]       mvn install:install-file -DgroupId=com.mycompany -DartifactId=site -Dversion=1.0 -Dpackaging=war -Dfile=/path/to/file
[artifact:dependencies]
[artifact:dependencies]   Alternatively, if you host your own repository you can deploy the file there:
[artifact:dependencies]       mvn deploy:deploy-file -DgroupId=com.mycompany -DartifactId=site -Dversion=1.0 -Dpackaging=war -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies]
[artifact:dependencies]   Path to dependency:
[artifact:dependencies]      1) com.mycompany:combined:war:1.0
[artifact:dependencies]      2) com.mycompany:site:war:1.0
[artifact:dependencies]
[artifact:dependencies] 3) com.mycompany:admin:war:1.0
[artifact:dependencies]
[artifact:dependencies]   Try downloading the file manually from the project website.
[artifact:dependencies]
[artifact:dependencies]   Then, install it using the command:
[artifact:dependencies]       mvn install:install-file -DgroupId=com.mycompany -DartifactId=admin -Dversion=1.0 -Dpackaging=war -Dfile=/path/to/file
[artifact:dependencies]
[artifact:dependencies]   Alternatively, if you host your own repository you can deploy the file there:
[artifact:dependencies]       mvn deploy:deploy-file -DgroupId=com.mycompany -DartifactId=admin -Dversion=1.0 -Dpackaging=war -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies]
[artifact:dependencies]   Path to dependency:
[artifact:dependencies]      1) com.mycompany:combined:war:1.0
[artifact:dependencies]      2) com.mycompany:admin:war:1.0
[artifact:dependencies]
[artifact:dependencies] ----------
[artifact:dependencies] 3 required artifacts are missing.

I tried installing them manually with mvn install, but didn't work either...
How do I run the combined (site + adimn) version?
Please help.

Re: Unable to resolve artifact. When trying to run combined

Posted: Fri Jul 05, 2013 6:53 pm
by bpolster
As of 3.0, the Broadleaf team is no longer supporting running Admin and Site in combined mode (at least not for now). If you get it to work, we would appreciate notes in this thread as well as any pull request that might be required.

Re: Unable to resolve artifact. When trying to run combined

Posted: Sat Jul 06, 2013 4:09 am
by vasilealx82
I use 2.2.0-GA version. I don't understand what is happening, when I run jetty-demo from eclipse every thing is ok. But when I run the ant task from command line the errors from above appear.
The thing I want to accomplish is to run both sites on a 1GB Ram VPS. Is this possible?

Re: Unable to resolve artifact. When trying to run combined

Posted: Mon Jul 08, 2013 9:48 am
by phillipuniverse
You have to run a maven install on all of the artifacts (site, core, admin). Try executing the following from the root of the DemoSite:

mvn clean install

This should build the core artifact for you.

Also, we highly recommend using 3.0.0-GA if at all possible because of the drastic admin changes.