Package npanday.dao

Examples of npanday.dao.ProjectDao.openConnection()


            throws IOException, NPandayRepositoryException
    {
        ProjectDao dao = (ProjectDao) daoRegistry.find( "dao:project" );
        dao.init( artifactFactory, artifactResolver );
        dao.setRdfRepository( repository );
        dao.openConnection();
        Set<Project> projects;

        try
        {
            projects = dao.getAllProjects();
View Full Code Here


            throws IOException, NPandayRepositoryException
    {
        ProjectDao dao = (ProjectDao) daoRegistry.find( "dao:project" );
        dao.init( artifactFactory, artifactResolver );
        dao.setRdfRepository( repository );
        dao.openConnection();
        Project project;

        try
        {
            project = dao.getProjectFor( artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(),
View Full Code Here

            {
                throw new MojoExecutionException( e.getMessage(), e );
            }

            ProjectDao dao = (ProjectDao) daoRegistry.find( "dao:project" );
            dao.openConnection();
            Project project;

            try
            {
                project = dao.getProjectFor(dependency.getGroupId(), dependency.getArtifactId(),
View Full Code Here

            throw new MojoExecutionException( e.getMessage() );
        }

        ProjectDao dao = (ProjectDao) daoRegistry.find( "dao:project" );
        dao.init( artifactFactory, artifactResolver );
        dao.openConnection();

        try
        {
            dao.removeProjectFor( tokens[0], tokens[1], tokens[2], tokens[3] );
        }
View Full Code Here

            project.addProjectDependency( projectDependency );
        }
       
        ProjectDao dao = (ProjectDao) daoRegistry.find( "dao:project" );
        dao.init( artifactFactory, artifactResolver );
        dao.openConnection();

        Set<Artifact> artifactDependencies = new HashSet<Artifact>();
        try
        {
            artifactDependencies =
View Full Code Here

            localRepository = new File( System.getProperty( "user.home" ), ".m2/repository" );
        }

        ProjectDao dao = (ProjectDao) daoRegistry.find( "dao:project" );
        dao.init( artifactFactory, artifactResolver );
        dao.openConnection();

        artifactContext.init( project, project.getRemoteArtifactRepositories(), localRepository );
        if ( project.getPackaging().equals( "pom" ) )
        {
            storeMavenProject( project );
View Full Code Here

    public void execute()
        throws MojoExecutionException
    {
        ProjectDao dao = (ProjectDao) daoRegistry.find( "dao:project" );
        dao.init( artifactFactory, artifactResolver );
        dao.openConnection();

        artifactContext.init( project, project.getRemoteArtifactRepositories(), localRepository );
        if ( pomFile != null && !pomFile.exists() )
        {
            throw new MojoExecutionException(
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.