Quantcast

Build problems with REST BC

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Build problems with REST BC

Stefan Müller-Wilken
Dear all,

after learning that we've got *two* source locations for binding components, I tried to make the other one build as well. As I could not find any build instructions specifically tuned to the stand alone BCs, I started from the openesb-components build instructions. I created a suitable Maven settings.xml including OpenESB-release and OpenESB-snapshot repositories but then failed while priming:

------------------------------------------------------------------------
Building OpenESB - Components - RESTBC - JBI Adapter 3.0.0-SNAPSHOT
------------------------------------------------------------------------
The POM for net.open-esb.maven.plugins:i18n-maven-plugin:jar:0.0.1-SNAPSHOT is missing, no dependency information available
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 0.629s
Finished at: Thu Feb 23 11:56:42 CET 2017
Final Memory: 10M/305M
------------------------------------------------------------------------
Plugin net.open-esb.maven.plugins:i18n-maven-plugin:0.0.1-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for net.open-esb.maven.plugins:i18n-maven-plugin:jar:0.0.1-SNAPSHOT: Could not find artifact net.open-esb.maven.plugins:i18n-maven-plugin:pom:0.0.1-SNAPSHOT -> [Help 1]

Am I missing a required Maven repository in my settings.xml?

Cheers
 Stefan

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Build problems with REST BC

param.singh
This post has NOT been accepted by the mailing list yet.
I guess you should be having below profile activated in your settings.xml. 

<profile>
     <id>profile-openesb</id>
     <repositories>
<repository>
 <id>OpenESB - Release</id>
 <snapshots>
   <enabled>true</enabled>
 </snapshots>
 <releases>
   <enabled>true</enabled>
 </releases>
</repository>
 
<repository>
 <id>OpenESB - Snapshot</id>
 <snapshots>
   <enabled>true</enabled>
 </snapshots>
 <releases>
   <enabled>true</enabled>
 </releases>
</repository>
     </repositories>
   </profile>

Param
Logicoy Inc. 
-------- Original Message --------
Subject: Build problems with REST BC
From: Stefan_Müller-Wilken_[via_OpenESB_Community_Forum]
<[hidden email]>
Date: Thu, February 23, 2017 4:03 am
To: "param.singh" <[hidden email]>

Dear all,

after learning that we've got *two* source locations for binding components, I tried to make the other one build as well. As I could not find any build instructions specifically tuned to the stand alone BCs, I started from the openesb-components build instructions. I created a suitable Maven settings.xml including OpenESB-release and OpenESB-snapshot repositories but then failed while priming:

------------------------------------------------------------------------
Building OpenESB - Components - RESTBC - JBI Adapter 3.0.0-SNAPSHOT
------------------------------------------------------------------------
The POM for net.open-esb.maven.plugins:i18n-maven-plugin:jar:0.0.1-SNAPSHOT is missing, no dependency information available
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 0.629s
Finished at: Thu Feb 23 11:56:42 CET 2017
Final Memory: 10M/305M
------------------------------------------------------------------------
Plugin net.open-esb.maven.plugins:i18n-maven-plugin:0.0.1-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for net.open-esb.maven.plugins:i18n-maven-plugin:jar:0.0.1-SNAPSHOT: Could not find artifact net.open-esb.maven.plugins:i18n-maven-plugin:pom:0.0.1-SNAPSHOT -> [Help 1]

Am I missing a required Maven repository in my settings.xml?

Cheers
 Stefan




If you reply to this email, your message will be added to the discussion below:
http://openesb-community-forum.794670.n2.nabble.com/Build-problems-with-REST-BC-tp7581523.html
To start a new topic under OpenESB Community Forum, email [hidden email]
To unsubscribe from OpenESB Community Forum, click here.
NAML
Param
Logicoy Inc.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Build problems with REST BC

Stefan Müller-Wilken
Yep:

<settings>
    <profiles>    
        <profile>
            <id>profile-openesb</id>
            <repositories>
                <repository>
                    <id>OpenESB - Release</id>
                    <url>http://build2.open-esb.net:8081/nexus/content/repositories/openesb-release</url>;
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                </repository>
 
                <repository>
                    <id>OpenESB - Snapshot</id>
                    <url>http://build2.open-esb.net:8081/nexus/content/repositories/openesb-snapshot/</url>;
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                </repository>
            </repositories>
        </profile>
    </profiles>
 
    <!-- activeProfiles | List of profiles that are active for all builds. -->
    <activeProfiles>
        <activeProfile>profile-openesb</activeProfile>
    </activeProfiles>
