Trouble moving project

Post here questions and problems related to oXygen frameworks/document types.
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

Trouble moving project

Post by sderrick »

I'm moving to a new work machine.
I've moved the sources from old to new machine but am seeing an error when Netbeans is trying to get the maven resources during build.

Code: Select all

Failed to execute goal on project mbep-editor: Could not resolve dependencies for project myGroup:mbep-editor:jar:1.0-SNAPSHOT: Failed to collect dependencies at myGroup:bundle-frameworks:jar:1.0-SNAPSHOT: Failed to read artifact descriptor for myGroup:bundle-frameworks:jar:1.0-SNAPSHOT: Could not transfer artifact myGroup:bundle-frameworks:pom:1.0-SNAPSHOT from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [public (http://www.oxygenxml.com/maven, default, releases+snapshots)] -> [Help 1]
my settings file is from my old and working machine

Code: Select all

<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"            xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0  http://maven.apache.org/xsd/settings-1.1.0.xsd">
    <!-- ... Other settings .... -->
    <profiles>
        <profile>
            <id>oxy</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <repositories>
                <repository>
                    <id>public</id>
                    <name>oXygen public artifacts</name>
                    <url>http://www.oxygenxml.com/maven</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
                <!-- ... Other repository definitions ...-->
            </repositories>
        </profile>
    </profiles>
    <!-- ... Other settings .... -->
</settings>
I'm using the same version of netbeans, but new OS is Fedora . Same java version also.

Scott
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Trouble moving project

Post by Radu »

Hi Scott,
I googled for "maven Blocked mirror for repositories" and it seems Maven might block by default references to "http" repositories.
How about if you use our HTTPS address instead "https://www.oxygenxml.com/maven/" ?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

Re: Trouble moving project

Post by sderrick »

Radu,
Thanks as always for the quick reply
I'll give if a shot and let you know.
Scott
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

Re: Trouble moving project

Post by sderrick »

Still no joy after changing to https

these are the 4 jars, I think they are all yours?

Code: Select all

Resolving artifact myGroup:bundle-frameworks:jar:1.0-SNAPSHOT from [public (https://www.oxygenxml.com/maven, default, releases+snapshots), central (https://repo1.maven.org/maven2, default, releases), com.springsource.repository.bundles.release (https://repository.springsource.com/maven/bundles/release, default, releases+snapshots), com.springsource.repository.bundles.external (https://repository.springsource.com/maven/bundles/external, default, releases+snapshots)]
Resolving artifact myGroup:bundle-options:jar:1.0-SNAPSHOT from [public (https://www.oxygenxml.com/maven, default, releases+snapshots), central (https://repo1.maven.org/maven2, default, releases), com.springsource.repository.bundles.release (https://repository.springsource.com/maven/bundles/release, default, releases+snapshots), com.springsource.repository.bundles.external (https://repository.springsource.com/maven/bundles/external, default, releases+snapshots)]
Resolving artifact myGroup:bundle-samplefiles:jar:1.0-SNAPSHOT from [public (https://www.oxygenxml.com/maven, default, releases+snapshots), central (https://repo1.maven.org/maven2, default, releases), com.springsource.repository.bundles.release (https://repository.springsource.com/maven/bundles/release, default, releases+snapshots), com.springsource.repository.bundles.external (https://repository.springsource.com/maven/bundles/external, default, releases+snapshots)]
Resolving artifact mbep.junique:mbep.junique:jar:1.0.4 from [public (https://www.oxygenxml.com/maven, default, releases+snapshots), central (https://repo1.maven.org/maven2, default, releases), com.springsource.repository.bundles.release (https://repository.springsource.com/maven/bundles/release, default, releases+snapshots), com.springsource.repository.bundles.external (https://repository.springsource.com/maven/bundles/external, default, releases+snapshots)]
the pom entries are

Code: Select all

<dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>bundle-frameworks</artifactId>
            <version>${project.version}</version>
        </dependency>

        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>bundle-options</artifactId>
            <version>${project.version}</version>
        </dependency>

        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>bundle-samplefiles</artifactId>
            <version>${project.version}</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>mbep.junique</groupId>
            <artifactId>mbep.junique</artifactId>
            <version>1.0.4</version>
        </dependency>
which look ok to me?
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

Re: Trouble moving project

Post by sderrick »

So I thought maybe this is a Netbeans issue, so I installed Eclipse and imported the project and got these 4 errors

Description Resource Path Location Type
Missing artifact myGroup:bundle-samplefiles:jar:1.0-SNAPSHOT pom.xml /mbep-editor line 63 Maven Dependency Problem
Missing artifact myGroup:bundle-options:jar:1.0-SNAPSHOT pom.xml /mbep-editor line 57 Maven Dependency Problem
Missing artifact myGroup:bundle-frameworks:jar:1.0-SNAPSHOT pom.xml /mbep-editor line 51 Maven Dependency Problem
Missing artifact mbep.junique:mbep.junique:jar:1.0.4 pom.xml /mbep-editor line 121 Maven Dependency Problem

Scott
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

Re: Trouble moving project

Post by sderrick »

Solution found.

I removed these 3 jars as I wasn't using them
bundle-samplefiles:jar
bundle-options:jar
bundle-frameworks:jar

the junique.jar I changed its source , its not in the central or springs plugin repo anymore, or at least I can't find it

somebody did a custom build that is in the central repo

<!-- https://mvnrepository.com/artifact/de.h ... ty.junique -->
<dependency>
<groupId>de.huxhorn.lilith</groupId>
<artifactId>de.huxhorn.lilith.3rdparty.junique</artifactId>
<version>1.0.4</version>
</dependency>

So I added that and my project now builds and runs.

Scott
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Trouble moving project

Post by Radu »

Hi Scott,
I'm glad you found a solution for this. The "bundle-" artifacts were indeed removed by us from what I remember.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply