Build with tests. Milinda
On Mon, Apr 18, 2011 at 5:06 PM, Pulasthi Supun <pulas...@wso2.com> wrote: > > hi got this error while trying to build without tests. if the build is done > first with tests and later done without test build is successful. > > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] Commons VFS > [INFO] Commons VFS Core > [INFO] Commons VFS Examples > [INFO] Commons VFS Sandbox > [INFO] Commons VFS Distribution > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Commons VFS > [INFO] task-segment: [install] > [INFO] > ------------------------------------------------------------------------ > [INFO] [antrun:run {execution: javadoc.resources}] > [INFO] Executing tasks > [INFO] Executed tasks > [INFO] Setting property: classpath.resource.loader.class => > 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. > [INFO] Setting property: velocimacro.messages.on => 'false'. > [INFO] Setting property: resource.loader => 'classpath'. > [INFO] Setting property: resource.manager.logwhenfound => 'false'. > [INFO] [remote-resources:process {execution: default}] > [INFO] [bundle:manifest {execution: bundle-manifest}] > [WARNING] Ignoring project type pom - supportedProjectTypes = [jar, bundle] > [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] > [INFO] Parent project loaded from repository. > [INFO] [install:install {execution: default-install}] > [INFO] Installing > /media/Software/Work/WSO2/carbon/carbon/dependencies/commons-vfs/pom.xml to > /home/pulasthi/.m2/repository/org/apache/commons/commons-vfs2-project/2.0-wso2v3/commons-vfs2-project-2.0-wso2v3.pom > [INFO] Installing > /media/Software/Work/WSO2/carbon/carbon/dependencies/commons-vfs/target/commons-vfs2-project-2.0-wso2v3-site.xml > to > /home/pulasthi/.m2/repository/org/apache/commons/commons-vfs2-project/2.0-wso2v3/commons-vfs2-project-2.0-wso2v3-site.xml > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Commons VFS Core > [INFO] task-segment: [install] > [INFO] > ------------------------------------------------------------------------ > [INFO] [antrun:run {execution: javadoc.resources}] > [INFO] Executing tasks > [INFO] Executed tasks > [INFO] [remote-resources:process {execution: default}] > [INFO] [resources:resources {execution: default-resources}] > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] Copying 32 resources > [INFO] Copying 1 resource to META-INF > [INFO] Copying 1 resource to META-INF > [INFO] [compiler:compile {execution: default-compile}] > [INFO] Nothing to compile - all classes are up to date > [INFO] [bundle:manifest {execution: bundle-manifest}] > [INFO] [resources:testResources {execution: default-testResources}] > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] Copying 30 resources > [INFO] Copying 1 resource to META-INF > [INFO] Copying 1 resource to META-INF > [INFO] [compiler:testCompile {execution: default-testCompile}] > [INFO] Not compiling test sources > [INFO] [antrun:run {execution: default}] > [INFO] Executing tasks > [move] Warning: > /media/Software/Work/WSO2/carbon/carbon/dependencies/commons-vfs/core/target/test-classes/code > not found. > [INFO] Executed tasks > [WARNING] DEPRECATED [systemProperties]: Use systemPropertyVariables > instead. > [INFO] [surefire:test {execution: default-test}] > [INFO] Tests are skipped. > [INFO] [jar:jar {execution: default-jar}] > [INFO] [jar:test-jar {execution: default}] > [INFO] Skipping packaging of the test-jar > [INFO] [install:install {execution: default-install}] > [INFO] Installing > /media/Software/Work/WSO2/carbon/carbon/dependencies/commons-vfs/core/target/commons-vfs2-2.0-wso2v3.jar > to > /home/pulasthi/.m2/repository/org/apache/commons/commons-vfs2/2.0-wso2v3/commons-vfs2-2.0-wso2v3.jar > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Commons VFS Examples > [INFO] task-segment: [install] > [INFO] > ------------------------------------------------------------------------ > [INFO] [antrun:run {execution: javadoc.resources}] > [INFO] Executing tasks > [INFO] Executed tasks > [INFO] [remote-resources:process {execution: default}] > [INFO] [resources:resources {execution: default-resources}] > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] Copying 1 resource to META-INF > [INFO] Copying 1 resource to META-INF > [INFO] [compiler:compile {execution: default-compile}] > [INFO] Nothing to compile - all classes are up to date > [INFO] [bundle:manifest {execution: bundle-manifest}] > [INFO] [resources:testResources {execution: default-testResources}] > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] skip non existing resourceDirectory > /media/Software/Work/WSO2/carbon/carbon/dependencies/commons-vfs/examples/src/test/resources > [INFO] [compiler:testCompile {execution: default-testCompile}] > [INFO] Not compiling test sources > [INFO] [surefire:test {execution: default-test}] > [INFO] Tests are skipped. > [INFO] [jar:jar {execution: default-jar}] > [INFO] [install:install {execution: default-install}] > [INFO] Installing > /media/Software/Work/WSO2/carbon/carbon/dependencies/commons-vfs/examples/target/commons-vfs2-examples-2.0-wso2v3.jar > to > /home/pulasthi/.m2/repository/org/apache/commons/commons-vfs2-examples/2.0-wso2v3/commons-vfs2-examples-2.0-wso2v3.jar > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Commons VFS Sandbox > [INFO] task-segment: [install] > [INFO] > ------------------------------------------------------------------------ > Downloading: > http://people.apache.org/repo/m1-snapshot-repository//org.apache.commons/jars/commons-vfs2-2.0-wso2v3-tests.jar > [INFO] Unable to find resource > 'org.apache.commons:commons-vfs2:test-jar:tests:2.0-wso2v3' in repository > apache.m1 (http://people.apache.org/repo/m1-snapshot-repository/) > Downloading: > http://repo1.maven.org/maven2/org/apache/commons/commons-vfs2/2.0-wso2v3/commons-vfs2-2.0-wso2v3-tests.jar > [INFO] Unable to find resource > 'org.apache.commons:commons-vfs2:test-jar:tests:2.0-wso2v3' in repository > central (http://repo1.maven.org/maven2) > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Failed to resolve artifact. > > Missing: > ---------- > 1) org.apache.commons:commons-vfs2:test-jar:tests:2.0-wso2v3 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.apache.commons > -DartifactId=commons-vfs2 -Dversion=2.0-wso2v3 -Dclassifier=tests > -Dpackaging=test-jar -Dfile=/path/to/file > > Alternatively, if you host your own repository you can deploy the file > there: > mvn deploy:deploy-file -DgroupId=org.apache.commons > -DartifactId=commons-vfs2 -Dversion=2.0-wso2v3 -Dclassifier=tests > -Dpackaging=test-jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] > > Path to dependency: > 1) org.apache.commons:commons-vfs2-sandbox:jar:2.0-wso2v3 > 2) org.apache.commons:commons-vfs2:test-jar:tests:2.0-wso2v3 > > ---------- > 1 required artifact is missing. > > for artifact: > org.apache.commons:commons-vfs2-sandbox:jar:2.0-wso2v3 > > from the specified remote repositories: > apache.snapshots.https ( > https://repository.apache.org/content/repositories/snapshots), > apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository/ > ), > central (http://repo1.maven.org/maven2), > apache.m1 (http://people.apache.org/repo/m1-snapshot-repository/) > > > > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 11 seconds > [INFO] Finished at: Mon Apr 18 16:46:40 IST 2011 > [INFO] Final Memory: 35M/661M > [INFO] > ------------------------------------------------------------------------ > > > _______________________________________________ > Carbon-dev mailing list > Carbon-dev@wso2.org > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- Milinda Pathirage Technical Lead and Product Manager, Business Process Server - WSO2 Inc; http://wso2.com Blog: http://blog.mpathirage.com Lean Enterprise Middleware
_______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev