[
https://issues.jboss.org/browse/FORGEPLUGINS-184?page=com.atlassian.jira....
]
nisar pro updated FORGEPLUGINS-184:
-----------------------------------
Description:
Hi Vineet,
I am using following commands to use angularjs addon,
angularjs-addon
git clone
https://github.com/forge/angularjs-addon.git
cd angularjs-addon
$forge
[angularjs-addon]$ build --notest clean install
[INFO] BUILD FAILURE
[SEVERE] class file for org.jboss.forge.furnace.container.simple.Service not found
added dependency to pom.xml
<dependency>
<groupId>org.jboss.forge.furnace.container</groupId>
<artifactId>simple</artifactId>
<classifier>forge-addon</classifier>
<scope>provided</scope>
</dependency>
[angularjs-addon]$ build --notest clean install
[INFO] --- maven-install-plugin:2.4:install (default-install) @ angularjs ---
[INFO] Installing
/Users/nisar/githubclones/forge-addons/angularjs-addon/target/angularjs-2.1.4-SNAPSHOT.jar
to
/Users/nisar/.m2/repository/org/jboss/forge/addon/angularjs/2.1.4-SNAPSHOT/angularjs-2.1.4-SNAPSHOT.jar
[INFO] Installing
/Users/nisar/githubclones/forge-addons/angularjs-addon/target/angularjs-2.1.4-SNAPSHOT-forge-addon.jar
to
/Users/nisar/.m2/repository/org/jboss/forge/addon/angularjs/2.1.4-SNAPSHOT/angularjs-2.1.4-SNAPSHOT-forge-addon.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[angularjs-addon]$ addon-build-and-install
[INFO] --- maven-install-plugin:2.4:install (default-install) @ angularjs ---
[INFO] Installing
/Users/nisar/githubclones/forge-addons/angularjs-addon/target/angularjs-2.1.4-SNAPSHOT.jar
to
/Users/nisar/.m2/repository/org/jboss/forge/addon/angularjs/2.1.4-SNAPSHOT/angularjs-2.1.4-SNAPSHOT.jar
[INFO] Installing
/Users/nisar/githubclones/forge-addons/angularjs-addon/target/angularjs-2.1.4-SNAPSHOT-forge-addon.jar
to
/Users/nisar/.m2/repository/org/jboss/forge/addon/angularjs/2.1.4-SNAPSHOT/angularjs-2.1.4-SNAPSHOT-forge-addon.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[angularjs-addon]$exit
$cd ~/angularjs-sample
$forge
[angularjs-sample]$ project-new --named hello-angular
[hello-angular]$ jpa-setup
[persistence.xml]$ jpa-new-entity --named Customer
[Customer.java]$ jpa-new-field --named fullName
[Customer.java]$ jpa-new-field --named age --type int
[Customer.java]$ constraint-setup --providers Generic\ Java\ EE
[Customer.java]$ constraint-add --onProperty fullName --constraint NotNull
[Customer.java]$ constraint-add --onProperty age --constraint Min --value 0
[Customer.java]$ scaffold-setup --provider AngularJS
***SUCCESS*** CDI has been installed.
***SUCCESS*** EJB has been installed.
***SUCCESS*** Servlet API has been installed.
***SUCCESS*** JavaServer Faces has been installed.
***SUCCESS*** Scaffold was setup successfully.
[Customer.java]$ scaffold-generate --provider AngularJS --targets
org.hello.angular.model.Customer
***SUCCESS*** Scaffold was generated successfully.
But it was not an AngularJS project but a Faces project
To be observed, I have cloned the angularjs-addon git
git clone
https://github.com/forge/angularjs-addon.git
instead of installing from git url:
addon-install-from-git --url
https://github.com/forge/angularjs-addon.git --coordinate
org.jboss.forge.addon:angularjs
Could you please help in reviewing above steps I followed and if any I missed.
Thanks and Regards,
Nisar
was:
Hi Veneet,
I am using following commands to use angularjs addon,
angularjs-addon
git clone
https://github.com/forge/angularjs-addon.git
cd angularjs-addon
$forge
[angularjs-addon]$ build --notest clean install
[INFO] BUILD FAILURE
[SEVERE] class file for org.jboss.forge.furnace.container.simple.Service not found
added dependency to pom.xml
<dependency>
<groupId>org.jboss.forge.furnace.container</groupId>
<artifactId>simple</artifactId>
<classifier>forge-addon</classifier>
<scope>provided</scope>
</dependency>
[angularjs-addon]$ build --notest clean install
[INFO] --- maven-install-plugin:2.4:install (default-install) @ angularjs ---
[INFO] Installing
/Users/nisar/githubclones/forge-addons/angularjs-addon/target/angularjs-2.1.4-SNAPSHOT.jar
to
/Users/nisar/.m2/repository/org/jboss/forge/addon/angularjs/2.1.4-SNAPSHOT/angularjs-2.1.4-SNAPSHOT.jar
[INFO] Installing
/Users/nisar/githubclones/forge-addons/angularjs-addon/target/angularjs-2.1.4-SNAPSHOT-forge-addon.jar
to
/Users/nisar/.m2/repository/org/jboss/forge/addon/angularjs/2.1.4-SNAPSHOT/angularjs-2.1.4-SNAPSHOT-forge-addon.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[angularjs-addon]$ addon-build-and-install
[INFO] --- maven-install-plugin:2.4:install (default-install) @ angularjs ---
[INFO] Installing
/Users/nisar/githubclones/forge-addons/angularjs-addon/target/angularjs-2.1.4-SNAPSHOT.jar
to
/Users/nisar/.m2/repository/org/jboss/forge/addon/angularjs/2.1.4-SNAPSHOT/angularjs-2.1.4-SNAPSHOT.jar
[INFO] Installing
/Users/nisar/githubclones/forge-addons/angularjs-addon/target/angularjs-2.1.4-SNAPSHOT-forge-addon.jar
to
/Users/nisar/.m2/repository/org/jboss/forge/addon/angularjs/2.1.4-SNAPSHOT/angularjs-2.1.4-SNAPSHOT-forge-addon.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[angularjs-addon]$exit
$cd ~/angularjs-sample
$forge
[angularjs-sample]$ project-new --named hello-angular
[hello-angular]$ jpa-setup
[persistence.xml]$ jpa-new-entity --named Customer
[Customer.java]$ jpa-new-field --named fullName
[Customer.java]$ jpa-new-field --named age --type int
[Customer.java]$ constraint-setup --providers Generic\ Java\ EE
[Customer.java]$ constraint-add --onProperty fullName --constraint NotNull
[Customer.java]$ constraint-add --onProperty age --constraint Min --value 0
[Customer.java]$ scaffold-setup --provider AngularJS
***SUCCESS*** CDI has been installed.
***SUCCESS*** EJB has been installed.
***SUCCESS*** Servlet API has been installed.
***SUCCESS*** JavaServer Faces has been installed.
***SUCCESS*** Scaffold was setup successfully.
[Customer.java]$ scaffold-generate --provider AngularJS --targets
org.hello.angular.model.Customer
***SUCCESS*** Scaffold was generated successfully.
But it was not an AngularJS project but a Faces project
To be observed, I have cloned the angularjs-addon git
git clone
https://github.com/forge/angularjs-addon.git
instead of installing from git url:
addon-install-from-git --url
https://github.com/forge/angularjs-addon.git --coordinate
org.jboss.forge.addon:angularjs
Could you please help in reviewing above steps I followed and if any I missed.
Thanks and Regards,
Nisar
forge-cli git clone addon-build-and-install does not create angular
scaffold
----------------------------------------------------------------------------
Key: FORGEPLUGINS-184
URL:
https://issues.jboss.org/browse/FORGEPLUGINS-184
Project: Forge Plugins/Addons
Issue Type: Bug
Components: AngularJS Scaffold
Environment: Mac OS Yosemite - JDK8 - Forge2
Reporter: nisar pro
Assignee: Vineet Reynolds
Hi Vineet,
I am using following commands to use angularjs addon,
angularjs-addon
git clone
https://github.com/forge/angularjs-addon.git
cd angularjs-addon
$forge
[angularjs-addon]$ build --notest clean install
[INFO] BUILD FAILURE
[SEVERE] class file for org.jboss.forge.furnace.container.simple.Service not found
added dependency to pom.xml
<dependency>
<groupId>org.jboss.forge.furnace.container</groupId>
<artifactId>simple</artifactId>
<classifier>forge-addon</classifier>
<scope>provided</scope>
</dependency>
[angularjs-addon]$ build --notest clean install
[INFO] --- maven-install-plugin:2.4:install (default-install) @ angularjs ---
[INFO] Installing
/Users/nisar/githubclones/forge-addons/angularjs-addon/target/angularjs-2.1.4-SNAPSHOT.jar
to
/Users/nisar/.m2/repository/org/jboss/forge/addon/angularjs/2.1.4-SNAPSHOT/angularjs-2.1.4-SNAPSHOT.jar
[INFO] Installing
/Users/nisar/githubclones/forge-addons/angularjs-addon/target/angularjs-2.1.4-SNAPSHOT-forge-addon.jar
to
/Users/nisar/.m2/repository/org/jboss/forge/addon/angularjs/2.1.4-SNAPSHOT/angularjs-2.1.4-SNAPSHOT-forge-addon.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[angularjs-addon]$ addon-build-and-install
[INFO] --- maven-install-plugin:2.4:install (default-install) @ angularjs ---
[INFO] Installing
/Users/nisar/githubclones/forge-addons/angularjs-addon/target/angularjs-2.1.4-SNAPSHOT.jar
to
/Users/nisar/.m2/repository/org/jboss/forge/addon/angularjs/2.1.4-SNAPSHOT/angularjs-2.1.4-SNAPSHOT.jar
[INFO] Installing
/Users/nisar/githubclones/forge-addons/angularjs-addon/target/angularjs-2.1.4-SNAPSHOT-forge-addon.jar
to
/Users/nisar/.m2/repository/org/jboss/forge/addon/angularjs/2.1.4-SNAPSHOT/angularjs-2.1.4-SNAPSHOT-forge-addon.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[angularjs-addon]$exit
$cd ~/angularjs-sample
$forge
[angularjs-sample]$ project-new --named hello-angular
[hello-angular]$ jpa-setup
[persistence.xml]$ jpa-new-entity --named Customer
[Customer.java]$ jpa-new-field --named fullName
[Customer.java]$ jpa-new-field --named age --type int
[Customer.java]$ constraint-setup --providers Generic\ Java\ EE
[Customer.java]$ constraint-add --onProperty fullName --constraint NotNull
[Customer.java]$ constraint-add --onProperty age --constraint Min --value 0
[Customer.java]$ scaffold-setup --provider AngularJS
***SUCCESS*** CDI has been installed.
***SUCCESS*** EJB has been installed.
***SUCCESS*** Servlet API has been installed.
***SUCCESS*** JavaServer Faces has been installed.
***SUCCESS*** Scaffold was setup successfully.
[Customer.java]$ scaffold-generate --provider AngularJS --targets
org.hello.angular.model.Customer
***SUCCESS*** Scaffold was generated successfully.
But it was not an AngularJS project but a Faces project
To be observed, I have cloned the angularjs-addon git
git clone
https://github.com/forge/angularjs-addon.git
instead of installing from git url:
addon-install-from-git --url
https://github.com/forge/angularjs-addon.git --coordinate
org.jboss.forge.addon:angularjs
Could you please help in reviewing above steps I followed and if any I missed.
Thanks and Regards,
Nisar
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)