</settings>

Should a 'Clean and Build' work from here on?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Build problems with REST BC

param.singh
This post has NOT been accepted by the mailing list yet.
I guess so.. If you are directly building the rest bc, then it may not work. You should build openesb-components or ojc-core directory first so that your local m2 directory will have all dependencies in place, (If you are not interested in building other components, you can comment that in pom.xml open only rest bc. 

Param
Logicoy Inc.
-------- Original Message --------
Subject: RE: Build problems with REST BC
From: Stefan_Müller-Wilken_[via_OpenESB_Community_Forum]
<[hidden email]>
Date: Thu, February 23, 2017 4:32 am
To: "param.singh" <[hidden email]>

Yep:

<settings>
    <profiles>    
        <profile>
            <id>profile-openesb</id>
            <repositories>
                <repository>
                    <id>OpenESB - Release</id>
                    <url>http://build2.open-esb.net:8081/nexus/content/repositories/openesb-release</url>;;
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                </repository>
 
                <repository>
                    <id>OpenESB - Snapshot</id>
                    <url>http://build2.open-esb.net:8081/nexus/content/repositories/openesb-snapshot/</url>;;
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                </repository>
            </repositories>
        </profile>
    </profiles>
 
    <!-- activeProfiles | List of profiles that are active for all builds. -->
    <activeProfiles>
        <activeProfile>profile-openesb</activeProfile>
    </activeProfiles>
</settings>

Should a 'Clean and Build' work from here on?




If you reply to this email, your message will be added to the discussion below:
http://openesb-community-forum.794670.n2.nabble.com/Build-problems-with-REST-BC-tp7581523p7581526.html
To start a new topic under OpenESB Community Forum, email [hidden email]
To unsubscribe from OpenESB Community Forum, click here.
NAML
Param
Logicoy Inc.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Build problems with REST BC

Stefan Müller-Wilken
Well, I think that's what I did:

* Check out and build openesb-components using  "mvn -Dmaven.repo.local=$M2/repository -Dmaven.test.skip=true install"

* Check out openesb-restbc into openesb-components/openesb-restbc

* Do "mvn -Dmaven.repo.local=$M2/repository -Dmaven.test.skip=true clean" inside openesb-restbc

* Get
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   OpenESB - Components - RESTBC
[INFO]   OpenESB - Components - RESTBC - JBI Adapter
[INFO]   OpenESB - Components - RESTBC - Packaging
[INFO]   OpenESB - Components - RESTBC - Packaging Full
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenESB - Components - RESTBC
[INFO]    task-segment: [clean]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenESB - Components - RESTBC - JBI Adapter
[INFO]    task-segment: [clean]
[INFO] ------------------------------------------------------------------------
[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 download 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=net.open-esb.maven.plugins -DartifactId=i18n-maven-plugin -Dversion=0.0.1-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=net.open-esb.maven.plugins -DartifactId=i18n-maven-plugin -Dversion=0.0.1-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


  net.open-esb.maven.plugins:i18n-maven-plugin:maven-plugin:0.0.1-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


  net.open-esb.maven.plugins:i18n-maven-plugin:maven-plugin:0.0.1-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Thu Feb 23 13:45:42 CET 2017
[INFO] Final Memory: 8M/19M
[INFO] ------------------------------------------------------------------------

Anything wrong with that approach?

Cheers
 Stefan
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Build problems with REST BC

Stefan Müller-Wilken
For documentation purposes: I've made REST BC build by changing the i18n plugin to use.

In <RESTBC_DIR>/jbiadapter/pom.xml I changed line 28 from

<groupId>net.open-esb.maven.plugins</groupId>
to
<groupId>com.googlecode.i18n-maven-plugin</groupId>

and in the global pom.xml (see previous post) in line 252 the

<groupId>net.open-esb.maven.plugins</groupId>
to
<groupId>com.googlecode</groupId>

and then removed the <version> element two lines below. The rest then is just straight forward "mvn clean" and "mvn install".

Cheers
 Stefan
Loading...