Comments (3)
Hi @holgerknoche, how do you solve this problem ?
from cics-bundle-maven.
Hi @jsventura, we actually just avoid building the projects with "mvn compile". Since the goals we really need are "package" and "install" and those work fine, this issue is not really a problem for us. Maybe it would be enough to move the goal from the "compile" phase to the "package" phase, but I have not tried this yet.
from cics-bundle-maven.
I've been able to reproduce this, and I'm pretty sure it's to do with our default lifecycle bindings when you're using the cics-bundle packaging type. I'll work on a fix for this to build the bundle as late as possible in reactor builds, probably changing the binding for all plugins to the package
phase but that will require a new plugin major version. Also not been able to quite get that working yet.
In the mean time I was able to work around this by changing the phase bound to the bundle plugin's build
goal:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>stewf</groupId>
<artifactId>parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>cics</artifactId>
<packaging>cics-bundle</packaging>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>osgi</artifactId>
<version>${project.version}</version>
<type>jar</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.ibm.cics</groupId>
<artifactId>cics-bundle-maven-plugin</artifactId>
<version>1.0.3</version>
<extensions>true</extensions>
<configuration>
<jvmserver>asdf</jvmserver>
</configuration>
<executions>
<execution>
<id>default-build</id> <!-- You must set this execution ID for this to work -->
<phase>package</phase> <!-- rebind the default execution to the package phase -->
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Note that the latest phase you'll be able to run this in at the moment is package
without also changing the lifecycle phase of the cics bundle package plugin too. I can explain further if that's useful, but hopefully that's not an issue for you.
I'll put together something to address the default lifecycle phase in a future release of the plugin, hopefully you can make do with the workaround for now.
from cics-bundle-maven.
Related Issues (20)
- Modify behaviour so that failing to provide a JVM server when required generates an error HOT 5
- Deploying bundle with a JAR/OSGi bundle part fails
- Non-reactor bundles fail to deploy if classifier is not set HOT 2
- Be explicit in README.md about support
- Docs improvement suggestion
- Deploying error: Text may not be null HOT 1
- Deploying: "null/null" appearing in an info message when running mvn
- I am a NOVICE at maven. I'm triying to get the simple-liberty cics microprofile4 to work - I'm lost HOT 3
- Add testing for client side validation of input parameters
- Eclipse Maven Install fails to replace built .war file, even with -SNAPSHOT version HOT 10
- Sample reactor bundle definition is too long
- Error reading Bundle-SymbolicName from OSGi manifest file when using Maven module cics-bundle HOT 4
- Package CICS resources outside src/main/resources HOT 5
- Clarify that EBA is stabilized for bundle export from CICS Explorer and CICS BT
- Support osgibundle with versionRange HOT 2
- Please update the read.me document with build command / mvn commands for newbies HOT 1
- Update CICS bundle maven plugin information HOT 2
- Provide sample to show how bundleParts can be used HOT 1
- WAR Bundle can't not have a version HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cics-bundle-maven.