Page 1 of 1

AdminWeb Deployment Problem

Posted: Fri Mar 19, 2010 2:22 am
by sureshbabubv
Dear All,

I am able to deploy and run the broadleafdemo application, but getting the following error while deploying the adminweb.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------


C:\Documents and Settings\RAO\My Documents\Downloads\BroadleafCommerce-1.0.0-with-dependencies\src\BroadleafCommerceAdminWeb>ant deploy-exploded-war
Buildfile: build.xml
[artifact:dependencies] Downloading: org/broadleafcommerce/broadleaf-admin/1.0.0/broadleaf-admin-1.0.0.pom from central
[artifact:dependencies] Downloading: org.broadleafcommerce/poms/broadleaf-admin-1.0.0.pom from java.net
[artifact:dependencies] Downloading: org/broadleafcommerce/broadleaf-admin/1.0.0/broadleaf-admin-1.0.0.pom from jboss.com
[artifact:dependencies] Downloading: org/broadleafcommerce/broadleaf-admin/1.0.0/broadleaf-admin-1.0.0.pom from flex-mojos-repository
[artifact:dependencies] Downloading: org/broadleafcommerce/broadleaf-admin/1.0.0/broadleaf-admin-1.0.0.pom from central
[artifact:dependencies] Downloading: org/broadleafcommerce/broadleaf-admin/1.0.0/broadleaf-admin-1.0.0.jar from central
[artifact:dependencies] Downloading: org.broadleafcommerce/jars/broadleaf-admin-1.0.0.jar from java.net
[artifact:dependencies] Downloading: org/broadleafcommerce/broadleaf-admin/1.0.0/broadleaf-admin-1.0.0.jar from jboss.com
[artifact:dependencies] Downloading: org/broadleafcommerce/broadleaf-admin/1.0.0/broadleaf-admin-1.0.0.jar from flex-mojos-repository
[artifact:dependencies] Downloading: org/broadleafcommerce/broadleaf-admin/1.0.0/broadleaf-admin-1.0.0.jar from central
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) org.broadleafcommerce:broadleaf-admin:jar:1.0.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=org.broadleafcommerce -DartifactId=broadleaf-admin -Dversion=1.0.0 -Dpackaging=jar -Dfile=/path/to
[artifact:dependencies]
[artifact:dependencies] Alternatively, if you host your own repository you can deploy the file there:
[artifact:dependencies] mvn deploy:deploy-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-admin -Dversion=1.0.0 -Dpackaging=jar -Dfile=/path/to/f
ositoryId=[id]
[artifact:dependencies]
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) org.broadleafcommerce:BroadleafCommerceAdminWeb:jar:1.0.0
[artifact:dependencies] 2) org.broadleafcommerce:broadleaf-admin:jar:1.0.0
[artifact:dependencies]
[artifact:dependencies] ----------
[artifact:dependencies] 1 required artifact is missing.
[artifact:dependencies]
[artifact:dependencies] for artifact:
[artifact:dependencies] org.broadleafcommerce:BroadleafCommerceAdminWeb:jar:1.0.0
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] central (http://repo1.maven.org/maven2),
[artifact:dependencies] java.net (http://download.java.net/maven/1),
[artifact:dependencies] jboss.com (http://repository.jboss.com/maven2),
[artifact:dependencies] flex-mojos-repository (http://repository.sonatype.org/content/groups/flexgroup)

[artifact:dependencies]
[artifact:dependencies]
[artifact:dependencies]

BUILD FAILED
C:\Documents and Settings\RAO\My Documents\Downloads\BroadleafCommerce-1.0.0-with-dependencies\src\BroadleafCommerceAdminWeb\build.xml:14: Unable to resolve artifa
----------
1) org.broadleafcommerce:broadleaf-admin:jar:1.0.0

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-admin -Dversion=1.0.0 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-admin -Dversion=1.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dreposi

Path to dependency:
1) org.broadleafcommerce:BroadleafCommerceAdminWeb:jar:1.0.0
2) org.broadleafcommerce:broadleaf-admin:jar:1.0.0

----------
1 required artifact is missing.

for artifact:
org.broadleafcommerce:BroadleafCommerceAdminWeb:jar:1.0.0

from the specified remote repositories:
central (http://repo1.maven.org/maven2),
java.net (http://download.java.net/maven/1),
jboss.com (http://repository.jboss.com/maven2),
flex-mojos-repository (http://repository.sonatype.org/content/groups/flexgroup)

------------------------------------------------------

Please suggest me how to resolve this issue.


Thanks & Regards,
B.V. Suresh Babu

Re: AdminWeb Deployment Problem

Posted: Fri Mar 19, 2010 9:36 am
by bradford.taylor
I'm going through the instructions now but I think a mvn install may need to be run from the BroadleafCommerceAdmin directory before the command you are running.

Re: AdminWeb Deployment Problem

Posted: Wed Mar 31, 2010 1:19 pm
by jefffischer
For those interested, I've deployed a beta version of Broadleaf that has greatly simplified build instructions. I'm working on updating the build instructions, but this should get you started. You can download my snapshot release at the following location:

http://sourceforge.net/projects/broadleaf/files/

Expand the "latest development release" folder and download the 1.0.2 snapshot zip. Here are the build instructions you should follow (ignore any build instructions included in the zip file).

------------------------------------------------------------------
Snapshot release from trunk - beta before next release

WARNING - It's a good idea to install everything to a directory whose absolute path does not include any spaces. This is especially important for the flex sdk, as the flex compilation phase of the build will fail if the flex sdk has spaces in the path to its installed directory.

***************************
Dependencies :
Java 5 (http://java.sun.com/javase/downloads/index_jdk5.jsp) - Follow installation instructions from vendor
Maven 2.2.1 (http://archive.apache.org/dist/maven/binaries/) - Follow installation instructions from vendor
Ant 1.7.1 (http://archive.apache.org/dist/ant/binaries/) - Follow installation instructions from vendor
Adobe Flex SDK 3.4 (http://opensource.adobe.com/wiki/displa ... oad+Flex+3) - Simply unzip the SDK to a convenient location. It's important to get the right version.
***************************
1. Unzip the distribution from the Broadleaf/SourceForge development release category to a convenient location
2. Edit the src/build.properties file in the Broadleaf Distribution to reflect the directory where you installed maven
3. Edit the src/BroadleafCommerceAdmin/build.properties file in the Broadleaf distribution to reflect the directory where you unzipped the flex SDK
4. Open a command line or terminal view - 'cd' to the src directory in the Broadleaf distribution
5. Execute 'mvn clean' from the command line.
6. Execute 'mvn -Dmaven.test.skip=true install' from the command line. Wait for any dependencies to download and for Broadleaf to compile.
7. 'cd' to the src/BroadleafCommerceAdmin directory in the Broadleaf distribution
8. Execute 'ant launch-admin' from the command line. Wait for the admin and demo modules to compile and launch.
****************************
-You will see the message 'Started Jetty Server' at the command line or terminal when the demo and admin are ready to be viewed. You can access them at the following urls:

(BLC Demo) http://localhost:8080/broadleafdemo
(BLC Admin) http://localhost:8080/broadleafadmin/Br ... Admin.html (username: admin | password: blc_admin)

Re: AdminWeb Deployment Problem

Posted: Mon Apr 05, 2010 10:55 pm
by jefffischer
This post is now superseded by the 1.1.0 release available on SourceForge. The quickstart instructions included in the distribution and on the documentation wiki are up to date for this release.

jefffischer wrote:For those interested, I've deployed a beta version of Broadleaf that has greatly simplified build instructions. I'm working on updating the build instructions, but this should get you started. You can download my snapshot release at the following location:

http://sourceforge.net/projects/broadleaf/files/

Expand the "latest development release" folder and download the 1.0.2 snapshot zip. Here are the build instructions you should follow (ignore any build instructions included in the zip file).

------------------------------------------------------------------
Snapshot release from trunk - beta before next release

WARNING - It's a good idea to install everything to a directory whose absolute path does not include any spaces. This is especially important for the flex sdk, as the flex compilation phase of the build will fail if the flex sdk has spaces in the path to its installed directory.

***************************
Dependencies :
Java 5 (http://java.sun.com/javase/downloads/index_jdk5.jsp) - Follow installation instructions from vendor
Maven 2.2.1 (http://archive.apache.org/dist/maven/binaries/) - Follow installation instructions from vendor
Ant 1.7.1 (http://archive.apache.org/dist/ant/binaries/) - Follow installation instructions from vendor
Adobe Flex SDK 3.4 (http://opensource.adobe.com/wiki/displa ... oad+Flex+3) - Simply unzip the SDK to a convenient location. It's important to get the right version.
***************************
1. Unzip the distribution from the Broadleaf/SourceForge development release category to a convenient location
2. Edit the src/build.properties file in the Broadleaf Distribution to reflect the directory where you installed maven
3. Edit the src/BroadleafCommerceAdmin/build.properties file in the Broadleaf distribution to reflect the directory where you unzipped the flex SDK
4. Open a command line or terminal view - 'cd' to the src directory in the Broadleaf distribution
5. Execute 'mvn clean' from the command line.
6. Execute 'mvn -Dmaven.test.skip=true install' from the command line. Wait for any dependencies to download and for Broadleaf to compile.
7. 'cd' to the src/BroadleafCommerceAdmin directory in the Broadleaf distribution
8. Execute 'ant launch-admin' from the command line. Wait for the admin and demo modules to compile and launch.
****************************
-You will see the message 'Started Jetty Server' at the command line or terminal when the demo and admin are ready to be viewed. You can access them at the following urls:

(BLC Demo) http://localhost:8080/broadleafdemo
(BLC Admin) http://localhost:8080/broadleafadmin/Br ... Admin.html (username: admin | password: blc_admin)