Hi Amila, Started a separate thread on this, "Move the test utility classes inside Authenticator Proxy into Integration".
Thanks, Senaka. On Tue, Mar 15, 2011 at 2:45 PM, Amila Maha Arachchi <[email protected]>wrote: > Hi folks, > > Today I tried to build the carbon core without tests. Then it began to > complain the following while building the integration module (which was > added recently). > > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Failed to resolve artifact. > > Missing: > ---------- > 1) org.wso2.carbon:org.wso2.carbon.authenticator.proxy:jar:*tests* > :3.2.0-SNAPSHOT > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.wso2.carbon > -DartifactId=org.wso2.carbon.authenticator.proxy -Dversion=3.2.0-SNAPSHOT > -Dclassifier=tests -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.wso2.carbon > -DartifactId=org.wso2.carbon.authenticator.proxy -Dversion=3.2.0-SNAPSHOT > -Dclassifier=tests -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] > -DrepositoryId=[id] > > Path to dependency: > 1) > org.wso2.carbon:org.wso2.carbon.integration.core:jar:3.2.0-SNAPSHOT > 2) > org.wso2.carbon:org.wso2.carbon.authenticator.proxy:jar:tests:3.2.0-SNAPSHOT > > ---------- > 1 required artifact is missing. > > for artifact: > org.wso2.carbon:org.wso2.carbon.integration.core:jar:3.2.0-SNAPSHOT > > > ===================================================================================== > > Then I had a look at the integration.core pom. There I found the following > entries. > > <dependency> > <groupId>org.wso2.carbon</groupId> > <artifactId>org.wso2.carbon.authenticator.proxy</artifactId> > <version>${pom.version}</version> > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.wso2.carbon</groupId> > <artifactId>org.wso2.carbon.authenticator.proxy</artifactId> > <version>${pom.version}</version> > *<classifier>tests</classifier>* > <scope>test</scope> > </dependency> > > There are two dependencies for authenticator.proxy. Only difference is, > there is a classifier *test* in one of the deps. > > AFAIU, if we build without tests, we should be able to build the > integration.core successfully (But it failed for me). I had to build the > authenticator proxy with tests and come back and build the integration.core. > > Can somebody explain the reason for having above two deps and why a person > building without tests fails. I think something is missing in the > authenticator.proxy's maven-jar-plugin section (may be not). > > Thanks, > AmilaM. > > > > _______________________________________________ > Carbon-dev mailing list > [email protected] > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- *Senaka Fernando* Product Manager - WSO2 Governance Registry; Associate Technical Lead; WSO2, Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://www.linkedin.com/in/senakafernando *Lean . Enterprise . Middleware
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
