AnsweredAssumed Answered

installing javascript console for alfresco 5.0

Question asked by redraccoon on Nov 10, 2015
Latest reply on Nov 18, 2015 by ecarbenay

Hello

I'm on Alfresco 5.0 SDK 2.1.1 and I downloaded the jsconsole on "https://github.com/share-extras/js-console"

I succeded to install via the "manuel technique" (the one in the bottom of the previous link) and also via "goal method" from this website => https://artifacts.alfresco.com/nexus/content/repositories/alfresco-docs/alfresco-lifecycle-aggregator/latest/plugins/alfresco-maven-plugin/advanced-usage.html


For my job i need to also succed in "dependency" method


I did the mvn install and the dependencies in both amp : repo and share

******************************************************************
picture of the org.shareextras repository =>

 <dependency>
            <groupId>org.sharextras</groupId>
            <artifactId>javascript-console-repo</artifactId>
<!–            <version>0.6.0</version>  –>   // my version seem to be 1.0, not 0.6.0
<version>1.0</version>
            <type>amp</type>
</dependency>

******************************************************************

I also changed the maven war plugin wich I found in my "effective POM", so I added him in my "pom.xml" only for my pom.xml in repo, my pom.xml in the sare already had a plugin section

********************************************************************

 <build>
   <pluginManagement> //build management helped me to avoid a warning about overinding versions
         <plugins>
      <plugin>
          <artifactId>maven-war-plugin</artifactId>
          <version>2.5</version>
          <dependencies>
            <dependency>
              <groupId>org.alfresco.maven.plugin</groupId>
              <artifactId>alfresco-maven-plugin</artifactId>
              <version>2.1.1</version>
            </dependency>
          </dependencies>
          <configuration>
          <overlay>
   <groupId>org.sharextras</groupId>
   <artifactId>javascript-console-repo</artifactId>
   <type>amp</type>
</overlay>
            <archiveClasses>false</archiveClasses>
            <archive>
              <manifest>
                <addClasspath>true</addClasspath>
              </manifest>
            </archive>
          </configuration>
        </plugin>
        </plugins>
        </pluginManagement>
     </build>


******************************************************************************



I tried a lot of different things, synthax but in dependency method I never succed to just find the module

picture of my logs => http://www.noelshack.com/2015-46-1447167246-2.png

Thanks in advance if you know something

Outcomes