> -----Original Message----- > From: Simon Nash [mailto:[email protected]] > Sent: Friday, November 26, 2010 2:11 PM > To: [email protected] > Subject: Re: Tuscany 1.6 jars and dependencies > > Othman N wrote: > > Hello everyone, > > > > I'd like to know whether there is a simple way to know which jars > are > > really useful and thus need to be deployed, especially in the context > of > > a Tomcat webapp application. it is simple for the tuscany-* jars, but > > what about all the dependencies available in the "libs" directory ? I > > really need to reduce the size of the webapp's war :) > > > > I saw that the 2.0 branch takes this issue into account, but can't > > find a way to use the new feature. Any help would be appreciated. > > > > Regards, > > Othman > > > > > For 1.x the simplest way requires you to use maven. In your pom.xml > file, add the tuscany-* dependencies that you need. You also need to > include the tuscany-maven-ant-generator plugin in the build section of > your pom.xml file. (See samples/calculator-webapp for an example.) > Running the "mvn" command will create a build.xml file containing a > list of all the tuscany-* jars and third party dependency jars that > you need to include in your war file. > > Simon
when I tried to compile Tuscany, maven complained about the tuscany-maven-ant-generator plugin missing from the download location: [trace:on] Downloading: http://download.java.net/maven/2/org/apache/tuscany/sca/tuscany-maven-ant-generator/1.6.1-SNAPSHOT/tuscany- maven-ant-generator-1.6.1-SNAPSHOT.jar [INFO] Unable to find resource 'org.apache.tuscany.sca:tuscany-maven-ant-generator:maven-plugin:1.6.1-SNAPSHOT' in repos itory java download (http://download.java.net/maven/2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to downl oad the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.tuscany.sca -DartifactId=tuscany-maven-ant-generator -Dversion=1.6.1-S NAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file [trace:off] I couldn't find anything on the project website. What I did download and install was http://repo2.maven.org/maven2/org/apache/tuscany/sca/tuscany-maven-ant-generator/1.6.1/tuscany-maven-ant-generator-1.6.1.jar But now maven complains about the plugin version being wrong: [trace:on] [INFO] ------------------------------------------------------------------------ [INFO] Building Apache Tuscany SCA Sample HelloWorld Erlang Reference [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Internal error in the plugin manager getting plugin 'org.apache.tuscany.sca:tuscany-maven-ant-generator': Plugin 'org.apache.tuscany.sca:tuscany-maven-ant-generator:1.6.1-SNAPSHOT' has an invalid descriptor: 1) Plugin's descriptor contains the wrong version: 1.6.1 [INFO] ------------------------------------------------------------------------ [trace:off] Where do I find the correct tuscany-maven-ant-generator plugin? -- Sebastian
